Skip to content

The open source coding agent.

TypeScript

feat: Enhance task display with [subagent type] (#3772)

Ivan Starkov93e52f7ecfd8
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 9f5890ae20f..c3846b55a55 100644
--- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
@@ -1158,8 +1158,12 @@ ToolRegistry.register<typeof TaskTool>({
return (
<>
- <ToolTitle icon="%" fallback="Delegating..." when={props.input.description}>
- Task {props.input.description}
+ <ToolTitle
+ icon="%"
+ fallback="Delegating..."
+ when={props.input.subagent_type ?? props.input.description}
+ >
+ Task [{props.input.subagent_type ?? "unknown"}] {props.input.description}
</ToolTitle>
<Show when={props.metadata.summary?.length}>
<box>