# NousResearch/hermes-agent · Gateway session DB handle invalidated after profile changes

## Open now

- Nothing open on GitHub.

These issues and fixes concern the multiplexed gateway retaining or failing to reopen a session DB handle that the registry tore down following profile stop, restart, or deletion. A related item addresses session lifecycle path binding to the routed profile's home rather than the launch profile.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 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.67`: 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

- #123618: Multiplexed gateway: after a profile stop/restart/delete, the gateway keeps serving the SessionDB handle the registry tore down

## 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)
- **#123619: fix(gateway): reopen a session DB handle the registry tore down**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d46ea7bf20`, `#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`.
