From 72d1725fcff8bca5f554b3547a9c50605bb24834 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 31 Mar 2026 17:24:47 +0900 Subject: [PATCH] fix(tasks): preserve nullable flow patch clears --- src/tasks/flow-registry.ts | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/tasks/flow-registry.ts b/src/tasks/flow-registry.ts index 74647959b38..76c49efc764 100644 --- a/src/tasks/flow-registry.ts +++ b/src/tasks/flow-registry.ts @@ -39,16 +39,19 @@ function resolveFlowBlockedSummary( } type FlowRecordPatch = Partial< - Pick< - FlowRecord, - | "status" - | "notifyPolicy" - | "goal" - | "currentStep" - | "blockedTaskId" - | "blockedSummary" - | "updatedAt" - | "endedAt" + Omit< + Pick< + FlowRecord, + | "status" + | "notifyPolicy" + | "goal" + | "currentStep" + | "blockedTaskId" + | "blockedSummary" + | "updatedAt" + | "endedAt" + >, + "currentStep" | "blockedTaskId" | "blockedSummary" | "endedAt" > > & { currentStep?: string | null;