[BUG] remote-control fails with "bad option: --sdk-url" on Node.js 22

Resolved 💬 3 comments Opened Feb 26, 2026 by yclo2016 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

  1. Run claude remote-control or claude rc
  2. 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.

View original on GitHub ↗

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