Skip to content

The agent that grows with you

chore(update): mark main's owner-watched updater git spawn for the detached-spawn ratchet

kshitijk4poora938f00f0f3c
diff --git a/hermes_cli/update_custody.py b/hermes_cli/update_custody.py
index 1845ece8378..b272425d93f 100644
--- a/hermes_cli/update_custody.py
+++ b/hermes_cli/update_custody.py
@@ -406,6 +406,7 @@ def _run_owner_watched(argv: Sequence[str], kwargs: dict, *, watch_owner: bool =
kwargs["stdin"] = subprocess.PIPE
if kwargs.pop("capture_output", False):
kwargs["stdout"] = kwargs["stderr"] = subprocess.PIPE
+ # detached-spawn: ok — awaited; _owner_watch kills a fetch's group on owner death, and a mutator must finish its write
with subprocess.Popen(list(argv), start_new_session=True, **kwargs) as proc:
dismiss = _owner_watch(proc.pid) if watch_owner else None
try: