Commit bd7ec1e
fix: TextFlush event — LLM response text now actually renders in TUI
Root cause: agent loop emitted TextDelta events but no TextFlush before
Cost/TurnComplete. TUI accumulated text in streaming buffer but never
moved it to chat history before the cost line appeared.
Added AgentEvent::TextFlush variant, emitted after all deltas, before
cost/turn-complete. Verified: backend now outputs text.delta → text.flush
→ cost → turn.complete in correct order.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f5efac8 commit bd7ec1e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| 486 | + | |
| 487 | + | |
486 | 488 | | |
487 | 489 | | |
| 490 | + | |
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
| 494 | + | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| |||
0 commit comments