Skip to content

The agent that grows with you

fix(cli): report s6-supervised default-profile gateways as running

Yuan Li8ce023946885
diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.py
index 22d25283aa7..fe45320439b 100644
--- a/hermes_cli/gateway.py
+++ b/hermes_cli/gateway.py
@@ -5637,6 +5637,15 @@ def _cmd_status(args):
_print_served_ingress_urls()
print()
_print_lines(*_STATUS_RUNNING_HINTS[_status_host_kind()])
+ elif snapshot.service_running:
+ # Supervised-but-unscannable gateway (s6 container): the service is up, yet the
+ # process-table scan finds no PID — the `python -c` launcher argv is deliberately
+ # unmatched (#123881) and containers carry no gateway.pid file. Trust the service
+ # state instead of reporting a false outage (#125390).
+ print(f"✓ Gateway is running (supervised by {snapshot.manager})")
+ _print_runtime_health()
+ _print_multiplex_standalone_reason()
+ _print_served_ingress_urls()
else:
print("✗ Gateway is not running")
_print_runtime_health()