NousResearch/hermes-agent

Desktop remote gateway connection flapping and WebSocket readiness issues

Cluster 37869 · apps/desktop. Data as of

1 open item. Fix merged in #65885 on 16 Jul 2026. Check it covers your case.

The short answer

0open issues
1open PR
15items grouped
Known?
Yes. 15 related items grouped here, 8 issues already closed.
Fix event
A fix was merged to main in PR #65885. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #65885. That is separate from the fix event.
Still open
0 issues and 1 PR.

Most members concern Hermes Desktop in remote gateway mode, with reports of connection errors, reconnect loops, or fallback to the local backend even when the remote backend appears reachable. Related pull requests touch stale backend exit handling and WebSocket readiness checks; a couple of members (Host/Origin guard, CLI --insecure) are adjacent WebSocket topics.

Open issues0

No open issues.

Open PRs1

  • PR#39522fix(desktop): validate remote gateway websocket readiness

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #65885 fix(desktop): preserve active connection across stale backend exits (supersedes #62308)

    merged to main

    files: apps/desktop/electron/backend-connection-state.test.ts, apps/desktop/electron/backend-connection-state.ts, apps/desktop/electron/main.ts, apps/desktop/src/app/settings/gateway-settings.test.ts, apps/desktop/src/app/settings/gateway-settings.tsx

5 PRs closed without merging

From the close comments: done elsewhere 3 · superseded by another PR 1 · other 1

  • #17887 fix(cli): honor --insecure for dashboard WebSocket connections · other
  • #38292 fix(desktop): ignore stale backend exits · done elsewhere → 6feb40e, 39d0945
  • #40408 fix(security): bypass Host/Origin guard for authenticated WS connections (#38412, #40391) · done elsewhere → 6ed9a2d, dd28f2a, #38412
  • #41570 fix(desktop): increase WebSocket probe grace window from 750ms to 3s (fixes #41566) · superseded by another PR → 39d0945, #41566
  • #62308 fix(desktop): preserve active connection across stale backend exits · done elsewhere → #65885
Closed issues · 8
  • Closed#37869[Bug]: Desktop app shows remote connection failure while logs say remote backend is ready
  • Closed#38266[Bug]: Hermes Desktop 0.15.1 remote gateway enters reconnect loop after successful connection
  • Closed#38332Hermes Desktop remote gateway reaches backend but UI still shows startup error / falls back to local backend unless env-forced
  • Closed#38873Hermes Desktop remote gateway mode flaps back to local backend after successful remote readiness
  • Closed#40083Desktop: Electron renderer crash loop on remote gateway connection (v0.15.1)
  • Closed#40391[Bug]: Hermes Desktop Remote Gateway — connects to REST but fails WebSocket / flaps back to local
  • Closed#41566[Bug]: Desktop still shows 'Could not connect to Hermes gateway' after successful remote HTTPS/WSS verification
  • Closed#43904[Desktop v0.16.0] Remote backend "ready" but UI stuck on red error dialog, loops in reset/repair cycle
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.09: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
apps/desktop
Merged PRs
#65885
Closed issues
8
Attempts
5 PRs closed without merging
Fix link checked
16 Jul 2026

For your agent

The same facts, typed.