/cd doesn't work in Remote Control sessions

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 30, 2026

\/cd <path>\ is a supported CLI command for switching a session's working directory to a different project, but it doesn't work under Remote Control (\--remote-control\ / \/rc\) sessions. In an \/rc\ session, the shell's working directory silently resets back to the original project root after every tool call, even when a \cd\ succeeds within a single Bash invocation — there's no way to retarget the session to a different project directory.

Repro:

  1. Start a Remote Control session anchored to project A.
  2. Run \/cd <path to project B>\ (or \cd\ via Bash).
  3. Next tool call shows the working directory has reverted to project A.

Request: Make \/cd\ work the same way under Remote Control as it does in a regular local session — including re-evaluating project-scoped settings (\.claude/settings.json\, hooks) for the new directory.

View original on GitHub ↗