Dashboardopencode-loreTaskTool masks assistant errors

TaskTool masks assistant errors

Category: gotcha
Confidence: 1.00
ID: 01a0979b-51c7-7724-ab8d-6a47f18f7954
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 1
Source session: 0IiwozJmFR9A6QyFo
Created: 2026-08-26 08:58:02
Updated: 2026-09-12 21:52:13

Cross-Project Recalls

ProjectHitsLast recalled
cli 2 8d ago

Content

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.

Move to: