You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.290,
Bug FixesSection of the release
What
A worktree is an extra working copy of a git repository in its own folder. When Claude Code drops a worktree's registration and the folder holds files that belong in a git directory (objects, config, packed-refs, hooks or worktrees), it now leaves the folder in place and shows a warning. Git deletes it on its next prune or git gc.
Before, Claude Code removed the whole folder, and if that failed, removed only the files git writes there.
Why
This avoids deleting a folder that may still contain your own data.