Open-source SEO, GEO, and marketing skills for AI agents.
fix(transcript): tool group status reflects final outcome, not any-error
Yuting Zhongde23c04d602e
diff --git a/src/components/live-transcript.tsx b/src/components/live-transcript.tsxindex 199a5ab5..5b57f94b 100644--- a/src/components/live-transcript.tsx+++ b/src/components/live-transcript.tsx@@ -625,7 +625,13 @@ function ToolGroup({ tools }: { tools: ToolEntry[] }) {const isLive = inFlightCount > 0;const headline =tools.find((t) => !t.done) ?? tools[tools.length - 1] ?? null;- const hasError = tools.some((t) => t.done && !t.ok);+ // Group status reflects the FINAL outcome, not "any error ever". When the+ // agent retried a failed call and the retry succeeded, the user sees+ // green — only expanding the card reveals the intermediate stumble.+ // Matches Claude.ai's pattern of grading by "did this turn ultimately+ // work" rather than punishing every recoverable hiccup.+ const lastDone = [...tools].reverse().find((t) => t.done);+ const hasError = !!(lastDone && !lastDone.ok);const HeadIcon = headline ? iconForTool(headline.name) : Wrench;const StatusIcon = isLive? Loader2