Slash commands not supported in /remote-control UI
When using /remote-control to continue a local Claude Code session from claude.ai/code or a mobile device, slash commands (e.g., /clear, /compact, /context, /rewind) typed in the remote UI are not processed as commands — they're sent as regular chat messages.
Steps to Reproduce
- Start a Claude Code session locally
- Run
/remote-controlto get a remote session link - Open the session in claude.ai/code or mobile
- Type
/clear(or any slash command) in the remote UI - Observe it's treated as plain text, not executed as a command
Expected Behavior
Slash commands from the remote UI should be recognized and executed by the local CLI process, the same way they work in the local terminal.
Current Behavior
Slash commands are only processed when typed in the local terminal. The remote UI has no way to trigger them.
Impact
Users working from the remote interface have no way to manage their session (clear context, compact, rewind, etc.) without switching back to the local terminal.
Suggestion
Intercept messages starting with / in the remote-control protocol and route them through the local CLI's command handler.
Showing cached comments. Read the full discussion on GitHub ↗
12 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
the same
just type any / - and nothing happen
this is vibe code we deserve
when using remote-control with version v2.1.126, I'm finding that slash commands are working as slash commands. I'm not getting UI help (type "/" then see a list of commands), so I need to know the commands, but claude is definitely processing them as commands.
That's helpful if they work - though one has to wonder how long it takes to vibe code up the auto complete support. But at least if they work, all you have to do is hope you don't get slopped with a AskUserQuestion XML document.
This is kind of nuts. This limitation doesn't seem to be explicitly noted in remote control docs, but it's a HUGE limitation. Can't change model. Can't directly run skills. Can't do a bunch of other common things that one can do in the CLI.
Surprised more people aren't here talking about it. Annthropic, are you going to fix this?
/clear USED to work for me... Granted, it was a long running operation for some reason. However, it definitely used to work.
As of yesterday it's not working, this makes the remote control client fairly useless.
Broken now for me as well, was able to type /clear the other day into the app, now it's treated as a prompt
Doesn't work for me on mobile
Yehp, regression it seems, I have been using
/clearfor months in CC Android mobile app and desktop macos app, has been doing great, as of just last few days I have noticed it now seems to "claim it is clearing" and respond to my prompt, which we all know means it's clearing jack sh!t as there should be no response to a clear .. other than, you know fully killing the prior session, clearing the context buffer and awaiting the next prompt....Why you do this to us 😢
I completely agree. It's frustrating to see these kinds of bugs in a paid product.
+1, specifically for
/rewind.Over Remote Control,
/rewindreturns "isn't available over Remote Control", so checkpoint/restore is unreachable unless I'm at the local terminal. Rewinding a bad turn is one of the main reasons I'd reach into a session mid-flight — and it's exactly the recovery you need when you're away from your desk, i.e. precisely when you're on Remote Control.Please route
/rewind(and slash commands generally) through the Remote Control UI instead of treating them as chat messages.Related snapshot gaps: #76114, #74410.
+1, Fork also not available in remote-control client.