You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.299,
Bug FixesSection of the release
What
A git worktree is an extra working copy of a repository that shares the same history. When Claude Code cleans up a worktree's admin folder (the small folder git keeps to track that copy), it previously deleted only a fixed list of files. It now also removes the files git writes when it uses reftable, a newer format git can use to store branch and tag references:
These are only removed after Claude Code checks that each file is the one it expects. On macOS, when Claude Code opens a file inside a folder it is holding open, it now also confirms that the file it opened is the same one the folder listing named.
Why
Repositories that use reftable should no longer have stray reference files left behind after a worktree is cleaned up.