diff options
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 14 |
1 files changed, 9 insertions, 5 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 628235afd..185c0a5c3 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1503,11 +1503,15 @@ ToolRegistry.register<typeof TaskTool>({ <Show when={props.metadata.summary?.length}> <box> <For each={props.metadata.summary ?? []}> - {(task) => ( - <text style={{ fg: task.state.status === "error" ? theme.error : theme.textMuted }}> - ∟ {Locale.titlecase(task.tool)} {task.state.status === "completed" ? task.state.title : ""} - </text> - )} + {(task, index) => { + const summary = props.metadata.summary ?? [] + return ( + <text style={{ fg: task.state.status === "error" ? theme.error : theme.textMuted }}> + {index() === summary.length - 1 ? "└" : "├"} {Locale.titlecase(task.tool)}{" "} + {task.state.status === "completed" ? task.state.title : ""} + </text> + ) + }} </For> </box> </Show> |
