From e67eb7ff4b792356241418d1da4423ed7326c3db Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 15 Apr 2026 21:36:30 +0900 Subject: [PATCH] fix(gateway): add hermes-gateway script pattern to PID detection The _looks_like_gateway_process function was missing the hermes-gateway script pattern, causing dashboard to report gateway as not running even when the process was active. Patterns now cover all entry points: - hermes_cli.main gateway - hermes_cli/main.py gateway - hermes gateway - hermes-gateway (new) - gateway/run.py Co-Authored-By: Claude Opus 4.6 --- gateway/status.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/status.py b/gateway/status.py index 55456b0a3..4cdf8f810 100644 --- a/gateway/status.py +++ b/gateway/status.py @@ -136,6 +136,7 @@ def _looks_like_gateway_process(pid: int) -> bool: "hermes_cli.main gateway", "hermes_cli/main.py gateway", "hermes gateway", + "hermes-gateway", "gateway/run.py", ) return any(pattern in cmdline for pattern in patterns)