Files
hermes-agent/tools
nbxuhk 0e038425db fix: gateway lifecycle guards gate on process ownership, not inherited env
The terminal tool lifecycle guard and the gateway stop/restart CLI
guards keyed on the raw _HERMES_GATEWAY=1 env marker, which every
gateway descendant inherits (and importing gateway.run sets it too).
CLI/TUI agent sessions were falsely blocked from documented gateway
management commands. Gate on _is_supervised_gateway_process() instead,
which requires owning the live gateway PID file.

Salvaged from PR #92196 (guard half) by @nbxuhk. Fixes #92560.
2026-08-23 15:49:52 -07:00
..