fix(web): use circle alert for failed tool calls (#8840)

Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
mariaandmaria-rcks authored and GitHub committed 2026-08-30 20:39:51 -04:00
1 parent 17c48f7fc1
commit 8b817cbcaa
2 files changed
+4 -4

No files matched your search

@@ -1473,7 +1473,7 @@ describe("MessagesTimeline", () => {
/>,
);
expect(markup).toContain("lucide-x");
expect(markup).toContain("lucide-circle-alert");
expect(markup).toContain('aria-label="Tool call failed"');
// Ordinary tool failures render muted, not red.
expect(markup).not.toContain("text-destructive");
@@ -1511,7 +1511,7 @@ describe("MessagesTimeline", () => {
/>,
);
expect(markup).toContain("lucide-x");
expect(markup).toContain("lucide-circle-alert");
expect(markup).toContain("text-destructive");
});
});
@@ -1579,7 +1579,7 @@ function LiveActivityContent({
announceFailure?: boolean;
highlighted?: boolean;
}) {
const resolvedIconName = failed ? "x" : iconName;
const resolvedIconName = failed ? "circle-alert" : iconName;
return (
<div
@@ -2554,7 +2554,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
const showWarningIndicator = workEntry.sourceActivityKind === "runtime.warning";
const showFailedIndicator = workEntryDisplayIndicatesToolFailure(workEntry);
const entryIconName =
showWarningIndicator || showFailedIndicator ? "x" : workEntryIconName(workEntry);
showWarningIndicator || showFailedIndicator ? "circle-alert" : workEntryIconName(workEntry);
const displayText = workEntryPreview(workEntry, workspaceRoot) ?? toolWorkEntryHeading(workEntry);
const expandedBody = buildToolCallExpandedBody(workEntry, workspaceRoot);
const canExpand = expandedBody !== null;