[claude] App-state aware WebSocket reconnect on foreground (#33) #77

Merged
claude merged 1 commits from claude/issue-33 into main 2026-03-23 01:51:48 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
b9a9d44da6 feat: add AppState-aware WebSocket reconnect on mobile foreground
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
When the app returns from background, check if the WebSocket is still
open. If not, close the stale socket and reconnect with reset backoff.
Proactively close the WS when backgrounding to save battery and avoid
OS killing it mid-frame. Add "reconnecting" connection status with
amber pulsing badge so users see the app is re-establishing connection.

Fixes #33

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:50:40 -04:00