From cd976d33c5fff20d217d99fd3be30f43db0947de Mon Sep 17 00:00:00 2001 From: Daniel Ehrhardt Date: Fri, 23 Oct 2026 05:26:39 +0200 Subject: [PATCH] Always offer Dismiss on decision tickets, also when the agent waits for the answer Dismissing a question ticket answers it with a note that it no longer needs an answer, so the waiting run carries on instead of standing still, and the ticket shows as Dismissed. --- .../human-tasks/human-task-sheet.tsx | 32 +++++++++---------- apps/mobile/src/app/human-task/[id].tsx | 18 +++++------ packages/core/src/services/humanTasks.ts | 10 +++++- packages/core/test/human-tasks.test.ts | 15 +++++++-- 4 files changed, 45 insertions(+), 30 deletions(-) diff --git a/apps/desktop/src/components/human-tasks/human-task-sheet.tsx b/apps/desktop/src/components/human-tasks/human-task-sheet.tsx index 2b221b09..5c33ef73 100644 --- a/apps/desktop/src/components/human-tasks/human-task-sheet.tsx +++ b/apps/desktop/src/components/human-tasks/human-task-sheet.tsx @@ -446,22 +446,22 @@ function CloseBox({ )}
- {/* A question the agent stands still for can only be answered. */} - {!(decision && task.questionId) && - (decision ? ( - - - - - Nothing to decide here. {agentName ?? "The agent"} isn't woken. - - ) : ( - - ))} + {decision ? ( + + + + + + {task.questionId ? `No answer needed anymore. ${agentName ?? "The agent"} goes on without it.` : `Nothing to decide here. ${agentName ?? "The agent"} isn't woken.`} + + + ) : ( + + )}