Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.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

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaHeadless Modewhat it touches
KindBug Fixesin v2.1.271,
You'll notice

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

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