Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

Headless (-p) stream-json write failures now flush pending queued messages before reporting the error

Headless mode no longer aborts mid-stream on a write failure, instead flushes queued messages first

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

Headless mode no longer aborts mid-stream on a write failure, instead flushes queued messages first

What

In headless mode (-p, non-interactive), when writing to the stream-json output format fails, Claude Code no longer stops immediately in the middle of the output loop. Instead, it captures the error, keeps draining any messages still queued for output, and reports the failure only after the loop finishes naturally.

Why

This ensures that queued output messages aren't silently dropped just because one write failed, and the failure is still reported, just after any remaining output has been flushed.

See this entry in the whole of v2.1.277 →