# NousResearch/hermes-agent · Gateway status ignoring or confusing profile scoping

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #19504: fix(gateway): filter status PIDs by profile

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.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #19582. Verify it addresses your case.
- **Recommended:** read PR #19582 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #19113: \[Bug\]: \`gateway status\` reports running when only a different profile's gateway is alive

## Prior & competing PRs

- **#19582: fix(gateway): show other profiles in 'gateway status' to prevent confusion**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/gateway.py`
  - fix hunks:
  - `hermes_cli/gateway.py`

    ```diff
    @@ -690,6 +690,32 @@ def _print_gateway_process_mismatch(snapshot: GatewayRuntimeSnapshot) -> None:
         print("  can refuse to start another copy until this process stops.")
     
     
    +def _print_other_profiles_gateway_status() -> None:
    +    """Print a summary of gateway status across all profiles.
    +
    +    Shown at the bottom of ``hermes gateway status`` output so users with
    +    multiple profiles can tell at a glance which gateways are running and
    +    avoid confusing another profile's process with the current one.
    +    """
    +    try:
    +        from hermes_cli.profiles import get_active_profile_name
    +
    +        current = get_active_profile_name()
    +        other_processes = [
    +            p for p in find_profile_gateway_processes()
    +            if p.profile != current
    +        ]
    +        if not other_processes:
    +            return
    +
    +        print()
    +        print("Other profiles:")
    +        for proc in other_processes:
    +            print(f"  ✓ {proc.profile:<16s} — PID {proc.pid}")
    +    except Exception:
    +        pass
    +
    +
     def kill_gateway_processes(force: bool = False, exclude_pids: set | None = None,
                                all_profiles: bool = False) -> int:
         """Kill any running gateway processes. Returns count killed.
    ```

    ```diff
    @@ -4456,6 +4482,9 @@ def _gateway_command_inner(args):
                         print("  hermes gateway install  # Install as user service")
                         print("  sudo hermes gateway install --system  # Install as boot-time system service")
     
    +        # Show other profiles' gateway status for multi-profile awareness
    +        _print_other_profiles_gateway_status()
    +
         elif subcmd == "migrate-legacy":
             # Stop, disable, and remove legacy Hermes gateway unit files from
             # pre-rename installs (e.g. hermes.service). Profile units and
    ```
- **#19115: fix(gateway): show other profiles in \`gateway status\` to prevent confusion**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#19582`
- **#19134: fix: scope gateway status to current profile**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#19115`, `#16375`
- **#19504: fix(gateway): filter status PIDs by profile**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/gateway.py`, `tests/hermes_cli/test_gateway.py`

## Fix status

- Merged to main in PR #19582 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-05-04`.
- Subsystem: `hermes_cli`
