agent-orchestrator/packages/web/src
prateek 3cb03f6222
fix: WebSocket reconnection in DirectTerminal (#248)
* fix: add WebSocket reconnection with exponential backoff in DirectTerminal

A single network hiccup permanently killed the terminal with no retry.
Now transient disconnects trigger automatic reconnection (1s→2s→4s…15s max)
while permanent errors (4001 auth, 4004 not-found) still fail immediately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: reset reconnection state when sessionId changes

Reset permanentErrorRef and reconnectAttemptRef at the start of the
useEffect so switching sessions doesn't inherit stale error/retry state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:18:07 +05:30
..
__tests__ feat(web): redesign dashboard, session detail, and orchestrator terminal (#125) 2026-02-20 18:43:57 +05:30
app feat(web): subscribe Dashboard to SSE for real-time session updates (#249) 2026-03-01 20:04:57 +05:30
components fix: WebSocket reconnection in DirectTerminal (#248) 2026-03-01 20:18:07 +05:30
hooks feat(web): subscribe Dashboard to SSE for real-time session updates (#249) 2026-03-01 20:04:57 +05:30
lib feat(web): redesign dashboard, session detail, and orchestrator terminal (#125) 2026-02-20 18:43:57 +05:30
vitest.d.ts fix: upgrade @testing-library/jest-dom for vitest 2.x type compatibility (#21) 2026-02-14 14:40:44 +05:30