Dashboard › opencode-lore › TaskTool masks assistant errors
01a0979b-51c7-7724-ab8d-6a47f18f7954| Project | Hits | Last recalled |
|---|---|---|
| cli | 2 | 8d ago |
Trap: runTask() treating any returned assistant message as success looks valid because normal replies always contain text, but failed children also return assistant messages with result.info.error; empty text then becomes state="completed" and an empty <task_result>. Fix: fail the task when result.info.error exists and propagate a sanitized categorical failure so foreground, background, new, and resumed tasks render an error rather than false completion.