# NousResearch/hermes-agent · Desktop session continuity bugs during profile/gateway changes

## Open now

- Nothing open on GitHub.

These issues and fixes address cases where desktop sessions are incorrectly resumed, lost, or not rebound during profile switches, gateway opens, and WebSocket reconnects. The work focuses on preserving correct session routing across these transition events.

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

- #68594: \[Bug\]: Desktop profile switch resumes previous session when target gateway opens

## Prior & competing PRs

- **#95080: fix(desktop): gateway switches, primary reuse, and session routing hold exact route identity (multi-gateway class 1, tracker #94724)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/main.ts`, `apps/desktop/electron/profile-session-routing.test.ts`, `apps/desktop/electron/profile-session-routing.ts`, `apps/desktop/src/app/contrib/wiring.tsx`, `apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx`, `apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts`, `apps/desktop/src/app/session/hooks/use-hermes-config.test.ts`, `apps/desktop/src/app/session/hooks/use-hermes-config.ts`, `apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx`, `apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts`, `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-list-actions.test.tsx`, `apps/desktop/src/app/session/hooks/use-session-list-actions.ts`, `apps/desktop/src/lib/json-rpc-gateway-recovery.test.ts`, `apps/desktop/src/lib/with-timeout.test.ts`, `apps/desktop/src/lib/with-timeout.ts`, `apps/desktop/src/store/connections.test.ts` (+19 more)
- **#68632: fix(desktop): guard gateway-open resume against active fresh-draft transition (#68594)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `682a34a7c`, `#95080`, `#94724`

## Fix status

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