# NousResearch/hermes-agent · Fix route persistence during provider fallback

## Open now

- 1 issue, 2 PRs open on GitHub.
- #121506: Provider fallback is persisted into the session row, so resumed sessions keep running on the fallback (and the fallback inherits the primary's identity note)
- PR #121533: fix(session): preserve requested route across provider fallback
- PR #121629: fix(tui): resume a fallback-served chat on its picked model and provider

These changes address how the originally requested route is stored and restored across provider fallback scenarios, ensuring that sessions, gateways, and the TUI correctly preserve and resume on the intended or fallback-picked model and provider rather than a transient live route.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.

## Open related issues

- #121506: Provider fallback is persisted into the session row, so resumed sessions keep running on the fallback (and the fallback inherits the primary's identity note)

## Prior & competing PRs

- **#121533: fix(session): preserve requested route across provider fallback**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/agent_init.py`, `agent/agent_runtime_helpers.py`, `agent/conversation_compression.py`, `agent/session_route.py`, `hermes_cli/cli_model_switch_mixin.py`, `hermes_state_usage.py`, `run_agent.py`, `tests/agent/test_compression_child_source.py`, `tests/tui_gateway/test_fallback_requested_session_route.py`, `tui_gateway/server.py`
- **#121540: fix(gateway): persist the requested route, not a fallback turn's live route**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#121506`, `#121533`, `#121533`, `#121533`
- **#121629: fix(tui): resume a fallback-served chat on its picked model and provider**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `4fdb028b00431cf022a65d92457c1e6a2f468023`, `aa8a33d22d27973df6591e48f38228274c8ad771`, `ee5ee84a345204a3b1d6ef6ba1ab747e602867b9`, `09d62097a3bbe594d62b6c4b7779cea9b1066ed2`, `#121533`, `#121533`, `#121533`, `#118982`, `#110282`, `#121540`, `#121533`, `#121506`, `#118969`, `#118969`
  - files: `tests/tui_gateway/test_resume_switched_provider_endpoint.py`, `tui_gateway/server.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
