Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

Headless (print.ts) resume path adds an extra safety flush before reusing a stale interrupted-prompt cancel

Headless mode's resume logic adds an extra safety wait before reusing a stale cancelled prompt after a worker restart

You'll notice Bug Fixes
JSON All of v2.1.271
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
Bug FixesKind: in v2.1.271,
Bug FixesSection of the release
What

In headless (print) mode, when Claude Code resumes work after a worker restart, it now waits for an extra notification flush in one more case: when there are no orphaned background tasks, but there is a stale cancelled prompt or superseded tool calls left over, and the pending message was itself an interrupted prompt. This matches a flush that was already being done for the orphaned-background-task case.

Why

This closes a gap where a resumed session could act on stale, already-cancelled state after a restart, making resume behavior more consistent between the two cases.

See this entry in the whole of v2.1.271 →

Feedback