[BUG] remote-control fails with "bad option: --sdk-url" on Node.js 22
Status Closed — duplicate
Reported on v2.1.59
Maintainer reply None cached
Activity 3 comments · opened Feb 26, 2026 · closed Mar 1, 2026
Bug Description
claude remote-control fails immediately after connecting with the error:
Session failed: /usr/local/Cellar/node@22/22.22.0_1/bin/node: bad option: --sdk-url
Steps to Reproduce
- Run
claude remote-controlorclaude rc - Session connects briefly, then immediately fails
Expected Behavior
Remote control session should start and remain connected.
Actual Behavior
$ claude remote-control
[00:44:43] Reconnected after 4s
[00:44:45] Session failed: /usr/local/Cellar/node@22/22.22.0_1/bin/node: bad option: --sdk-url
Environment
- Claude Code version: 2.1.59
- Node.js version: v22.22.0
- OS: macOS
Analysis
The --sdk-url flag appears to be passed to Node.js instead of Claude Code CLI when spawning the child session.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗