claude-code - 💡(How to fix) Fix /remote-control client falls behind on long-running sessions, doesn't recover after reopen [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57801Fetched 2026-05-11 03:25:02
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

When activating /remote-control on a long-running CLI session, secondary clients struggle to stay in sync — they get stuck on older messages and don't backfill or catch up to the live state. Closing and reopening the lagging client does not fix it.

Root Cause

When activating /remote-control on a long-running CLI session, secondary clients struggle to stay in sync — they get stuck on older messages and don't backfill or catch up to the live state. Closing and reopening the lagging client does not fix it.

Fix Action

Fix / Workaround

Suspect the long-session backfill path is the culprit — fresh sessions don't exhibit this. Workarounds attempted: close+reopen the lagging app (no effect), confirm same session ID (yes).

RAW_BUFFERClick to expand / collapse

Summary

When activating /remote-control on a long-running CLI session, secondary clients struggle to stay in sync — they get stuck on older messages and don't backfill or catch up to the live state. Closing and reopening the lagging client does not fix it.

Steps to reproduce

  1. Run a long Claude Code session in the terminal (many messages of history).
  2. Run /remote-control and connect a phone or browser client — works fine.
  3. From a second device (e.g. another phone, or browser), connect to the same session via the session list on claude.ai/code or the mobile app.
  4. The second client lands on the correct session but is stuck several messages behind the live state.

Expected behavior

Per the docs, all connected clients should stay in real-time sync, and a newly-connected client should backfill the full conversation history.

Actual behavior

  • Second client shows older messages only; new messages from the live session don't arrive.
  • Closing and reopening the app on the lagging client does not resolve it.
  • Same session confirmed (not two different sessions).
  • Pattern is reproducible on long-history sessions specifically; fresh sessions sync fine.

Environment

  • macOS (Darwin 25.2.0)
  • Claude Code CLI, recent version
  • Lagging client: iPhone Claude app
  • Primary client: terminal CLI on the Mac

Notes

Suspect the long-session backfill path is the culprit — fresh sessions don't exhibit this. Workarounds attempted: close+reopen the lagging app (no effect), confirm same session ID (yes).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Per the docs, all connected clients should stay in real-time sync, and a newly-connected client should backfill the full conversation history.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix /remote-control client falls behind on long-running sessions, doesn't recover after reopen [1 comments, 2 participants]