# NousResearch/hermes-agent · Multiplexed gateway routed-profile session store bug

## Open now

- Nothing open on GitHub.

A bug where the dead-session check for a routed profile incorrectly reads the default profile's store, causing a cached agent to keep writing into an ended session. The members cover the bug report, related lifecycle scoping issues, and fixes to correct the store lookup and liveness checks.

## TL;DR

- 4 member(s): 0 open issue(s), 1 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 #126157. Verify it addresses your case.
- **Recommended:** read PR #126157 (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: `resolved` · deciding PR(s): `pr-126157`. 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.50`: 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

- #118862: \[Bug\]: multiplexed gateway — the dead-session check for a routed profile reads the default profile's store, so a cached agent keeps writing into an ended session

## Prior & competing PRs

- **#126157: Multiplexed gateway: session lifecycle paths bind to the routed profile's home, not the launch profile (#123584 #123618 #123989 #118233 #118862 #101134 #119121 #120212)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `gateway/platforms/api_server.py`, `gateway/platforms/api_server_openai_routes.py`, `gateway/platforms/base.py`, `gateway/run.py`, `gateway/run_inbound.py`, `gateway/run_notifications.py`, `gateway/run_shutdown.py`, `gateway/run_turn_runner.py`, `gateway/session_db_recovery.py`, `gateway/session_lifecycle.py`, `hermes_state_gateway.py`, `tests/gateway/test_api_server.py`, `tests/gateway/test_inbound_media_profile_scope.py`, `tests/gateway/test_multiplex_notice_egress_profile_adapter.py`, `tests/gateway/test_multiplex_session_db_profile_scope.py`, `tests/gateway/test_planned_restart_notice_multiplex.py`, `tests/gateway/test_profile_spool_recovery.py`, `tests/gateway/test_session_db_handle_sharing.py`, `tests/hermes_state/test_hermes_state.py` (+18 more)
- **#118870: fix(gateway): scope cached routed-session liveness checks**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#126157`, `#118862`
- **#123406: fix(gateway): read a routed profile's store in the cached agent's dead-session check**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `940f374a01`, `#126157`

## Fix status

- Merged to main in PR #126157 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-28`.
