# NousResearch/hermes-agent · Named-profile session key parsing in gateway

## Open now

- Nothing open on GitHub.

These issues and pull requests concern how the gateway parses and handles session keys for named (non-default) profiles, including namespace recognition and state isolation per profile. A recurring problem is that hardcoded or profile-unaware logic causes secondary profiles to share or mishandle session keys and state.

## 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 #108294. Verify it addresses your case.
- **Recommended:** read PR #108294 (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_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

- #105931: agent:main hardcoded in _parse_session_key and run_busy breaks named-profile session keys (multiplexing)

## Prior & competing PRs

- **#108294: fix(gateway): secondary profiles keep their session keys and own state.db on every path (#98292, salvage #105942 #98294)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/platforms/qqbot/adapter.py`, `gateway/run.py`, `gateway/run_busy.py`, `gateway/run_notifications.py`, `gateway/run_shutdown.py`, `gateway/session_persistence.py`, `gateway/slash_commands_session.py`, `hermes_cli/goals.py`, `tests/gateway/test_background_process_notifications.py`, `tests/gateway/test_multiplex_session_db_profile_scope.py`, `tests/gateway/test_qqbot.py`, `tests/gateway/test_stop_thread_sibling.py`, `tests/gateway/test_undo_rewind_session.py`, `tests/hermes_cli/test_goals.py`, `tests/hermes_cli/test_goals_db_bootstrap_off_loop.py`, `tests/tui_gateway/test_launch_db_home_override_race.py`, `tui_gateway/agent_callbacks.py`, `tui_gateway/methods_tools.py`, `tui_gateway/session_lifecycle.py`, `tui_gateway/session_notifications.py` (+1 more)
- **#105942: fix(gateway): parse named-profile namespaces in session keys (#105931)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `bdb38e3fc64`, `5fc784a8cff`, `#108294`
- **#105943: fix(gateway): honor profile namespace in session-key parse + busy sibling match**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#105942`

## Fix status

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