Show done_criterion in widget for non-completed tasks

Human needs to see the criterion, not just the subject.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wassname
2026-04-17 06:14:05 +08:00
parent e86c19b11a
commit 8e78a3ec92
+3
View File
@@ -192,6 +192,9 @@ export class TaskWidget {
} }
lines.push(truncate(text + suffix)); lines.push(truncate(text + suffix));
if (!isActive && task.status !== "completed" && (task as any).done_criterion) {
lines.push(truncate(` ${(task as any).done_criterion}`));
}
} }
if (tasks.length > MAX_VISIBLE_TASKS) { if (tasks.length > MAX_VISIBLE_TASKS) {