remote-control: bridge session spawn missing script path in args

Resolved 💬 3 comments Opened Feb 25, 2026 by berrymat Closed Mar 1, 2026

Bug

claude remote-control fails with node: bad option: --sdk-url when spawning bridge sessions.

Version: 2.1.58
Node: v22.22.0 (also tested v25.6.1)
OS: macOS (Darwin, Apple Silicon)

Root Cause

In the bridge session spawner, spawn(process.execPath, ["--print", "--sdk-url", ...]) is called without including the script path (cli.js) as the first argument. Node interprets --sdk-url as a node runtime flag.

Repro

claude remote-control --verbose
# Press space to show QR code
# Session immediately fails with: node: bad option: --sdk-url <session_id>

Expected

The spawn should include the script path: spawn(process.execPath, [scriptPath, "--print", "--sdk-url", ...])

View original on GitHub ↗

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