feat(KB-312): complete Step 4 — clear workflow results on task retry

This commit is contained in:
gsxdsm
2026-03-31 13:13:56 -07:00
parent 840c70ed0e
commit 433a2fefef

View File

@@ -803,6 +803,12 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
task.blockedBy = undefined; task.blockedBy = undefined;
} }
// Clear workflow step results when moving from in-review back to todo or in-progress
// This ensures fresh workflow step runs on retry
if (fromColumn === "in-review" && (toColumn === "todo" || toColumn === "in-progress")) {
task.workflowStepResults = undefined;
}
await this.atomicWriteTaskJson(dir, task); await this.atomicWriteTaskJson(dir, task);
// Update cache if watcher is active // Update cache if watcher is active