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)
- TCP keepalive — set
net.inet.tcp.keepidle=15000, keepintvl=5000, always_keepalive=1
- DNS — changed to Cloudflare (1.1.1.1) + Google (8.8.8.8)
- Background HTTPS pings to api.anthropic.com every 20s to keep the network path alive
- VPN (Mullvad) — connected to Sweden server, still disconnects
- Mac sleep is disabled —
caffeinate 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
- Start a Claude Code session
- Run
/remote-control
- Connect from claude.ai/code or phone
- 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
Description
The
/remote-controlfeature disconnects frequently and automatically without any user action. The session drops every few minutes and needs to be restarted manually.Environment
What I tried (none of these helped)
net.inet.tcp.keepidle=15000,keepintvl=5000,always_keepalive=1caffeinateis running,sleep 0Since 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
/remote-controlExpected behavior
Remote control session should stay connected as long as the terminal is open and network is available.
🤖 Generated with Claude Code