You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Ubuntu 24.04][CLI&UX] hermes status reports stopped while the foreground Gateway is running #7804
In an OpenShell foreground-managed Hermes sandbox, hermes status reported that the managed service was stopped even though the foreground Gateway process and Slack adapter were running and responding. This false-negative status can cause operators or health dashboards to rebuild a healthy agent.
Platform scope: Reproduced on Ubuntu 24.04 only; other platforms not tested
Regression: Unknown — earlier versions were not tested with this runtime topology
Run a Hermes sandbox through the supported OpenShell foreground-managed Gateway topology.
Verify that the Gateway process is running.
Send a Slack mention and confirm that the agent replies.
Run nemoclaw {sandbox} exec -- hermes status.
Expected Result
hermes status should detect and report the foreground-managed Gateway as running, or clearly separate service-manager state from effective Gateway runtime state.
Actual Result
hermes status reported the service as stopped while the real foreground Gateway process, Slack adapter, sessions, and replies were healthy.
Thanks for the report — reproduced and fixed on my side. Quick summary:
Root cause
Not the PID file. My first hypothesis was that gateway.pid was never written, and live sampling disproved it: the PID file is written after a clean restart. The actual cause is process identification. Hermes' own /opt/hermes/gateway/status.py decides whether a running process is the gateway by matching the command-line basename against hermes and hermes.exe. The NemoClaw image renames the real binary to hermes.real behind a wrapper, so a perfectly healthy foreground gateway never matches that allowlist and status reports it as stopped.
Fix
A build-time patcher, agents/hermes/patch-gateway-process-identity.py, adds hermes.real to that allowlist. It is applied in the Hermes Dockerfile behind a sha256 pin, matches the exact upstream source shape, is idempotent, and fails closed if upstream changes that code so the image build breaks loudly instead of silently skipping the patch. In-image assertions confirm the renamed binary now matches while gateway status, dashboard, tui_gateway, and the near-miss hermes.realish still do not.
Will land after CI is green and maintainer review. To try it locally: git fetch origin fix/hermes-status-detects-renamed-gateway-7804 && git checkout fix/hermes-status-detects-renamed-gateway-7804, then rebuild the sandbox and re-run status against a running foreground gateway.
If the symptom doesn't match what you saw, or you can still reproduce after this lands, reply here and I'll take another look.
Activity
yanyunl1991 commentedon Jul 30, 2026
Thanks for the report — reproduced and fixed on my side. Quick summary:
Root cause
Not the PID file. My first hypothesis was that
gateway.pidwas never written, and live sampling disproved it: the PID file is written after a clean restart. The actual cause is process identification. Hermes' own/opt/hermes/gateway/status.pydecides whether a running process is the gateway by matching the command-line basename againsthermesandhermes.exe. The NemoClaw image renames the real binary tohermes.realbehind a wrapper, so a perfectly healthy foreground gateway never matches that allowlist andstatusreports it as stopped.Fix
A build-time patcher,
agents/hermes/patch-gateway-process-identity.py, addshermes.realto that allowlist. It is applied in the Hermes Dockerfile behind a sha256 pin, matches the exact upstream source shape, is idempotent, and fails closed if upstream changes that code so the image build breaks loudly instead of silently skipping the patch. In-image assertions confirm the renamed binary now matches whilegateway status,dashboard,tui_gateway, and the near-misshermes.realishstill do not.PR
#7885
Will land after CI is green and maintainer review. To try it locally:
git fetch origin fix/hermes-status-detects-renamed-gateway-7804 && git checkout fix/hermes-status-detects-renamed-gateway-7804, then rebuild the sandbox and re-runstatusagainst a running foreground gateway.If the symptom doesn't match what you saw, or you can still reproduce after this lands, reply here and I'll take another look.
fix(hermes): detect the renamed gateway entrypoint in status (NVIDIA#…