feat(FN-3867): add changeset for paused scope exclusion feature

Completes Step 4 by adding a patch changeset for `@runfusion/fusion`, signaling that the FN-3864 scope-exclusion work is ready for the next release.

Fusion-Task-Id: FN-3867
This commit is contained in:
Fusion
2026-05-09 11:47:33 -07:00
committed by gsxdsm
parent 8f5cf45e77
commit 06d9de791d
3 changed files with 84 additions and 2 deletions

View File

@@ -661,9 +661,12 @@ export class Scheduler {
const filteredScope = filterPathsByIgnoreList(scope, overlapIgnorePaths);
if (filteredScope.length > 0) activeScopes.set(t.id, filteredScope);
}
// In-review tasks with unmerged worktrees
// Paused in-review tasks (e.g., failed-merge tasks awaiting human triage) cannot
// make progress, so they must not contribute to activeScopes. Including them
// caused a deadlock pattern where a paused task indefinitely re-stamped
// `blockedBy` on overlapping todo tasks every scheduler tick. (FN-3867 / FN-3857)
const inReviewWithWorktree = tasks.filter(
(t) => t.column === "in-review" && t.worktree,
(t) => t.column === "in-review" && t.worktree && !t.paused,
);
for (const t of inReviewWithWorktree) {
const scope = await this.store.parseFileScopeFromPrompt(t.id);