feat(FN-4763): complete Step 7 — finalize reclaim wiring and docs

Fusion-Task-Id: FN-4763
Fusion-Task-Lineage: b3628e63-682b-4a39-9a7d-2c96278c5366
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 13:45:25 -07:00
committed by gsxdsm
parent 412ee29a24
commit bba945c8be
5 changed files with 22 additions and 11 deletions

View File

@@ -50,7 +50,9 @@ function makeStore(
if (column === "in-progress") return [task];
return [];
}),
updateTask: vi.fn(async (_id: string, updates: Partial<Task>) => (task ? Object.assign(task, updates) : null)), moveTask: vi.fn(async (_id: string, column: Task["column"]) => {
updateTask: vi.fn(async (_id: string, updates: Partial<Task>) => (task ? Object.assign(task, updates) : null)),
moveTask: vi.fn(async (_id: string, column: Task["column"]) => {
if (!task) return null;
task.column = column;
return task;
}),
@@ -161,7 +163,7 @@ describe("SelfHealingManager.reclaimPrConflictForTask", () => {
});
it("skips when branch or worktree is missing", async () => {
const task = makeTask({ branch: null });
const task = makeTask({ branch: undefined });
const store = makeStore(task);
const manager = new SelfHealingManager(store as any, { rootDir: "/tmp/test" } as any);
const result = await manager.reclaimPrConflictForTask(task.id);