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

Signed-off-by: Christian Stewart <christian@aperture.us>
This commit is contained in:
Christian Stewart 2025-12-10 14:36:11 -08:00 committed by GitHub
parent 72eb004057
commit b274371dbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>