You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.336,
Bug FixesSection of the release
What
A worktree is a second working copy of a repository in its own folder. When you leave a worktree session, Claude Code checks for uncommitted files and unmerged commits before asking what to do. These checks now have time limits.
If git takes too long to list files, the dialog says there are "an unknown number of uncommitted files, perhaps none (git took too long to list them)". The message after removal says that any uncommitted changes were discarded. Before, there was no time limit, and a failed check showed only a "could not be counted" message.
Why
Leaving a worktree session in a very large repository no longer stalls while git works.