Commit f5efac8
fix: add TextFlush event so LLM response text renders before cost line
Agent loop collected streaming deltas but never flushed them before
emitting Cost/TurnComplete. TUI showed cost but no response text.
Added AgentEvent::TextFlush emitted after all deltas, before turn end.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f4f3d28 commit f5efac8
3 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
439 | 444 | | |
440 | 445 | | |
441 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3774 | 3774 | | |
3775 | 3775 | | |
3776 | 3776 | | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
3777 | 3780 | | |
3778 | 3781 | | |
3779 | 3782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments