{"repo":"NousResearch/hermes-agent","public_id":"19113","display_label":"Gateway status ignoring or confusing profile scoping","summary":"Members concern `gateway status` output when multiple profiles exist, including a report that it shows running when only another profile's gateway is alive. Several pull requests propose filtering PIDs by profile, scoping status to the current profile, or listing other profiles to reduce confusion.","subsystem":"hermes_cli","counts":{"members":5,"open_issues":0,"open_issues_distinct":0,"open_prs":1,"closed_issues":1,"merged_prs":1,"attempt_prs":3},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":19582,"merged_at":"2026-05-04T08:37:02+00:00"},"resolution":{"state":"unresolved","by":null},"freshness":{"state":"verified","last_verified_at":"2026-05-04T08:37:02+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.4},"fix_edges":[{"issue_number":19113,"pr_number":19582,"tier":"verified","basis":"superseded_ref","confidence":0.9,"recoverable_from_timeline":false,"pr_merged_at":"2026-05-04T08:37:02+00:00"}],"members":[{"kind":"issue","number":19113,"title":"[Bug]: `gateway status` reports running when only a different profile's gateway is alive","url":null,"state":"closed"},{"kind":"pr","number":19115,"title":"fix(gateway): show other profiles in `gateway status` to prevent confusion","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#19582","number":19582}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":19134,"title":"fix: scope gateway status to current profile","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#19115","number":19115},{"kind":"pr","value":"#16375","number":16375}],"category":"duplicate_of","implication":"duplicate"},"merged":false},{"kind":"pr","number":19504,"title":"fix(gateway): filter status PIDs by profile","url":null,"state":"open","close_reason":{"category":"uncategorized","implication":"needs_llm"},"merged":false},{"kind":"pr","number":19582,"title":"fix(gateway): show other profiles in 'gateway status' to prevent confusion","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["hermes_cli/gateway.py"],"fix_hunks":[{"file":"hermes_cli/gateway.py","hunks":["@@ -690,6 +690,32 @@ def _print_gateway_process_mismatch(snapshot: GatewayRuntimeSnapshot) -> None:\n     print(\"  can refuse to start another copy until this process stops.\")\n \n \n+def _print_other_profiles_gateway_status() -> None:\n+    \"\"\"Print a summary of gateway status across all profiles.\n+\n+    Shown at the bottom of ``hermes gateway status`` output so users with\n+    multiple profiles can tell at a glance which gateways are running and\n+    avoid confusing another profile's process with the current one.\n+    \"\"\"\n+    try:\n+        from hermes_cli.profiles import get_active_profile_name\n+\n+        current = get_active_profile_name()\n+        other_processes = [\n+            p for p in find_profile_gateway_processes()\n+            if p.profile != current\n+        ]\n+        if not other_processes:\n+            return\n+\n+        print()\n+        print(\"Other profiles:\")\n+        for proc in other_processes:\n+            print(f\"  ✓ {proc.profile:<16s} — PID {proc.pid}\")\n+    except Exception:\n+        pass\n+\n+\n def kill_gateway_processes(force: bool = False, exclude_pids: set | None = None,\n                            all_profiles: bool = False) -> int:\n     \"\"\"Kill any running gateway processes. Returns count killed.","@@ -4456,6 +4482,9 @@ def _gateway_command_inner(args):\n                     print(\"  hermes gateway install  # Install as user service\")\n                     print(\"  sudo hermes gateway install --system  # Install as boot-time system service\")\n \n+        # Show other profiles' gateway status for multi-profile awareness\n+        _print_other_profiles_gateway_status()\n+\n     elif subcmd == \"migrate-legacy\":\n         # Stop, disable, and remove legacy Hermes gateway unit files from\n         # pre-rename installs (e.g. hermes.service). Profile units and\n"]}]}],"trust":{"default_tier":"verified","includes_suggested":false}}