Problem
When the remote control connection between the iOS app and a local Claude Code session drops (cause unclear — possibly backgrounding the app or network interruption):
- No indication the connection is lost — the session still appears "Interactive" on iOS
- Messages silently fail — user types and sends messages that appear to go through but are never received by the local session
- Spinner continues on iOS giving the impression the session is working
- Force quitting and reopening the iOS app shows the session as "Idle" but tapping into it loads the stale conversation state from before the disconnect (hours old in this case)
- Cannot resync — the only option is "New session" which loses all conversation context
Repro steps
- Start a Claude Code session on Mac with remote control enabled
- Connect from iOS Claude app — works fine initially
- Wait for connection to drop (backgrounding app, network change, or just time)
- Try sending a message from iOS — appears to send, no error shown
- Notice the local terminal never receives the message
- Force quit iOS app, reopen, tap into session
- Conversation shows stale state, not current
Expected behavior
- Detect the connection drop and show a clear "Disconnected" indicator
- Prevent message loss by showing an error when sending on a dead connection
- Resync the conversation state when reconnecting to an active session
- Fall back gracefully — if resync isn't possible, tell the user rather than showing stale state
Environment
- Claude Code 2.1.56
- iOS Claude app via remote control
- iPhone on WiFi, Mac on same network
Problem
When the remote control connection between the iOS app and a local Claude Code session drops (cause unclear — possibly backgrounding the app or network interruption):
Repro steps
Expected behavior
Environment