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.277 ·

Empty assistant text blocks now sanitized in replayed transcripts

Empty assistant text blocks are now cleaned up when replaying or compacting conversation history

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

Empty assistant text blocks are now cleaned up when replaying or compacting conversation history

What

Claude Code now detects assistant messages that contain empty text blocks (a text content block whose text is an empty string) when replaying or compacting conversation history. It either drops these empty blocks, or, if one sits sandwiched between two tool-use blocks, replaces it with a placeholder marker showing [Empty text removed].

Why

Empty text blocks can fail Anthropic's API validation when a transcript is replayed or compacted, so removing or replacing them keeps history processing from breaking on messages that happen to contain one.

See this entry in the whole of v2.1.277 →

Feedback