{"version":"2.1.333","anchor":"background-session-respawn-socket-dir-message-and-interrupt","canonical_anchor":"background-session-respawn-socket-dir-message-and-interrupt","heading":"Changes to how interrupted turns are resumed, including in background sessions","tier":"notice","area":"Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/background-session-respawn-socket-dir-message-and-interrupt","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Changes to how interrupted turns are resumed, including in background sessions\n\nResume now keeps turns that ended in an API error closed and honours stop markers, and background sessions decide on respawn whether to resume\n\n**Unclear.** It is not clear what `CLAUDE_CODE_RESUME_INTERRUPTED_TURN` does or whether a reader should set it.\n\n**What**\n\nA 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:\n\n- 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.\n\n- A new `stop_marker` reason means no \"continue\" message is added.\n\n- 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_continued` case is gone.\n\n- `tengu_partitioned_finch` still falls back to on. Nothing has been read about whether it is enabled.\n\n- 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.\n\n- 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.\n\n**Why**\n\nA 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.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_RESUME_PROMPT`, `CLAUDE_CODE_RESUME_INTERRUPTED_TURN`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}