You'll notice
Git tracked/untracked file checks now account for an active worktree override
What
When Claude Code checks whether a file is tracked or untracked by git, it now first checks for a worktree path override before falling back to the normal check based on the current working directory. It checks both the override path and the equivalent path relative to the parent repository.
Why
This makes git status checks behave correctly when Claude Code is operating against a worktree (an alternate checkout of a git repository) rather than the main working directory, so tracked/untracked status is reported accurately in that case.