Skip to content

Browser WebSocket auto-reconnect: no manual refresh needed #773

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#773",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Problem

When the node-server restarts (deploy, crash recovery), the browser WebSocket disconnects and the UI goes white. User must manually refresh the page.

Expected

Browser detects WebSocket close, shows a brief "Reconnecting..." indicator, auto-reconnects when the server comes back. No data loss, no refresh.

Implementation

In TransportFactoryBrowser.ts or the WebSocket client:

  1. On ws.onclose — start reconnection loop with backoff (1s, 2s, 4s... 15s cap)
  2. Show unobtrusive "Reconnecting..." toast/banner
  3. On reconnect — re-establish session, re-subscribe to events
  4. Remove banner, resume normal operation

The server-side IPC already has this pattern (added in this PR for both RustCoreIPCClientBase and ORMRustClient). Apply the same approach browser-side.

Activity

  1. added
    airc-queue
    on May 14, 2026
  2. github-actions commented on Jul 17, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  3. github-actions commented on Aug 18, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions