# NousResearch/hermes-agent · Preserving first user message across model switches and API payloads

## Open now

- 1 issue, 2 PRs open on GitHub.
- #131382: \[Bug\] Desktop model switch drops the first user message; Qwen templates on LM Studio then fail with "No user query found in messages"
- PR #134018: fix(agent): enforce leading-user-turn invariant on API payloads \[risk 0.80\]
- PR #135970: fix(tui_gateway): keep the prompt a model-switch marker absorbed when the next switch strips it

These three items appear related: one bug report describes the first user message being dropped on a desktop model switch, causing a "No user query found" error with Qwen templates on LM Studio. The two fix-oriented items concern enforcing a leading user turn in API payloads and keeping a prompt absorbed by a model-switch marker. The exact relationship between them is not established beyond these titles.

## TL;DR

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

## Open related issues

- #131382: \[Bug\] Desktop model switch drops the first user message; Qwen templates on LM Studio then fail with "No user query found in messages"

## Prior & competing PRs

- **#134018: fix(agent): enforce leading-user-turn invariant on API payloads \[risk 0.80\]**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `df71d9657fc8fc5ac29e7588add4e5eaf1eaf04f`
  - files: `agent/agent_runtime_leading_user.py`, `agent/turn_request_assembly.py`, `tests/agent/test_agent_runtime_leading_user.py`
- **#135970: fix(tui_gateway): keep the prompt a model-switch marker absorbed when the next switch strips it**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tui_gateway/test_model_switch_marker_role.py`, `tui_gateway/prompt_turn.py`, `tui_gateway/server.py`, `tui_gateway/session_history.py`

## Fix status

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