# NousResearch/hermes-agent · Gateway session storage scoping and profile isolation

## Open now

- Nothing open on GitHub.

These items concern bugs and fixes around multiplexed gateway sessions being stored in wrong profiles or incomplete storage backends (state.db vs sessions.json), plus a refactor to consolidate routing state and improve fallback behavior.

## TL;DR

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

- #48519: \[BUG\] Sub-profile gateway: sessions.json populated but state.db remains empty — complete session data loss (related to #40344, #46144)
- #66887: Multiplexed gateway: secondary-profile Telegram sessions persist in the default profile's state.db / sessions.json (creation AND recovery paths) — config/SOUL/memory scope correctly, storage does not

## Prior & competing PRs

- **#99770: fix(gateway): give the routing index one store instead of the ambient one (salvage #99559)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `gateway/session.py`, `tests/gateway/test_multiplex_session_db_profile_scope.py`, `tests/gateway/test_routing_save_fast_path.py`
- **#48692: fix(gateway): fall back when agent sqlite persistence fails**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#48519`

## Fix status

- Merged to main in PR #99770 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-31`.
- Subsystem: `gateway`
