# NousResearch/hermes-agent · Telegram gateway active-session bypass fixes

## Open now

- Nothing open on GitHub.

Several bugs and corresponding fixes addressing Telegram gateway commands (/background, /btw, /branch) that should bypass the active-session guard but currently do not. Multiple related PRs are being consolidated.

## TL;DR

- 6 member(s): 0 open issue(s), 3 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #7123. Verify it addresses your case.
- **Recommended:** read PR #7123 (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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.25`: 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

- #6827: \[Bug\] Telegram /background can interrupt an active run instead of starting a background task
- #7547: \[Bug\] /btw and /branch should bypass active-session guard in Telegram gateway
- #7548: \[Bug\] /btw and /branch should bypass active-session guard in Telegram gateway

## Prior & competing PRs

- **#7123: fix(gateway): salvage 6 gateway fix PRs #6942 #6935 #6921 #6897 #6853 #6811**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/platforms/base.py`, `gateway/platforms/discord.py`, `gateway/platforms/feishu.py`, `gateway/platforms/matrix.py`, `gateway/platforms/telegram.py`, `gateway/platforms/telegram_network.py`, `gateway/run.py`, `gateway/status.py`, `gateway/stream_consumer.py`, `hermes_cli/commands.py`, `hermes_cli/gateway.py`, `tests/gateway/test_background_command.py`, `tests/gateway/test_base_topic_sessions.py`, `tests/gateway/test_command_bypass_active_session.py`, `tests/gateway/test_discord_reactions.py`, `tests/gateway/test_internal_event_bypass_pairing.py`, `tests/gateway/test_matrix.py`, `tests/gateway/test_run_progress_topics.py`, `tests/gateway/test_runner_startup_failures.py`, `tests/gateway/test_status.py` (+3 more)
- **#6935: fix(gateway): route /background through active-session bypass**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#7123`
- **#11694: fix(gateway): bypass active-session guard for /btw and /branch**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- Merged to main in PR #7123 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-10`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
