fix(tui): use colon for collapsed thinking labels (#28562)

This commit is contained in:
Aiden Cline 2026-05-20 20:52:28 -05:00 committed by GitHub
parent 5079fed63a
commit 8bfa188e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -416,7 +416,7 @@ function AssistantReasoning(props: {
drawUnstyledText={false}
streaming={true}
syntaxStyle={props.subtleSyntax}
content={(inMinimal() ? "- " : "") + "_Thinking:_ " + content()}
content={(inMinimal() ? "- " : "") + (isDone() ? "_Thought:_ " : "_Thinking:_ ") + content()}
conceal={true}
fg={theme.textMuted}
/>
@ -443,7 +443,7 @@ function CollapsedReasoningText(props: { title: string | null }) {
return (
<text fg={theme.warning} wrapMode="none">
<span style={{ fg: theme.warning, italic: true }}>
{props.title ? "+ Thought · " + props.title : "+ Thought"}
{props.title ? "+ Thought: " + props.title : "+ Thought"}
</span>
</text>
)

View file

@ -1565,7 +1565,7 @@ function CollapsedReasoningText(props: { title: string | null; duration: number
return (
<text fg={theme.warning} wrapMode="none">
<span style={{ fg: theme.warning, italic: true }}>
{props.title ? "+ Thought · " + props.title + " · " + duration() : "+ Thought · " + duration()}
{props.title ? "+ Thought: " + props.title + " · " + duration() : "+ Thought: " + duration()}
</span>
</text>
)