Unclear It is not clear what CLAUDE_CODE_RESUME_INTERRUPTED_TURN does or whether a reader should set it.
What
A turn is one round of Claude responding to you. When a session is reopened after a turn was cut short, Claude Code decides whether to tell Claude to carry on. That decision changed in several places:
- Turns that ended in an API error can now stay ended rather than being continued (
resume_failed_turn_stays_ended). This case sits behind a flag whose name is not visible. - A new
stop_markerreason means no "continue" message is added. - An open turn with no message is now always left alone. Before, this was behind a flag that defaulted to off. The old
resume_no_message_continuedcase is gone. tengu_partitioned_finchstill falls back to on. Nothing has been read about whether it is enabled.- Background sessions: when a background session is restarted, it now decides whether to resume an interrupted turn and sets
CLAUDE_CODE_RESUME_PROMPT, the message sent to continue. - The error for an unusable background worker socket folder now reads "worker socket directory unusable" instead of "worker socket directory is not owned by this user". A socket is the channel the background process communicates through.
Why
A resumed session is now less likely to carry on automatically after a turn failed with an API error or was deliberately stopped. Background sessions now make the same kind of resume decision when they restart.
Names in the bundleCLAUDE_CODE_RESUME_PROMPTCLAUDE_CODE_RESUME_INTERRUPTED_TURN
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what `CLAUDE_CODE_RESUME_INTERRUPTED_TURN` does or whether a reader should set it.
Anthropic's release notes agree
Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN sending Claude a request that nobody asked for in a session with no stored prompt or reply