# NousResearch/hermes-agent · CLI handoff routing and session state on shutdown

## Open now

- Nothing open on GitHub.

These items concern preserving handoff state during TUI shutdown, ensuring slash commands and session routing act on the correct profile under multiplexed gateways, and addressing stale-route issues that cause context loss when CLI-initiated handoffs route to closed sessions.

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

- #118196: CLI→Slack /handoff routes to a session the stale-route self-heal refuses to reopen (cli_close) — context lost on first reply

## Prior & competing PRs

- **#120129: Gateway slash commands and session routing act on the routed profile under multiplex (#119915, #119971, #119864, #119876; salvage #119922 #119972 #119868 #119875 #119904)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/relay_llm.py`, `contributors/emails/[redacted:email]`, `gateway/run_busy.py`, `gateway/run_inbound.py`, `gateway/run_shutdown.py`, `gateway/run_turn.py`, `gateway/session.py`, `gateway/slash_commands_session.py`, `hermes_state_gateway.py`, `tests/agent/test_relay_llm.py`, `tests/gateway/test_handoff_owned_recovery.py`, `tests/gateway/test_restart_drain.py`, `tests/gateway/test_slash_config_writes_routed_profile.py`, `tests/gateway/test_slash_dispatch_routed_scope.py`, `tests/gateway/test_switch_session_keeps_model_override.py`
- **#118202: fix(cli): preserve completed handoffs on TUI shutdown**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#120129`, `#118196`

## Fix status

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