fix(compat): install the finder after the interrupted-update repair in hermes_bootstrap

This commit is contained in:
alt-glitch
2026-11-09 23:39:54 +05:30
parent 3af473c312
commit 5aeb7b2d7b

View File

@@ -506,10 +506,6 @@ def _legacy_post_swap_invocation(argv: list[str]) -> tuple[Path, list[str]] | No
# without this, ``pm`` is unimportable and the launch silently skips PM adoption.
harden_import_path(str(_root))
from hermes_agent.compat import install as _install_compat
_install_compat()
def _settle_interrupted_update() -> None:
"""Put back the tree a killed ``hermes update`` left half-moved, before PM, launch preparation or
@@ -546,6 +542,11 @@ def _settle_interrupted_update() -> None:
_settle_interrupted_update()
# After the repair above: a merge killed while writing hermes_agent/ must not keep the repair from running.
from hermes_agent.compat import install as _install_compat
_install_compat()
def _pin_launcher_home() -> None:
"""A minted launcher (``hermes_cli._launchers``) pins ``HERMES_HOME`` to the install's default