Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix: deduplicate threads on load-more and prevent chat message doubling
Gus4d7c1b726e5b
diff --git a/src/web/src/app/(app)/w/[slug]/threads/page.tsx b/src/web/src/app/(app)/w/[slug]/threads/page.tsxindex 3fcfb91b1..f45ed42a7 100644--- a/src/web/src/app/(app)/w/[slug]/threads/page.tsx+++ b/src/web/src/app/(app)/w/[slug]/threads/page.tsx@@ -228,7 +228,11 @@ export default function TracesPage() {setHasMore(result.has_more);setTraces((prev) => {const existingIds = new Set(prev.map((t) => t.trace_id));- const unique = result.traces.filter((t) => !existingIds.has(t.trace_id));+ const unique = result.traces.filter((t) => {+ if (existingIds.has(t.trace_id)) return false;+ existingIds.add(t.trace_id);+ return true;+ });return [...prev, ...unique];});} finally {diff --git a/src/web/src/components/task-stream.tsx b/src/web/src/components/task-stream.tsxindex d6cc28e49..f30d974e5 100644--- a/src/web/src/components/task-stream.tsx+++ b/src/web/src/components/task-stream.tsx@@ -414,7 +414,7 @@ export function TaskStream({<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 && (+ {!isRunning && finalTextItem && !onExpandSteps && (<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>