Skip to content

fix(gateway): show other profiles in 'gateway status' to prevent confusion - #19582

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a
May 4, 2026
Merged

teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a

Conversation

@teknium1

@teknium1 teknium1 commented May 4, 2026

Copy link
Copy Markdown
Collaborator

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

…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
@teknium1
teknium1 merged commit 81ce945 into main May 4, 2026
4 checks passed
@teknium1
teknium1 deleted the hermes/hermes-8c54fd4a branch May 4, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants