Remote Control (/remote-control) disconnects frequently

Open 💬 14 comments Opened Mar 11, 2026 by daniawclothes-hue

Description

The /remote-control feature disconnects frequently and automatically without any user action. The session drops every few minutes and needs to be restarted manually.

Environment

  • Claude Code version: 2.1.72
  • OS: macOS Darwin 25.3.0 (Apple Silicon)
  • Location: Egypt
  • ISP: Egyptian ISP (WE/Orange)
  • Shell: zsh

What I tried (none of these helped)

  1. TCP keepalive — set net.inet.tcp.keepidle=15000, keepintvl=5000, always_keepalive=1
  2. DNS — changed to Cloudflare (1.1.1.1) + Google (8.8.8.8)
  3. Background HTTPS pings to api.anthropic.com every 20s to keep the network path alive
  4. VPN (Mullvad) — connected to Sweden server, still disconnects
  5. Mac sleep is disabledcaffeinate is running, sleep 0

Since VPN didn't fix it, the issue is not network/ISP related. The disconnection appears to be in the remote-control feature itself.

Steps to reproduce

  1. Start a Claude Code session
  2. Run /remote-control
  3. Connect from claude.ai/code or phone
  4. Wait a few minutes — connection drops automatically

Expected behavior

Remote control session should stay connected as long as the terminal is open and network is available.

🤖 Generated with Claude Code

View original on GitHub ↗

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