{"version":"2.1.211","anchor":"claude-code-resume-interrupted-turn-max-age-ms-environment-v","canonical_anchor":"claude-code-resume-interrupted-turn-max-age-ms-environment-v","heading":"CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS Environment Variable","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.211\/e\/claude-code-resume-interrupted-turn-max-age-ms-environment-v","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.211","markdown":"### CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS Environment Variable\n\n**What**\n\nA new environment variable, `CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS`, controls how old an interrupted assistant turn can be before it is no longer automatically resumed on session restart. This prevents stale interrupted turns from being replayed after a long pause.\n\n**Details**\n\n- If `CLAUDE_CODE_RESUME_INTERRUPTED_TURN` is set and the interrupted turn's timestamp is older than this value, the resume is skipped.\n- Defaults to 3,600,000 ms (1 hour) when the variable is present but not set to a valid finite positive number; set to `0` to disable age-gating entirely.\n- The variable is passed through to child processes alongside the existing `CLAUDE_CODE_RESUME_INTERRUPTED_TURN`.\n\n**Evidence**\n\nNew env var with fallback (search for `\"CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS\"`)"}