Skip to content

Commit dbbe67f

Browse files
chore: generate
1 parent fff0ec2 commit dbbe67f

5 files changed

Lines changed: 10 additions & 58 deletions

File tree

packages/opencode/src/cli/cmd/run/footer.command.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,7 @@ function PanelShell(props: {
297297
</box>
298298
)}
299299
{minimal() ? (
300-
<box
301-
width="100%"
302-
height={1}
303-
border={false}
304-
backgroundColor="transparent"
305-
flexShrink={0}
306-
>
300+
<box width="100%" height={1} border={false} backgroundColor="transparent" flexShrink={0}>
307301
<box
308302
width="100%"
309303
height={1}

packages/opencode/src/cli/cmd/run/footer.permission.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,7 @@ export function RunPermissionBody(props: {
257257
})
258258

259259
return (
260-
<box
261-
width="100%"
262-
height="100%"
263-
flexDirection="column"
264-
backgroundColor={props.theme.surface}
265-
>
260+
<box width="100%" height="100%" flexDirection="column" backgroundColor={props.theme.surface}>
266261
<box
267262
flexDirection="column"
268263
gap={1}

packages/opencode/src/cli/cmd/run/footer.subagent.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,7 @@ export function RunFooterSubagentBody(props: {
119119
})
120120

121121
return (
122-
<box
123-
width="100%"
124-
height="100%"
125-
flexDirection="column"
126-
backgroundColor={footer().surface}
127-
>
122+
<box width="100%" height="100%" flexDirection="column" backgroundColor={footer().surface}>
128123
<box paddingTop={1} paddingLeft={1} paddingRight={3} paddingBottom={1} flexDirection="column" flexGrow={1}>
129124
<Show when={tab()}>
130125
{(current) => (

packages/opencode/src/cli/cmd/run/footer.view.tsx

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -821,12 +821,7 @@ export function RunFooterView(props: RunFooterViewProps) {
821821
flexShrink={0}
822822
backgroundColor={statuslineBackground()}
823823
>
824-
<box
825-
paddingLeft={1}
826-
paddingRight={1}
827-
backgroundColor={theme().statusAccent}
828-
flexShrink={0}
829-
>
824+
<box paddingLeft={1} paddingRight={1} backgroundColor={theme().statusAccent} flexShrink={0}>
830825
<text wrapMode="none" truncate>
831826
<span style={{ fg: modeColor(), bold: true }}>{modeLabel()}</span>
832827
</text>
@@ -848,13 +843,7 @@ export function RunFooterView(props: RunFooterViewProps) {
848843
</box>
849844
</Show>
850845

851-
<text
852-
fg={statusColor()}
853-
wrapMode="none"
854-
truncate
855-
flexGrow={1}
856-
flexShrink={1}
857-
>
846+
<text fg={statusColor()} wrapMode="none" truncate flexGrow={1} flexShrink={1}>
858847
<Show when={busy() && !exiting()} fallback={statusText()}>
859848
<Show when={interruptLabel()}>
860849
{(label) => <span style={{ fg: armed() ? statusColor() : theme().muted }}>{label()} </span>}
@@ -865,11 +854,7 @@ export function RunFooterView(props: RunFooterViewProps) {
865854
</box>
866855

867856
<Show when={activityMeta().length > 0}>
868-
<box
869-
paddingRight={1}
870-
backgroundColor="transparent"
871-
flexShrink={1}
872-
>
857+
<box paddingRight={1} backgroundColor="transparent" flexShrink={1}>
873858
<text fg={theme().muted} wrapMode="none" truncate>
874859
{activityMeta()}
875860
</text>
@@ -878,11 +863,7 @@ export function RunFooterView(props: RunFooterViewProps) {
878863

879864
<Show when={responsive().statusline.showModel && modelStatus()}>
880865
{(info) => (
881-
<box
882-
paddingRight={1}
883-
backgroundColor="transparent"
884-
flexShrink={0}
885-
>
866+
<box paddingRight={1} backgroundColor="transparent" flexShrink={0}>
886867
<text fg={theme().text} wrapMode="none">
887868
{info().model}
888869
<Show when={info().provider}>
@@ -902,12 +883,7 @@ export function RunFooterView(props: RunFooterViewProps) {
902883

903884
<For each={contextHints()}>
904885
{(hint, index) => (
905-
<box
906-
paddingRight={1}
907-
backgroundColor="transparent"
908-
flexShrink={0}
909-
maxWidth={24}
910-
>
886+
<box paddingRight={1} backgroundColor="transparent" flexShrink={0} maxWidth={24}>
911887
<text fg={theme().text} wrapMode="none" truncate>
912888
<Show when={index() > 0 || ((hasActivityMeta() || hasModelStatus()) && index() === 0)}>
913889
{sectionSeparator()}
@@ -921,12 +897,7 @@ export function RunFooterView(props: RunFooterViewProps) {
921897

922898
<Show when={commandHint()}>
923899
{(hint) => (
924-
<box
925-
paddingRight={1}
926-
backgroundColor="transparent"
927-
flexShrink={0}
928-
maxWidth={18}
929-
>
900+
<box paddingRight={1} backgroundColor="transparent" flexShrink={0} maxWidth={18}>
930901
<text fg={theme().text} wrapMode="none" truncate>
931902
<Show when={hasActivityMeta() || hasModelStatus() || hasContextHints()}>
932903
{sectionSeparator()}

packages/tui/test/cli/tui/diff-viewer.test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ const startRoute: TuiRouteCurrent = { name: "session", params: { sessionID: "ses
180180

181181
function findScrollBox(root: Renderable): ScrollBoxRenderable | undefined {
182182
if (root instanceof ScrollBoxRenderable && containsDiff(root)) return root
183-
return root
184-
.getChildren()
185-
.map(findScrollBox)
186-
.find(Boolean)
183+
return root.getChildren().map(findScrollBox).find(Boolean)
187184
}
188185

189186
function containsDiff(root: Renderable): boolean {

0 commit comments

Comments
 (0)