New worktrees are checked before use, and creation fails loudly if the directory is unusable.
What's wrong with this entry?
After creating a worktree, Claude Code checks that the new directory is acceptable as an isolation root and fails loudly if it is not.
- applies to every creation path: interactive, agent, hook-based and resumed
- throws on rejection and records telemetry
git_worktree_create_root_rejected
git_worktree_create_root_rejected
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.239
worktree.locationsetting for Desktop SSH sessionsBoth mention worktree
-
v2.1.246
Worktree cleanup only removes directories Claude Code created
Both mention worktree
-
v2.1.247
Cloud-session seeding names linked worktrees and split git layouts as un-seedable
Both mention worktree