fix(tui): restore thinking spinner (#29765)

This commit is contained in:
Aiden Cline
2026-05-28 11:24:45 -05:00
committed by GitHub
parent 425a4f584f
commit af30b315b2
2 changed files with 46 additions and 28 deletions
@@ -442,16 +442,25 @@ function ReasoningHeader(props: { toggleable: boolean; open: boolean; done: bool
: theme.warning : theme.warning
return ( return (
<Switch>
<Match when={!props.done}>
<box flexDirection="row">
<Spinner color={fg()}>{props.title ? "Thinking: " + props.title : "Thinking"}</Spinner>
</box>
</Match>
<Match when={true}>
<text fg={fg()} wrapMode="none"> <text fg={fg()} wrapMode="none">
<Show when={props.toggleable}> <Show when={props.toggleable}>
<span>{props.open ? "- " : "+ "}</span> <span>{props.open ? "- " : "+ "}</span>
</Show> </Show>
<span>{props.done ? "Thought" : "Thinking"}</span> <span>Thought</span>
<Show when={props.title}> <Show when={props.title}>
<span>: </span> <span>: </span>
<span>{props.title}</span> <span>{props.title}</span>
</Show> </Show>
</text> </text>
</Match>
</Switch>
) )
} }
@@ -1595,11 +1595,18 @@ function ReasoningHeader(props: {
: theme.warning : theme.warning
return ( return (
<Switch>
<Match when={!props.done}>
<box flexDirection="row">
<Spinner color={fg()}>{props.title ? "Thinking: " + props.title : "Thinking"}</Spinner>
</box>
</Match>
<Match when={true}>
<text fg={fg()} wrapMode="none"> <text fg={fg()} wrapMode="none">
<Show when={props.toggleable}> <Show when={props.toggleable}>
<span>{props.open ? "- " : "+ "}</span> <span>{props.open ? "- " : "+ "}</span>
</Show> </Show>
<span>{props.done ? "Thought" : "Thinking"}</span> <span>Thought</span>
<Show when={props.title || props.duration}> <Show when={props.title || props.duration}>
<span>: </span> <span>: </span>
</Show> </Show>
@@ -1613,6 +1620,8 @@ function ReasoningHeader(props: {
</span> </span>
</Show> </Show>
</text> </text>
</Match>
</Switch>
) )
} }