Skip to content

Remote control session fails to resync after connection drop #28571

@dk0hn

Description

@dk0hn

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):

  1. No indication the connection is lost — the session still appears "Interactive" on iOS
  2. Messages silently fail — user types and sends messages that appear to go through but are never received by the local session
  3. Spinner continues on iOS giving the impression the session is working
  4. 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)
  5. Cannot resync — the only option is "New session" which loses all conversation context

Repro steps

  1. Start a Claude Code session on Mac with remote control enabled
  2. Connect from iOS Claude app — works fine initially
  3. Wait for connection to drop (backgrounding app, network change, or just time)
  4. Try sending a message from iOS — appears to send, no error shown
  5. Notice the local terminal never receives the message
  6. Force quit iOS app, reopen, tap into session
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:claude-code-webClaude Code on the web. claude.com/codearea:networkingbugSomething isn't workingplatform:iosIssue specifically occurs on iOSplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions