From 8e78a3ec9263d9703bed307a9372dec3b71af117 Mon Sep 17 00:00:00 2001 From: wassname <1103714+wassname@users.noreply.github.com> Date: Fri, 17 Apr 2026 06:14:05 +0800 Subject: [PATCH] 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 --- src/ui/task-widget.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/task-widget.ts b/src/ui/task-widget.ts index 58582bd..5d2b0d1 100644 --- a/src/ui/task-widget.ts +++ b/src/ui/task-widget.ts @@ -192,6 +192,9 @@ export class TaskWidget { } 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) {