feat: per prd worktrees

This commit is contained in:
2026-07-22 16:37:02 -04:00
parent 0034272c54
commit 9fcf944cb5
2 changed files with 29 additions and 10 deletions

View File

@@ -260,7 +260,11 @@ async function executePlanBatches(
// Clean up stale worktrees from interrupted runs before starting.
if (config.execution.worktrees !== "never" && projectDir) {
const removed = cleanupStaleWorktrees(projectDir, config.paths.stateDir);
const removed = cleanupStaleWorktrees(
projectDir,
config.paths.stateDir,
progress.getKey(),
);
if (removed.length > 0) {
ctx.ui.notify(
`Cleaned up ${removed.length} stale worktree(s) from previous run.`,