feat: add /remote-control command over ACP#735
Open
Dhananjay-JSR wants to merge 1 commit into
Open
Conversation
Intercept /remote-control and /rc to toggle Claude Code Remote Control and surface the claude.ai/code session URL to the client.
5df6bbc to
6ca4184
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
/remote-control(alias/rc) to surface Claude Code Remote Control over ACP — connect a running session to claude.ai/code and continue it from a phone or browser. Intercepts the command inprompt(), callsquery.enableRemoteControl(enabled, name), posts the returned session URL back to the client, and advertises both commands so clients (e.g. Zed) forward them. A second invocation disconnects.Note:
enableRemoteControlexists on the runtimeQuery(claude-agent-sdk 0.3.x) but isn't in the published types yet, so it's reached via a small type shim.Verification:
npm run check,npm run build,npm run test:run(new unit tests cover the toggle, error path, and command advertising). Also verified end-to-end over ACP against a real Claude binary.