fix(FN-4742): address review for worktrunk removal backstop

Fusion-Task-Id: FN-4742
Fusion-Task-Lineage: 59bca56e-c9d9-4066-9f5a-6d8ee252a100
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 09:41:25 -07:00
committed by gsxdsm
parent 251a472458
commit 378762c4ab
4 changed files with 48 additions and 36 deletions

View File

@@ -301,9 +301,9 @@ export async function acquireTaskWorktree(opts: AcquireTaskWorktreeOptions): Pro
}
};
// Removal/sync/prune call sites in executor.ts, merger.ts, worktree-pool.ts,
// and self-healing.ts remain on native git worktree commands in this task;
// migration follows in FN-4678.
// Worktree removal in merger.ts, worktree-pool.ts, and self-healing.ts is now
// backend-mediated via WorktreeBackend.remove(). executor.ts and
// step-session-executor.ts remain native-only paths (tracked separately).
const created = await createWorktreeImpl(branchName, worktreePath, task.id, baseBranch ?? undefined, allowSiblingBranchRename);
worktreePath = created.path;
branch = created.branch;