diff options
| author | Christian Stewart <[email protected]> | 2025-12-10 14:36:11 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-10 16:36:11 -0600 |
| commit | b274371dbb2b6853636a063907371418f7cbae46 (patch) | |
| tree | 19effe7ebdfd3ca84ebb845cc8d9ee22b5f226d1 | |
| parent | 72eb004057a08283f734c7543c08f399f8ba881b (diff) | |
| download | opencode-b274371dbb2b6853636a063907371418f7cbae46.tar.gz opencode-b274371dbb2b6853636a063907371418f7cbae46.zip | |
feat: use |- for intermediate sub-agent steps (#5336)
Signed-off-by: Christian Stewart <[email protected]>
| -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> |
