Under the hood
New internal helpers clean up stale git worktree registrations
What
Two new helper functions manage bookkeeping for git worktrees (linked working copies of a repository): one decides whether a worktree entry should be kept or removed, checking whether it's the main worktree, belongs to another machine, resolves through a symlink, or no longer exists on disk; another checks that the local git version is at least 2.36 before relying on certain worktree command behavior.
Why
This should reduce stale or invalid worktree entries lingering in Claude Code's records, and avoids relying on git worktree behavior that older git versions don't support.