d7ad468b78
Claude Code emits one assistant event per content block, so a text block that streamed at index 1 after a redacted (empty) thinking block arrives alone at index 0 of its event. The translator aligned completed blocks by that local index and cleared stream state after every event, found no streamed text, and re-emitted the whole paragraph as a new text part. Claim the streamed block of the same kind whose text prefixes the completed one, and keep stream state for the whole message (reset on message_start or a new message id).