# NousResearch/hermes-agent · Model switching and session cache sync issues

## Open now

- 2 issues, 2 PRs open on GitHub.
- #48840: \[Bug\] 网关显示异常 + 模型名未随配置更新（UI刷新不同步）
- #67120: Changing model via SSH/hermes config no longer propagates to active gateway sessions after update
- PR #45936: fix: use config.set for desktop model switches
- PR #48872: Fix Ollama TUI inventory/runtime sync

Multiple bug reports and fixes related to model configuration changes not propagating to active sessions, stale model caches persisting after resets or switches, and UI state falling out of sync with the actual model being used across gateway, desktop, and CLI contexts.

## TL;DR

- 9 member(s): 2 open issue(s), 4 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_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.13`: 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

- #48840: \[Bug\] 网关显示异常 + 模型名未随配置更新（UI刷新不同步）
- #67120: Changing model via SSH/hermes config no longer propagates to active gateway sessions after update

## Closed / duplicate issues

- #10368: \[Bug\]: 切换模型后，没实时刷新缓存？导致AI继续以为自己还是上一个模型
- #20628: Title: \[Feature Request\] Dynamic Model Switching for Gateway Platforms
- #45689: \[Bug\] 桌面端模型切换路由不同步：右下角 UI 选 deepseek 实际仍走千问
- #58403: /new doesn't reset model config — old session keeps using stale model after config change

## Prior & competing PRs

- **#45936: fix: use config.set for desktop model switches**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `ce5c1f9f79a5735e6ac154903ef93782261b9c87`, `cb6b4127e795e55bdd7ae4fe35a0ff3cd9f53736`
  - files: `apps/desktop/src/app/session/hooks/use-model-controls.test.tsx`, `apps/desktop/src/app/session/hooks/use-model-controls.ts`
- **#48872: Fix Ollama TUI inventory/runtime sync**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/inventory.py`, `tests/hermes_cli/test_inventory.py`, `tests/tui_gateway/test_make_agent_provider.py`, `tui_gateway/server.py`
- **#58431: fix(gateway): clear last-resolved-model cache on /new and compression auto-reset**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## Fix status

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