{"version":"2.1.40","anchor":"nested-session-detection","canonical_anchor":"nested-session-detection","heading":"Nested Session Detection","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.40\/e\/nested-session-detection","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.40","markdown":"### Nested Session Detection\n\n**What**\n\nPrevents launching Claude Code inside another Claude Code session.\n\n**Details**\n\n- Detects when running inside an existing Claude Code session\n- Displays clear error explaining the issue\n- Provides bypass instructions via `CLAUDECODE` environment variable\n\n**Evidence**\n\nNested session check (search for `\"cannot be launched inside another Claude Code session\"`)"}