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.