Group of 2 Use it now Notable
How long an interrupted turn can be before Claude Code won't auto-resume it is now configurable, and the check now also covers trailing API-error turns
What
- The age cutoff that decides whether an interrupted turn is too old to auto-resume can now be set via the
CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MSenvironment variable or a new numeric flag, clamped between 60,000ms and 2,592,000,000ms (30 days). If neither is set, it defaults to 21,600,000ms (6 hours). - The same suppression logic now also applies to a trailing skipped turn that ended in an API error, not just an interrupted turn, checking its timestamp against the same age bound.
- When resume is suppressed, Claude Code now logs more detail: the error kind, the age in minutes, where the bound came from, and the bound itself in minutes.
Why This lets users and admins tune how long a stale, interrupted (or errored) turn is still eligible to resume automatically, and gives better diagnostics when a resume gets skipped.
Names in the bundleCLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS, on Environment variables.
| `CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS` | Maximum age in milliseconds of the last transcript message for a session that ended mid-turn to continue automatically on resume. When the last message is older than this bound, Claude C…env-vars see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS, on Environment variables.
Anthropic's release notes agree
Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that had failed with an API error over 6 hours earlier, or longer ago than…
The name it cites is new in this build
New in this build: tengu_shimmering_cherny