Pārlūkot izejas kodu

chore: generate

opencode-agent[bot] 3 mēneši atpakaļ
vecāks
revīzija
7c121d48b9

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

@@ -410,13 +410,7 @@ function AssistantReasoning(props: {
     <Show when={content()}>
       <Switch>
         <Match when={!inMinimal() || expanded()}>
-          <box
-            paddingLeft={3}
-            marginTop={1}
-            flexDirection="column"
-            flexShrink={0}
-            onMouseUp={toggle}
-          >
+          <box paddingLeft={3} marginTop={1} flexDirection="column" flexShrink={0} onMouseUp={toggle}>
             <code
               filetype="markdown"
               drawUnstyledText={false}
@@ -429,12 +423,7 @@ function AssistantReasoning(props: {
           </box>
         </Match>
         <Match when={isDone()}>
-          <box
-            paddingLeft={3}
-            marginTop={1}
-            flexShrink={0}
-            onMouseUp={toggle}
-          >
+          <box paddingLeft={3} marginTop={1} flexShrink={0} onMouseUp={toggle}>
             <CollapsedReasoningText title={title()} />
           </box>
         </Match>
@@ -453,7 +442,9 @@ 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"}</span>
+      <span style={{ fg: theme.warning, italic: true }}>
+        {props.title ? "+ Thought · " + props.title : "+ Thought"}
+      </span>
     </text>
   )
 }

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

@@ -1531,13 +1531,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
       <Switch>
         <Match when={!inMinimal() || expanded()}>
           {/* Full markdown block: `show` mode, or `hide` after the user opens it. */}
-          <box
-            id={"text-" + props.part.id}
-            paddingLeft={3}
-            marginTop={1}
-            flexDirection="column"
-            onMouseUp={toggle}
-          >
+          <box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexDirection="column" onMouseUp={toggle}>
             <code
               filetype="markdown"
               drawUnstyledText={false}
@@ -1550,13 +1544,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
           </box>
         </Match>
         <Match when={isDone()}>
-          <box
-            id={"text-" + props.part.id}
-            paddingLeft={3}
-            marginTop={1}
-            flexShrink={0}
-            onMouseUp={toggle}
-          >
+          <box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0} onMouseUp={toggle}>
             <CollapsedReasoningText title={title()} duration={duration()} />
           </box>
         </Match>