Unclear What CLAUDE_RUNNER_HOST_DISABLES_AUTO_MODE does when it is set.
What
A cloud or remote session is a Claude Code session running on a machine Anthropic or your organisation runs, rather than on your own computer. The environment variables it sets up, which are named values programs inherit when they start, have changed:
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MDnow honours an explicit "0" coming from the environment, which turns off loadingCLAUDE.mdmemory files from added directories. When it is "0", the runner logs "The server turned off CLAUDE.md from added directories".CLAUDE_CODE_REMOTE_SDK_URLis now cleared, andCLAUDE_RUNNER_HOST_DISABLES_AUTO_MODEis added.CLAUDE_CODE_MCP_SERVE_CHILDis a new marker. A child process started under a remote session can getCLAUDE_CODE_MCP_SERVE_CHILD=1instead ofCLAUDE_CODE_REMOTE=trueunless the process is a proper remote session.CLAUDE_CODE_ENVIRONMENT_KINDandCLAUDE_CODE_REMOTE_ENVIRONMENT_TYPEare copied through as well.CLAUDE_CODE_MCP_SERVE_CHILDis kept when Claude Code strips environment variables, alongsideCLAUDE_CODE_CHILD_NOTES_DIRandCLAUDE_CODE_LAUNCHED_BY_SESSION_IDS, and it is copied to background jobs that are taken over after the session that started them ended.- Inside the sandbox, the restricted area commands run in, a credential rule entry named
CLAUDE_CODE_REMOTEorCLAUDE_CODE_MCP_SERVE_CHILDis skipped when the remote-session values are present. Plugin language servers, the helper programs that give code intelligence for a language, get the same extra values when started. - Background job records over a size limit are no longer saved, with the message "session record not saved: it is over the size limit".
- Shell commands from the client now read the switch
tengu_cloud_session_shell, whose fallback in the code is off. Nothing has been read about this switch.
Why
A server running a cloud session can now turn off added-directory CLAUDE.md files, and the log says when it did, which explains missing memory files in such sessions. Programs started by a remote session can now tell from their environment what kind of process they are, and sandbox credential rules can no longer overwrite those markers.
What `CLAUDE_RUNNER_HOST_DISABLES_AUTO_MODE` does when it is set.