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

Function scrollTaskFinal

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

Source from the content-addressed store, hash-verified

775}
776
777function scrollTaskFinal(p: ToolProps<typeof TaskTool>): string {
778 if (p.frame.status === "error") {
779 return fail(p.frame)
780 }
781
782 const kind = Locale.titlecase(p.input.subagent_type || "general")
783 const row = p.input.description || text(p.frame.state.title)
784 if (!row) {
785 return `# ${kind} Task`
786 }
787
788 return `# ${kind} Task\n${row}`
789}
790
791function scrollTodoStart(_: ToolProps<typeof TodoWriteTool>): string {
792 return ""

Callers

nothing calls this directly

Calls 2

failFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected