diff options
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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 8a38d9e6f..5aba1a56a 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1625,6 +1625,7 @@ function BlockTool(props: { function Bash(props: ToolProps<typeof BashTool>) { const { theme } = useTheme() const sync = useSync() + const isRunning = createMemo(() => props.part.state.status === "running") const output = createMemo(() => stripAnsi(props.metadata.output?.trim() ?? "")) const [expanded, setExpanded] = createSignal(false) const lines = createMemo(() => output().split("\n")) @@ -1665,6 +1666,7 @@ function Bash(props: ToolProps<typeof BashTool>) { <BlockTool title={title()} part={props.part} + spinner={isRunning()} onClick={overflow() ? () => setExpanded((prev) => !prev) : undefined} > <box gap={1}> |
