Group of 3 Use it now Notable
Claude Code now explains why an interrupted turn is being automatically resumed, and links it to the original turn
What
- Streaming partial-message frames can now carry a
resume_reasonfield explaining why the current turn is an automatic re-run of one interrupted by a worker restart:host_draining,checkpoint_restore,container_recreated, or a fallbackinterrupted_turn. This ties to theCLAUDE_CODE_RESUME_INTERRUPTED_TURN/CLAUDE_CODE_RESUME_REASONmechanism. - The SDK/headless turn-result schema gains the same optional
resume_reasonstring, plus an optionalresult_indexinteger, in both the streamed and final result message shapes. - When Claude Code auto-resumes an interrupted turn at session restart, the reconstructed prompt now includes a
resumeReasonand, when available, aresumedTurnUserMessageUuidpointing back to the original interrupted turn's user message.
Why This makes it clear, both in the UI/streaming output and in SDK results, why a turn was automatically re-run after an interruption (such as the worker host draining or a container being recreated), and links the resumed turn back to the original one it replaced.
Names in the bundleresume_reasonCLAUDE_CODE_RESUME_INTERRUPTED_TURNCLAUDE_CODE_RESUME_REASON
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, on Claude Code changelog.
* 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 `CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS` when setchangelog 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, on Claude Code changelog.
The name it cites is new in this build
New in this build: CLAUDE_CODE_RESUME_REASON