# NousResearch/hermes-agent · Multiplex session scoping bugs under routed profiles

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #124057: fix(terminal): qualify session-isolated container keys and cwd records under a routed profile scope

These items concern a class of bugs where multiplexed sessions, containers, working-directory records, and chat session IDs are incorrectly shared or bound to the wrong profile when routing differs from the launch profile. The fixes involve namespacing or qualifying keys by the routed profile to isolate sessions properly.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 1 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.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

- #123989: \[Bug\]: Multiplex: API-server turns for different profiles share one Docker sandbox when their opening messages match

## 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)
- **#123991: fix(api-server): namespace the derived chat session id by the routed profile**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `124b5c7d45`, `#123989`
- **#124057: fix(terminal): qualify session-isolated container keys and cwd records under a routed profile scope**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#123989`
  - files: `tests/tools/test_docker_session_isolation.py`, `tools/terminal_tool.py`

## Fix status

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