# fix\(server\): Claude answers stream as they are written · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/096782c3e19f3a58997c0f209b01e29d1b476f47)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 096782c3e19f3a58997c0f209b01e29d1b476f47

Requested commit: 096782c3e19f3a58997c0f209b01e29d1b476f47

Commit: 096782c3e19f3a58997c0f209b01e29d1b476f47

Tree: de4d7709863bf6f1c8d41c98ed75a1cac0905284

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(server): Claude answers stream as they are written

Claude text_delta stream events were dropped, so assistant text appeared
only when the completed snapshot arrived. Stream text blocks through the
existing text-delta coalescer under `${message.id}:text:${n}`, mirroring
thinking blocks, and let the snapshot complete that same item instead of
emitting a second uuid-keyed message. Turn finalization flushes partial
text on cancellation, and unstreamed snapshot blocks keep the old path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [e22e3b731074014c2d65d7d661667152345c484e](https://git.cafe/pingdotgg/t3code/commit/e22e3b731074014c2d65d7d661667152345c484e?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/096782c3e19f3a58997c0f209b01e29d1b476f47?format=markdown)
