fix(tui): mark failed groups with a plain ✗ (#51175)

This commit is contained in:
James Long
2026-09-24 13:52:14 -04:00
committed by GitHub
Unverified
parent c832432d89
commit 14aaf91e65
@@ -127,6 +127,7 @@ function GroupContent(props: GroupProps) {
)
return `${completed() ? "Explored" : "Exploring"}: ${names.join(", ")}`
})
const failed = () => tools().some((part) => part.state.status === "error")
const toggle = disclosure.toggle
const children = (mode: "normal" | "thought" | "tool") => (
<Children {...props} nodes={props.node.children} mode={mode} />
@@ -143,7 +144,7 @@ function GroupContent(props: GroupProps) {
<Show when={grouped()} fallback={children("normal")}>
<Show when={tools().length > 0}>
<InlineToolRow
icon={completed() ? "→" : "✱"}
icon={failed() ? "✗" : completed() ? "→" : "✱"}
color={hover() ? theme.text.base : theme.text.muted}
complete={completed()}
pending={label()}
@@ -211,7 +212,6 @@ function ActivityGroup(props: GroupProps) {
<Show when={summary().label}>
<InlineToolRow
icon={summary().failed ? "✗" : disclosure.expanded() ? "−" : "+"}
iconColor={summary().failed ? theme.text.feedback.error.base : undefined}
color={hover() ? theme.text.base : theme.text.muted}
complete={true}
pending={summary().label}