diff --git a/packages/coding-agent/src/tui/tui-renderer.ts b/packages/coding-agent/src/tui/tui-renderer.ts index 99d2427f..a0a008c1 100644 --- a/packages/coding-agent/src/tui/tui-renderer.ts +++ b/packages/coding-agent/src/tui/tui-renderer.ts @@ -215,6 +215,9 @@ export class TuiRenderer { if (this.streamingComponent && event.message.role === "assistant") { const assistantMsg = event.message as AssistantMessage; + // Update streaming component with final message (includes stopReason) + this.streamingComponent.updateContent(assistantMsg); + // If message was aborted or errored, mark all pending tool components as failed if (assistantMsg.stopReason === "aborted" || assistantMsg.stopReason === "error") { const errorMessage =