What
Claude Code can now tell when it's running as a remote-control session, reached for example through the Claude app, and changes its behavior for that case.
- A new helper checks whether the process is a remote-control session by requiring
CLAUDE_CODE_REMOTEto be truthy andCLAUDE_CODE_ENTRYPOINTto be one ofremote,remote_desktop,remote_mobile, orremote_trigger. - When a session is a cloud session reached via the Claude app (detected via
CLAUDE_CODE_REMOTEplus aremote*entrypoint), the system prompt now tells Claude that the user can only open files inside the primary working directory or the scratchpad/memory directories, and instructs it not to present other file paths as something the user can open.
Why
In a cloud/remote session viewed through the Claude app, the user can't browse the full filesystem the way they could locally, so this keeps Claude from suggesting files or paths the user has no way to actually open.