{"name":"CLAUDE_CODE_DISABLE_NESTED_SESSION_ID","slug":"claude-code-disable-nested-session-id","family":"env","title":"Environment variables","noun":"environment variable","description":"A Claude Code started from inside another no longer takes the parent's session id, and `CLAUDE_CODE_DISABLE_NESTED_SESSION_ID` brings it back","description_source":"entry","described_by":{"version":"2.1.317","anchor":"nested-session-id-opt-out-env-var-added"},"presence":{"first_seen":"2.1.317","removed_in":null,"in_current_build":true,"newest_mined":"2.1.318","builds":2,"mined_builds":158,"first_cited":{"version":"2.1.317","released_at":"2026-11-02 23:57:53","spans":1}},"aliases":[],"entries":[{"version":"2.1.317","anchor":"nested-session-id-opt-out-env-var-added","heading":"Nested Claude Code sessions stop inheriting the parent's session id","line":"A Claude Code started from inside another no longer takes the parent's session id, and `CLAUDE_CODE_DISABLE_NESTED_SESSION_ID` brings it back","released_at":"2026-11-02 23:57:53","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLE","slug":"claude-code-disable-nested-chain-idle","description":"When true, a permission prompt raised on behalf of a nested agent is no longer counted as a blocked chain, so it does not count toward the session's `waitingOnUser` signal (which needs the state `requires_action` with no main-loop reference left unblocked)."},{"name":"CLAUDE_CODE_DISABLE_NESTED_USER_REPAIR","slug":"claude-code-disable-nested-user-repair","description":"Odd or damaged input frames on remote connections are now fixed up or quietly dropped instead of erroring out."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-disable-nested-session-id","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}