summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIvan Starkov <[email protected]>2025-11-03 10:09:31 +0300
committerGitHub <[email protected]>2025-11-03 01:09:31 -0600
commit93e52f7ecfd8267038fba0e859c347740e3c260b (patch)
treeaa88f379dc57daf69fa565ae0ddbc439bc136714
parent88f12b08223fa1c0ff5275c8cc2f96ed64e887ab (diff)
downloadopencode-93e52f7ecfd8267038fba0e859c347740e3c260b.tar.gz
opencode-93e52f7ecfd8267038fba0e859c347740e3c260b.zip
feat: Enhance task display with [subagent type] (#3772)
-rw-r--r--packages/opencode/src/cli/cmd/tui/routes/session/index.tsx8
1 files changed, 6 insertions, 2 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 9f5890ae2..c3846b55a 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>