claude-code - 💡(How to fix) Fix Remote Control: session hangs indefinitely after ~10 minutes of active use [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

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#52860Fetched 2026-04-25 06:18:56
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

When Remote Control is connected to a Claude Code session, the session works normally for the first few minutes but then becomes unresponsive after roughly 10 minutes — tool calls stop returning, output never appears, the UI hangs indefinitely until Remote Control is disconnected (or the session is force-killed).

Error Message

  • The harness sometimes reports Tool result missing due to internal error for in-flight calls.

Root Cause

  • Bash tool calls launched after the freeze never complete and never report exit status.
  • The harness sometimes reports Tool result missing due to internal error for in-flight calls.
  • Background tasks (started with run_in_background: true) appear to keep running on the host (their output files keep growing) but completion notifications never arrive in the session.
  • The model-side text generation continues briefly but the session as a whole stalls because tool results never come back.

Fix Action

Workaround

Avoid /remote-control for sessions expected to run longer than ~10 minutes; or disconnect proactively before that window.

RAW_BUFFERClick to expand / collapse

Summary

When Remote Control is connected to a Claude Code session, the session works normally for the first few minutes but then becomes unresponsive after roughly 10 minutes — tool calls stop returning, output never appears, the UI hangs indefinitely until Remote Control is disconnected (or the session is force-killed).

Reproduction

  1. Launch a Claude Code session in a terminal.
  2. Connect Remote Control (/remote-control).
  3. Use the session normally — issue prompts, run tool calls (Bash, Edit, Read, etc.).
  4. After ~10 minutes of activity, an arbitrary tool call hangs.
  5. From that point forward no output is produced; subsequent tool calls also hang.
  6. Disconnecting Remote Control restores the session's ability to make progress (sometimes; in worst cases requires a fresh session).

Symptoms

  • Bash tool calls launched after the freeze never complete and never report exit status.
  • The harness sometimes reports Tool result missing due to internal error for in-flight calls.
  • Background tasks (started with run_in_background: true) appear to keep running on the host (their output files keep growing) but completion notifications never arrive in the session.
  • The model-side text generation continues briefly but the session as a whole stalls because tool results never come back.

Expected behavior

Remote Control should not introduce a time-bounded failure mode; long sessions (well over 10 minutes) should remain responsive whether or not Remote Control is connected.

Environment

  • Platform: macOS (Darwin 25.2.0, arm64)
  • Claude Code: native install, opus-4.7 1M context
  • Shell: zsh 5.9
  • Reproduced today across multiple sessions in the same workspace.
  • Coincides with heavy background command usage (cargo build, yarn dev:app) and parallel agents.

Workaround

Avoid /remote-control for sessions expected to run longer than ~10 minutes; or disconnect proactively before that window.

Notes

  • The reported 10-minute threshold is approximate; the failure is consistent in shape but the exact timing varies a few minutes either way.
  • Happy to capture more detailed diagnostics (logs, traces) if there's a specific switch / debug flag to enable on the next reproduction.

extent analysis

TL;DR

Disconnecting Remote Control before the 10-minute mark or avoiding its use for long sessions may mitigate the issue.

Guidance

  • Investigate the role of background tasks and parallel agents in the failure, as they seem to coincide with the issue.
  • Capture detailed diagnostics (logs, traces) with a specific switch or debug flag to better understand the internal error causing the tool result to go missing.
  • Test the session without heavy background command usage (cargo build, yarn dev:app) to isolate the impact of these commands on the failure.
  • Consider implementing a proactive disconnection of Remote Control before the 10-minute window to prevent the session from becoming unresponsive.

Example

No code snippet is provided as the issue does not imply a specific code-related fix.

Notes

The exact cause of the failure is unclear, and the 10-minute threshold is approximate, making it challenging to provide a definitive solution. Further diagnostics and testing are necessary to understand the root cause.

Recommendation

Apply workaround: Disconnect Remote Control before the 10-minute mark or avoid its use for long sessions, as this seems to mitigate the issue and allow the session to remain responsive.

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

Remote Control should not introduce a time-bounded failure mode; long sessions (well over 10 minutes) should remain responsive whether or not Remote Control is connected.

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: session hangs indefinitely after ~10 minutes of active use [1 comments, 2 participants]