{"version":"2.1.336","anchor":"worktree-exit-check-no-longer-hangs-on-a-slow-git-status","canonical_anchor":"worktree-exit-check-no-longer-hangs-on-a-slow-git-status","heading":"Leaving a worktree no longer hangs on a slow git check","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/worktree-exit-check-no-longer-hangs-on-a-slow-git-status","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Leaving a worktree no longer hangs on a slow git check\n\nThe worktree exit dialog now stops waiting when git is slow to count uncommitted files or commits, instead of stalling\n\n**What**\n\nA 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.\n\nIf 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.\n\n**Why**\n\nLeaving a worktree session in a very large repository no longer stalls while git works.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}