fix(tui): use colon for collapsed thinking labels (#28562)
This commit is contained in:
@@ -416,7 +416,7 @@ function AssistantReasoning(props: {
|
|||||||
drawUnstyledText={false}
|
drawUnstyledText={false}
|
||||||
streaming={true}
|
streaming={true}
|
||||||
syntaxStyle={props.subtleSyntax}
|
syntaxStyle={props.subtleSyntax}
|
||||||
content={(inMinimal() ? "- " : "") + "_Thinking:_ " + content()}
|
content={(inMinimal() ? "- " : "") + (isDone() ? "_Thought:_ " : "_Thinking:_ ") + content()}
|
||||||
conceal={true}
|
conceal={true}
|
||||||
fg={theme.textMuted}
|
fg={theme.textMuted}
|
||||||
/>
|
/>
|
||||||
@@ -443,7 +443,7 @@ function CollapsedReasoningText(props: { title: string | null }) {
|
|||||||
return (
|
return (
|
||||||
<text fg={theme.warning} wrapMode="none">
|
<text fg={theme.warning} wrapMode="none">
|
||||||
<span style={{ fg: theme.warning, italic: true }}>
|
<span style={{ fg: theme.warning, italic: true }}>
|
||||||
{props.title ? "+ Thought · " + props.title : "+ Thought"}
|
{props.title ? "+ Thought: " + props.title : "+ Thought"}
|
||||||
</span>
|
</span>
|
||||||
</text>
|
</text>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1565,7 +1565,7 @@ function CollapsedReasoningText(props: { title: string | null; duration: number
|
|||||||
return (
|
return (
|
||||||
<text fg={theme.warning} wrapMode="none">
|
<text fg={theme.warning} wrapMode="none">
|
||||||
<span style={{ fg: theme.warning, italic: true }}>
|
<span style={{ fg: theme.warning, italic: true }}>
|
||||||
{props.title ? "+ Thought · " + props.title + " · " + duration() : "+ Thought · " + duration()}
|
{props.title ? "+ Thought: " + props.title + " · " + duration() : "+ Thought: " + duration()}
|
||||||
</span>
|
</span>
|
||||||
</text>
|
</text>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user