Skip to content

Commit 7c121d4

Browse files
chore: generate
1 parent f5a8202 commit 7c121d4

2 files changed

Lines changed: 7 additions & 28 deletions

File tree

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,7 @@ function AssistantReasoning(props: {
410410
<Show when={content()}>
411411
<Switch>
412412
<Match when={!inMinimal() || expanded()}>
413-
<box
414-
paddingLeft={3}
415-
marginTop={1}
416-
flexDirection="column"
417-
flexShrink={0}
418-
onMouseUp={toggle}
419-
>
413+
<box paddingLeft={3} marginTop={1} flexDirection="column" flexShrink={0} onMouseUp={toggle}>
420414
<code
421415
filetype="markdown"
422416
drawUnstyledText={false}
@@ -429,12 +423,7 @@ function AssistantReasoning(props: {
429423
</box>
430424
</Match>
431425
<Match when={isDone()}>
432-
<box
433-
paddingLeft={3}
434-
marginTop={1}
435-
flexShrink={0}
436-
onMouseUp={toggle}
437-
>
426+
<box paddingLeft={3} marginTop={1} flexShrink={0} onMouseUp={toggle}>
438427
<CollapsedReasoningText title={title()} />
439428
</box>
440429
</Match>
@@ -453,7 +442,9 @@ function CollapsedReasoningText(props: { title: string | null }) {
453442

454443
return (
455444
<text fg={theme.warning} wrapMode="none">
456-
<span style={{ fg: theme.warning, italic: true }}>{props.title ? "+ Thought · " + props.title : "+ Thought"}</span>
445+
<span style={{ fg: theme.warning, italic: true }}>
446+
{props.title ? "+ Thought · " + props.title : "+ Thought"}
447+
</span>
457448
</text>
458449
)
459450
}

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,13 +1531,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
15311531
<Switch>
15321532
<Match when={!inMinimal() || expanded()}>
15331533
{/* Full markdown block: `show` mode, or `hide` after the user opens it. */}
1534-
<box
1535-
id={"text-" + props.part.id}
1536-
paddingLeft={3}
1537-
marginTop={1}
1538-
flexDirection="column"
1539-
onMouseUp={toggle}
1540-
>
1534+
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexDirection="column" onMouseUp={toggle}>
15411535
<code
15421536
filetype="markdown"
15431537
drawUnstyledText={false}
@@ -1550,13 +1544,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
15501544
</box>
15511545
</Match>
15521546
<Match when={isDone()}>
1553-
<box
1554-
id={"text-" + props.part.id}
1555-
paddingLeft={3}
1556-
marginTop={1}
1557-
flexShrink={0}
1558-
onMouseUp={toggle}
1559-
>
1547+
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0} onMouseUp={toggle}>
15601548
<CollapsedReasoningText title={title()} duration={duration()} />
15611549
</box>
15621550
</Match>

0 commit comments

Comments
 (0)