diff --git a/acp_adapter/entry.py b/acp_adapter/entry.py index 0851ad1676..fc3386f034 100644 --- a/acp_adapter/entry.py +++ b/acp_adapter/entry.py @@ -20,6 +20,13 @@ else: # Stop a ``utils/``/``proxy/``/``ui/`` package in the launch cwd from shadowing Hermes modules. hermes_bootstrap.harden_import_path() +# `hermes-acp` runs without hermes_cli.main: repair a `hermes update` killed mid-pull here, before +# importing anything else from the checkout (a no-op under `hermes acp`, which already did). +from hermes_cli import _early_recovery + +if _early_recovery.restore_interrupted_pull(): + _early_recovery.relaunch_after_restore() + import argparse import asyncio import logging diff --git a/evals/update_pipeline/interrupted_pull_ab.sh b/evals/update_pipeline/interrupted_pull_ab.sh index 87c6b937af..c923763265 100755 --- a/evals/update_pipeline/interrupted_pull_ab.sh +++ b/evals/update_pipeline/interrupted_pull_ab.sh @@ -4,14 +4,15 @@ # evals/update_pipeline/interrupted_pull_ab.sh