From fd54e7fcef1019a256a87e604ebe3d0764642cdc Mon Sep 17 00:00:00 2001 From: pedrofrxncx Date: Wed, 2 Sep 2026 09:52:02 -0300 Subject: [PATCH] fix(task-board): resolve the review sweeper's in-progress lane from the board --- apps/api/src/tools/task-board/review-sweeper.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/api/src/tools/task-board/review-sweeper.ts b/apps/api/src/tools/task-board/review-sweeper.ts index a8299426fe..22db34ce34 100644 --- a/apps/api/src/tools/task-board/review-sweeper.ts +++ b/apps/api/src/tools/task-board/review-sweeper.ts @@ -336,9 +336,10 @@ export class TaskBoardReviewSweeper { const item = await this.taskBoard.getById(id, organizationId); // Re-read before spending a run: a human may have moved or reassigned // the card between the scan and here, and their move wins. + const lanes = await boardLanesForDb(this.db, organizationId); if ( !item || - item.status !== "in_progress" || + item.status !== lanes.progress || item.assigneeId !== SUPER_AGENT_ASSIGNEE_ID ) { continue; @@ -413,7 +414,7 @@ export class TaskBoardReviewSweeper { try { const lanes = await boardLanesForDb(this.db, organizationId); const item = await this.taskBoard.getById(id, organizationId); - if (!item || item.status !== "in_progress") return; + if (!item || item.status !== lanes.progress) return; const returned = await this.taskBoard.returnToTodoAfterFailure( id, organizationId,