Skip to content

Recover broken reusable Auto Review worktrees#283

Merged
cbusillo merged 1 commit into
mainfrom
fix/auto-review-worktree-recovery
May 31, 2026
Merged

Recover broken reusable Auto Review worktrees#283
cbusillo merged 1 commit into
mainfrom
fix/auto-review-worktree-recovery

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • validate reusable worktrees against Git's worktree registry before reuse
  • recreate reusable Auto Review worktrees when the directory or .git file is broken
  • remove/prune stale worktree registry state before retrying
  • add regression tests for missing, unregistered, and broken registered reusable worktrees

Closes #273

Validation

  • cargo test -p code-core git_worktree::tests::prepare_reusable_worktree
  • ./build-fast.sh

@cbusillo cbusillo merged commit 57ea788 into main May 31, 2026
1 check passed
@cbusillo cbusillo deleted the fix/auto-review-worktree-recovery branch May 31, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden auto-review worktree recycling after invalid reusable checkout

1 participant