Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): show final text in TaskStream after task completion

Gus3b6c9b098d59
diff --git a/src/web/src/components/task-stream.tsx b/src/web/src/components/task-stream.tsx
index ae15a80fb..d6cc28e49 100644
--- a/src/web/src/components/task-stream.tsx
+++ b/src/web/src/components/task-stream.tsx
@@ -408,12 +408,17 @@ export function TaskStream({
</details>
)}
- {/* Text output zone — only while running; once completed, msg.content in the bubble handles display */}
+ {/* Text output zone — all text while running; only final text after completion */}
{isRunning && textItems.length > 0 && (
<div className="markdown max-w-full min-w-0 px-1 py-1 text-base text-foreground">
<Streamdown controls={{ code: { copy: true, download: false }, table: { copy: true, download: false, fullscreen: true } }} linkSafety={{ enabled: false }}>{textItems.map((item) => item.content).join("\n\n")}</Streamdown>
</div>
)}
+ {!isRunning && finalTextItem && (
+ <div className="markdown max-w-full min-w-0 px-1 py-1 text-base text-foreground">
+ <Streamdown controls={{ code: { copy: true, download: false }, table: { copy: true, download: false, fullscreen: true } }} linkSafety={{ enabled: false }}>{finalTextItem.content}</Streamdown>
+ </div>
+ )}
{/* Error display */}
{task.status === "failed" && task.error && (