Remote control: archiving a session on iOS should terminate the server-side process

Resolved 💬 2 comments Opened Mar 29, 2026 by owisscha Closed May 1, 2026

Description

When using claude remote-control --spawn same-dir in a loop to enable sequential remote sessions from the iOS app, archiving a session in the iOS app does not terminate the server-side process. The Mac terminal keeps waiting for input, so no new session spawns.

Current behavior

  1. Run while true; do claude remote-control --spawn same-dir; sleep 3; done
  2. A session appears in the Claude iOS app
  3. Tap "Archive" in the iOS app
  4. The session is archived on the iOS side, but the terminal process keeps running
  5. No new session spawns — the loop doesn't iterate

Expected behavior

Archiving (or explicitly closing) a session in the iOS app should signal the server-side process to exit, so the loop can restart and a new session appears in the app automatically.

Workaround

Manually press Ctrl+C in the Mac terminal after archiving on iOS. The loop then restarts and a new session appears.

Environment

  • macOS, Claude Code CLI
  • Claude iOS app
  • claude remote-control --spawn same-dir

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗