From b9fdd33dbc8031c01afd5cdf4e4044a856d60714 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 23:43:06 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/cases/tasks-tab.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/cases/tasks-tab.tsx b/src/components/cases/tasks-tab.tsx index b01488a..eb12757 100644 --- a/src/components/cases/tasks-tab.tsx +++ b/src/components/cases/tasks-tab.tsx @@ -95,6 +95,10 @@ export function CaseTasksTab({ caseId }: { caseId: string }) { completed_at: checked ? (new Date().toISOString() as any) : null, }) .eq("id", t.id); + if (checked) { + // Spawn the next task in the workflow chain (if any) + await spawnNextWorkflowTask(t.id); + } }; const today = startOfDay(new Date());