ea25cf504f
Claude Code writes a content block to its session file only once the block is complete. A client that read history while a block streamed (opening the chat mid-reply, a reconnect, a resync) got only the deltas after its read, and nothing re-sent the block's beginning, so the reply showed with its first part cut off. Deltas are now numbered (seq) and their text retained for the newest assistant messages; the newest history page adds every retained part the transcript lacks and reports the last included seq (live_seq) and the overlaid parts (live_parts). History now numbers empty text/thinking blocks as the live stream does, so a thinking block after an empty display-omitted one keeps one part id live and in history. Text a content_block_start carries is published, not dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>