MCPcopy Index your code
hub / github.com/anomalyco/opencode / runTask

Function runTask

packages/opencode/src/cli/cmd/run/tool.ts:366–375  ·  view source on GitHub ↗
(p: ToolProps<typeof TaskTool>)

Source from the content-addressed store, hash-verified

364}
365
366function runTask(p: ToolProps<typeof TaskTool>): ToolInline {
367 const kind = Locale.titlecase(p.input.subagent_type || "unknown")
368 const desc = p.input.description
369 const icon = p.frame.status === "error" ? "✗" : p.frame.status === "running" ? "•" : "✓"
370 return {
371 icon,
372 title: desc || `${kind} Task`,
373 description: desc ? `${kind} Agent` : undefined,
374 }
375}
376
377function runTodo(p: ToolProps<typeof TodoWriteTool>): ToolInline {
378 return {

Callers 1

task.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected