# NousResearch/hermes-agent · Desktop session routing race condition bug and fix

## Open now

- Nothing open on GitHub.

A bug where creating a new session causes the prompt to jump back to an old session, addressed by holding a creation guard until the route updates to reflect the new session.

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

- #66057: bug(desktop): new session sends prompt then jumps back to old session

## Prior & competing PRs

- **#127231: fix(desktop): hold the create guard until the route catches up to the new session**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/chat/composer/hooks/use-composer-submit.restore-scoping.test.tsx`, `apps/desktop/src/app/contrib/wiring.tsx`, `apps/desktop/src/app/session/hooks/default-new-session.test.tsx`, `apps/desktop/src/app/session/hooks/profile-rail-fresh-chat-owner.test.tsx`, `apps/desktop/src/app/session/hooks/resume-occurrences.test.tsx`, `apps/desktop/src/app/session/hooks/use-route-resume.test.tsx`, `apps/desktop/src/app/session/hooks/use-route-resume.ts`, `apps/desktop/src/app/session/hooks/use-session-actions.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-actions/index.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/remove-archived-session.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-actions/unarchive-session.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-state-cache.test.tsx`, `apps/desktop/src/app/session/hooks/warm-resume-replay-barrier.test.tsx`, `apps/desktop/src/app/session/hooks/wrong-session-closeout.test.tsx`
- **#66610: fix(desktop): hold create guard until route catches new session**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`; refs `#66546`, `#66524`, `#66523`

## Fix status

- Merged to main in PR #127231 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-01`.
- Subsystem: `apps/desktop`
