{"version":"2.1.333","anchor":"cloud-runner-env-changes","canonical_anchor":"cloud-session-shell-and-mcp-serve-child-env-marker","heading":"Cloud sessions get a new child-process marker and can have added-directory CLAUDE.md turned off","tier":"use","area":"Cloud Sessions","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/cloud-runner-env-changes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Cloud sessions get a new child-process marker and can have added-directory CLAUDE.md turned off\n\nCloud sessions add a CLAUDE_CODE_MCP_SERVE_CHILD marker for child processes and honour CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=0 from the server\n\n**Unclear.** What `CLAUDE_RUNNER_HOST_DISABLES_AUTO_MODE` does when it is set.\n\n**What**\n\nA 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:\n\n- `CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD` now honours an explicit \"0\" coming from the environment, which turns off loading `CLAUDE.md` memory files from added directories. When it is \"0\", the runner logs \"The server turned off CLAUDE.md from added directories\".\n\n- `CLAUDE_CODE_REMOTE_SDK_URL` is now cleared, and `CLAUDE_RUNNER_HOST_DISABLES_AUTO_MODE` is added.\n\n- `CLAUDE_CODE_MCP_SERVE_CHILD` is a new marker. A child process started under a remote session can get `CLAUDE_CODE_MCP_SERVE_CHILD=1` instead of `CLAUDE_CODE_REMOTE=true` unless the process is a proper remote session. `CLAUDE_CODE_ENVIRONMENT_KIND` and `CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE` are copied through as well.\n\n- `CLAUDE_CODE_MCP_SERVE_CHILD` is kept when Claude Code strips environment variables, alongside `CLAUDE_CODE_CHILD_NOTES_DIR` and `CLAUDE_CODE_LAUNCHED_BY_SESSION_IDS`, and it is copied to background jobs that are taken over after the session that started them ended.\n\n- Inside the sandbox, the restricted area commands run in, a credential rule entry named `CLAUDE_CODE_REMOTE` or `CLAUDE_CODE_MCP_SERVE_CHILD` is 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.\n\n- Background job records over a size limit are no longer saved, with the message \"session record not saved: it is over the size limit\".\n\n- 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.\n\n**Why**\n\nA 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.\n\n- Area: Cloud Sessions\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: both\n- Heads-up: yes"}