fix(gateway): show other profiles in 'gateway status' to prevent confusion - #19582
Merged
Merged
Conversation
…usion
When multiple gateway profiles are running (e.g. default and wx1),
`hermes gateway status` can be misleading — stopping one profile's
gateway and checking status may still show the other profile's process
without indicating which profile it belongs to.
Add `_print_other_profiles_gateway_status()` which displays running
gateways from other profiles at the bottom of the status output:
Other profiles:
✓ wx1 — PID 166893
This uses the existing `find_profile_gateway_processes()` and
`get_active_profile_name()` — no new dependencies.
Closes #19113
Related: #4402, #4587
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Salvage of #19115 onto current main.\n\n## Summary\nWhen running ● hermes-gateway.service - Hermes Agent Gateway - Messaging Platform Integration
Loaded: loaded (/home/teknium/.config/systemd/user/hermes-gateway.service; enabled; preset: enabled)
Active: active (running) since Sun 2026-05-03 00:48:57 PDT; 24h ago
Invocation: 0164d4e1e1b94f48a04a2df6beb4a6ff
Main PID: 2304773 (python)
Tasks: 19 (limit: 76757)
Memory: 81.6M (peak: 990.7M, swap: 304.4M, swap peak: 305.4M)
CPU: 2min 10.545s
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/hermes-gateway.service
├─2304773 /home/teknium/.hermes/hermes-agent/venv/bin/python -m hermes_cli.main gateway run --replace
└─2305068 node /home/teknium/.hermes/hermes-agent/scripts/whatsapp-bridge/bridge.js --port 3000 --session /home/teknium/.hermes/whatsapp/session --mode self-chat
May 03 00:48:58 teknium-dev python[2304773]: Then remove the old entries from /home/teknium/.hermes/.env
May 03 06:40:05 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 5947288074 (:)) on telegram
May 03 06:41:03 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 5947288074 (:)) on telegram
May 03 06:41:44 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 5947288074 (:)) on telegram
May 03 10:24:53 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 684405948 (blackvas) on telegram
May 03 10:24:57 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 684405948 (blackvas) on telegram
May 03 10:27:06 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 684405948 (blackvas) on telegram
May 03 14:45:27 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 206415579 (A) on telegram
May 03 14:45:42 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 206415579 (A) on telegram
May 03 14:52:35 teknium-dev python[2304773]: WARNING gateway.run: Unauthorized user: 206415579 (A) on telegram
⚠ Installed gateway service definition is outdated
Run: hermes gateway restart # auto-refreshes the unit
✓ User gateway service is running
✓ Systemd linger is enabled (service survives logout) on a multi-profile install, add a summary of gateway processes belonging to OTHER profiles so users can tell at a glance which gateways are running. Error-swallowed, display-only.\n\n## Validation\nscripts/run_tests.sh tests/hermes_cli/test_gateway.py \u2192 passed\n\nOriginal PR: #19115