diff options
| author | Goni Zahavy <[email protected]> | 2026-02-05 20:23:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-05 12:23:02 -0600 |
| commit | 40ebc34909fdb45a0cce5f73725f52ae5dcf8509 (patch) | |
| tree | a2a6ed8c4b08d0c4ff661b60305b50b0dd4424ef | |
| parent | e08705f4ef128f20912925de9d08c41515a9709b (diff) | |
| download | opencode-40ebc34909fdb45a0cce5f73725f52ae5dcf8509.tar.gz opencode-40ebc34909fdb45a0cce5f73725f52ae5dcf8509.zip | |
feat(tui): add running spinner to bash tool in TUI (#12317)
| -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}> |
