diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index 505fb5e6de..52a91c86a1 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -169,15 +169,16 @@ function websearch(info: ToolProps) { function task(info: ToolProps) { const input = info.part.state.input + const status = info.part.state.status const subagent = typeof input.subagent_type === "string" && input.subagent_type.trim().length > 0 ? input.subagent_type : "unknown" const agent = Locale.titlecase(subagent) const desc = typeof input.description === "string" && input.description.trim().length > 0 ? input.description : undefined - const started = info.part.state.status === "running" + const icon = status === "error" ? "✗" : status === "running" ? "•" : "✓" const name = desc ?? `${agent} Task` inline({ - icon: started ? "•" : "✓", + icon, title: name, description: desc ? `${agent} Agent` : undefined, })