Skip to content

Commit 93e52f7

Browse files
authored
feat: Enhance task display with [subagent type] (anomalyco#3772)
1 parent 88f12b0 commit 93e52f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,12 @@ ToolRegistry.register<typeof TaskTool>({
11581158

11591159
return (
11601160
<>
1161-
<ToolTitle icon="%" fallback="Delegating..." when={props.input.description}>
1162-
Task {props.input.description}
1161+
<ToolTitle
1162+
icon="%"
1163+
fallback="Delegating..."
1164+
when={props.input.subagent_type ?? props.input.description}
1165+
>
1166+
Task [{props.input.subagent_type ?? "unknown"}] {props.input.description}
11631167
</ToolTitle>
11641168
<Show when={props.metadata.summary?.length}>
11651169
<box>

0 commit comments

Comments
 (0)