mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-07 00:51:34 +00:00
fix(tui): conditionally render bash tool output (#11558)
This commit is contained in:
parent
9e45313b0a
commit
2a56a1d6ef
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue