# NousResearch/hermes-agent · Desktop gateway staleness and session reconnect errors

## Open now

- Nothing open on GitHub.

These items relate to handling stale or error-prone gateway connections on Desktop, including recovery behavior and how session requests follow owner connection state. One case covers a gateway remaining \`'open'\` after \`session_persistence_failed\` with no auto-reconnect, leaving Bot Chat showing \`'gateway unavailable'\`.

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

- #121680: Desktop: gateway stays 'open' after session_persistence_failed — no auto-reconnect, Bot Chat shows 'gateway unavailable'

## Prior & competing PRs

- **#126144: Desktop/dashboard session requests follow the session's owner connection, profile and live gateway (#125372, #125287, #124265, #120213, #121680)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/main.ts`, `apps/desktop/electron/session-windows.test.ts`, `apps/desktop/electron/session-windows.ts`, `apps/desktop/src/api/client.ts`, `apps/desktop/src/api/sessions.test.ts`, `apps/desktop/src/api/sessions.ts`, `apps/desktop/src/app/chat/composer/status-stack/index.tsx`, `apps/desktop/src/app/chat/history-window.ts`, `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/gateway/hooks/use-gateway-request.test.ts`, `apps/desktop/src/app/gateway/hooks/use-gateway-request.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/components/assistant-ui/thread/timeline-index.test.ts`, `apps/desktop/src/components/assistant-ui/thread/timeline-index.ts`, `apps/desktop/src/components/assistant-ui/thread/use-timeline-history.test.tsx`, `apps/desktop/src/components/assistant-ui/tool/delegate.tsx`, `apps/desktop/src/global.d.ts`, `apps/desktop/src/store/profile.ts` (+8 more)
- **#121771: fix(desktop): recover when gateway ref is stale**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#126144`

## Fix status

- Merged to main in PR #126144 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-28`.
