claude-code - 💡(How to fix) Fix Remote Control: /clear command does not work from remote device

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When using Claude Code Remote Control (via claude.ai/code), sending /clear from the remote device has no effect. The command appears to be treated as plain text rather than a CLI command, so the session context is not cleared.

Root Cause

When using Claude Code Remote Control (via claude.ai/code), sending /clear from the remote device has no effect. The command appears to be treated as plain text rather than a CLI command, so the session context is not cleared.

Fix Action

Fix / Workaround

Workarounds

RAW_BUFFERClick to expand / collapse

Summary

When using Claude Code Remote Control (via claude.ai/code), sending /clear from the remote device has no effect. The command appears to be treated as plain text rather than a CLI command, so the session context is not cleared.

Expected behavior

/clear sent from a remote-control device should clear the session context, the same as running it locally in the terminal.

Actual behavior

Nothing happens. The message is either ignored or treated as a user text message rather than a CLI command.

Steps to reproduce

  1. Enable Remote Control (/remote-control or remoteControlAtStartup: true in settings)
  2. Connect from a remote device via claude.ai/code
  3. Send /clear from the remote device
  4. Observe: session context is not cleared

Workarounds

  • Run /clear locally in the terminal
  • Start a new session from the remote device

Use case

When working from a mobile or secondary device via Remote Control, there is currently no way to reset the conversation context without switching to the local machine. Supporting /clear remotely would make Remote Control sessions more self-sufficient.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

/clear sent from a remote-control device should clear the session context, the same as running it locally in the terminal.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Remote Control: /clear command does not work from remote device