From 8d232d35ebad37d2aad9cbd0ba227ad219703d4b Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 3 Mar 2026 13:59:45 -0500 Subject: [PATCH] tui: fix task display nesting so running status only shows when toolcalls exist --- .../src/cli/cmd/tui/routes/session/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 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 ddbe1d2a70..35a3c50fc4 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1982,12 +1982,16 @@ function Task(props: ToolProps) { part={props.part} > Task {props.input.description} - 0}> · {tools().length} toolcalls - - {"\n└"} {Locale.titlecase(current()!.tool)} {(current()!.state as any).title} + 0}> + {" "} + · {tools().length} toolcalls + + {"\n└"} {Locale.titlecase(current()!.tool)} {(current()!.state as any).title} + - {"\n└ "} {tools().length} toolcalls · {Locale.duration(duration())} + {"\n└ "} + {tools().length} toolcalls · {Locale.duration(duration())} )