fix(tui): conditionally render bash tool output (#11558)
This commit is contained in:
@@ -1636,7 +1636,9 @@ function Bash(props: ToolProps<typeof BashTool>) {
|
|||||||
>
|
>
|
||||||
<box gap={1}>
|
<box gap={1}>
|
||||||
<text fg={theme.text}>$ {props.input.command}</text>
|
<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()}>
|
<Show when={overflow()}>
|
||||||
<text fg={theme.textMuted}>{expanded() ? "Click to collapse" : "Click to expand"}</text>
|
<text fg={theme.textMuted}>{expanded() ? "Click to collapse" : "Click to expand"}</text>
|
||||||
</Show>
|
</Show>
|
||||||
|
|||||||
Reference in New Issue
Block a user