Browse Source

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

Aiden Cline 3 months ago
parent
commit
8bfa188e07

+ 2 - 2
packages/opencode/src/cli/cmd/tui/feature-plugins/system/session-v2.tsx

@@ -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>
   )

+ 1 - 1
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -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>
   )