Files
hermes-agent/apps
Hermes Agent 7be5d40033 fix(desktop): retry the initial gateway WS connect across backend cold-start
The renderer made a single gateway.connect() call during boot, so a
freshly spawned backend that was still initializing (event loop blocked
15-30s by MCP connects and plugin discovery) made the one dial lose and
boot ended in the 'Could not connect to Hermes gateway' modal even
though the backend became healthy moments later. Retry the initial dial
with bounded attempts, re-minting the WS URL on every attempt (OAuth
tickets are single-use), and propagate reauth failures immediately.

Co-authored-by: Mani Saint-Victor, MD <drmani215@gmail.com>
2026-09-26 16:46:18 -05:00
..