# NousResearch/hermes-agent · Desktop WebSocket reconnect loop churning sockets

## Open now

- Nothing open on GitHub.

A bug causes the desktop client to repeatedly reconnect WebSockets every few seconds, visibly flickering the UI, particularly during agent turns or multi-profile setups. Related fixes address forced wake reconnects disturbing healthy secondary sockets and busy pooled backends during dispatch probes.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #115701. Verify it addresses your case.
- **Recommended:** read PR #115701 (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-115701`. 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.50`: 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

- #94769: \[Bug\] Desktop UI continuously flickers (WS reconnect loop every 2–5s) — worse during agent turns; multi-profile setup

## Prior & competing PRs

- **#115701: Desktop: a forced wake reconnect no longer churns healthy secondary sockets (#94769, salvage #112834)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts`, `apps/desktop/src/lib/gateway-liveness-policy.ts`, `apps/desktop/src/store/gateway-activation-prune-lease.test.ts`, `apps/desktop/src/store/gateway-connection-lifecycle.test.ts`, `apps/desktop/src/store/gateway-connection-scope.test.ts`, `apps/desktop/src/store/gateway-foreground-retention.test.ts`, `apps/desktop/src/store/gateway.ts`, `apps/desktop/src/store/session-request-router.test.ts`, `contributors/emails/155116265+psam-717@users.noreply.github.com`
- **#106777: fix(desktop): tolerate busy pooled backends during dispatch probes**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#100040`
- **#112834: fix(desktop): stop forced wake reconnects from churning live secondary sockets (#94769)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `69c51bb008`, `a915f0b3b2`, `ad6c7a5a4c`, `8600cb0744`, `e796a29866`, `#115701`

## Fix status

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