Skip to content

[Ubuntu 24.04][CLI&UX] hermes status reports stopped while the foreground Gateway is running #7804

Closed

Description

@mercl-lau

Description

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

Environment

Device:        Ubuntu server
OS:            Ubuntu 24.04.4 LTS
Architecture:  x86_64
Node.js:       v22.23.1
npm:           10.9.8
Docker:        Docker 29.5.3
OpenShell CLI: openshell 0.0.85
NemoClaw:      v0.0.93
OpenClaw:      N/A (Hermes Agent 0.18.0)

Steps to Reproduce

  1. Run a Hermes sandbox through the supported OpenShell foreground-managed Gateway topology.
  2. Verify that the Gateway process is running.
  3. Send a Slack mention and confirm that the agent replies.
  4. 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.

Logs

Not captured

Activity

  1. added
    NV QA
    needs: triage
    on Jul 29, 2026
  2. added theissue type on Jul 29, 2026
  3. self-assigned this
    on Jul 29, 2026
  4. added
    area: cli
    integration: hermes
    platform: ubuntu
    and removed
    needs: triage
    on Jul 29, 2026
  5. yanyunl1991 commented on Jul 30, 2026

    @yanyunl1991
    Contributor

    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.

    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-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.

  6. added a commit that references this issue on Aug 1, 2026
    e824843
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAarea: cliintegration: hermesplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions