Skip to content

The open source coding agent.

TypeScript

fix(tui): conditionally render bash tool output (#11558)

Dax2a56a1d6ef1b
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
index d36a7d20994..49bb40298af 100644
--- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
@@ -1636,7 +1636,9 @@ function Bash(props: ToolProps<typeof BashTool>) {
>
<box gap={1}>
<text fg={theme.text}>$ {props.input.command}</text>
- <text fg={theme.text}>{limited()}</text>
+ <Show when={output()}>
+ <text fg={theme.text}>{limited()}</text>
+ </Show>
<Show when={overflow()}>
<text fg={theme.textMuted}>{expanded() ? "Click to collapse" : "Click to expand"}</text>
</Show>