{"version":"2.1.292","anchor":"remote-session-helper-checks-claude-code-environment-kind-is","canonical_anchor":"remote-session-helper-checks-claude-code-environment-kind-is","heading":"Remote session check now requires CLAUDE_CODE_ENVIRONMENT_KIND to be unset","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292\/e\/remote-session-helper-checks-claude-code-environment-kind-is","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292","markdown":"### Remote session check now requires CLAUDE_CODE_ENVIRONMENT_KIND to be unset\n\nA check for remote sessions now passes only when `CLAUDE_CODE_ENVIRONMENT_KIND` is unset and the session is not a child session\n\n**Unclear.** What this check controls is not known, so its effect on remote sessions is unclear.\n\n**What**\n\nClaude Code has a check for whether it is running remotely. It now passes only when all of these are true:\n\n- Claude Code has a remote session id or a container id\n\n- the session is not a child session started by another session\n\n- `CLAUDE_CODE_ENVIRONMENT_KIND` is not set\n\n**Why**\n\nIn practice, setting `CLAUDE_CODE_ENVIRONMENT_KIND` makes this check fail even in a remote session.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_ENVIRONMENT_KIND`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}