Skip to content

Commit 83ef734

Browse files
committed
minor fixes 2
1 parent 8684f47 commit 83ef734

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ function Bash(props: ToolProps) {
786786
onClick={overflow() ? () => setExpanded((prev) => !prev) : undefined}
787787
>
788788
<box gap={0}>
789-
<text fg={theme.text}>$ {command()}</text>
789+
<text fg={theme.text} wrapMode="char" width="100%">
790+
$ {command()}
791+
</text>
790792
<Show when={output()}>
791793
<text fg={theme.text}>{limited()}</text>
792794
</Show>

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3262,7 +3262,9 @@ function Shell(props: ToolProps<typeof ShellTool>) {
32623262
<Match when={isRunning()}>
32633263
<BlockTool title={title()} part={props.part} spinner={true} spinnerInterval={180}>
32643264
<box gap={0}>
3265-
<text fg={theme.text}>$ {clip(props.input.command ?? "")}</text>
3265+
<text fg={theme.text} wrapMode="char" width="100%">
3266+
$ {props.input.command ?? ""}
3267+
</text>
32663268
<code
32673269
conceal={false}
32683270
fg={output() ? theme.text : theme.textMuted}
@@ -3284,7 +3286,9 @@ function Shell(props: ToolProps<typeof ShellTool>) {
32843286
onClick={overflow() ? () => setExpanded((prev) => !prev) : undefined}
32853287
>
32863288
<box gap={0}>
3287-
<text fg={theme.text}>$ {props.input.command}</text>
3289+
<text fg={theme.text} wrapMode="char" width="100%">
3290+
$ {props.input.command}
3291+
</text>
32883292
<Show when={output()}>
32893293
<text fg={theme.text}>{limited()}</text>
32903294
</Show>

0 commit comments

Comments
 (0)