Browse Source

feat: use |- for intermediate sub-agent steps (#5336)

Signed-off-by: Christian Stewart <[email protected]>
Christian Stewart 2 months ago
parent
commit
b274371dbb
1 changed files with 9 additions and 5 deletions
  1. 9 5
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

+ 9 - 5
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -1503,11 +1503,15 @@ ToolRegistry.register<typeof TaskTool>({
         <Show when={props.metadata.summary?.length}>
         <Show when={props.metadata.summary?.length}>
           <box>
           <box>
             <For each={props.metadata.summary ?? []}>
             <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>
             </For>
           </box>
           </box>
         </Show>
         </Show>