Function
scrollTaskFinal
(p: ToolProps<typeof TaskTool>)
Source from the content-addressed store, hash-verified
| 775 | } |
| 776 | |
| 777 | function 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 | |
| 791 | function scrollTodoStart(_: ToolProps<typeof TodoWriteTool>): string { |
| 792 | return "" |
Callers
nothing calls this directly
Tested by
no test coverage detected