The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): explain why parked restart unparks and status reads runtime first (#124553, salvage #124669)
teknium1659423a95c43
diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.pyindex 100d34f3c1c..c9732dc5164 100644--- a/hermes_cli/gateway.py+++ b/hermes_cli/gateway.py@@ -5618,6 +5618,8 @@ def _cmd_status(args):full = getattr(args, "full", False)system = getattr(args, "system", False)snapshot = get_gateway_runtime_snapshot(system=system)+ # The marker records intent, not runtime: a `--force` gateway bypasses parking and stays live+ # beside it, so only a parked profile with nothing running stops here.if print_parked_status() and not snapshot.running:returnfrom hermes_cli.profiles import get_active_profile_name, profile_is_standalonediff --git a/hermes_cli/gateway_profile_lifecycle.py b/hermes_cli/gateway_profile_lifecycle.pyindex e2c42bd1d3e..17bde9a3961 100644--- a/hermes_cli/gateway_profile_lifecycle.py+++ b/hermes_cli/gateway_profile_lifecycle.py@@ -42,6 +42,9 @@ def profile_lifecycle(command: str, args) -> bool:return Falsemarker = parked_marker_path(home)if command == "restart" and profile_is_parked(home) and not gw.find_gateway_pids():+ # `stop` parked the profile AND dropped it from the host's served set, so the unserve/serve+ # path below finds no host serving it and would fall through to a standalone restart.+ # Unpark like `start` does; a live --force gateway keeps its own restart (pids non-empty).command = "start"if command == "start":if not profile_is_parked(home):