Claude Code v2.1.222 ·
Worktree creation validates the resulting root before use
New worktrees are checked before use, and creation fails loudly if the directory is unusable.
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.222,
ImprovementsSection of the release
What
After creating a worktree, Claude Code checks that the new directory is acceptable as an isolation root and fails loudly if it is not.
Details
- applies to every creation path: interactive, agent, hook-based and resumed
- throws on rejection and records telemetry
git_worktree_create_root_rejected
Evidence
git_worktree_create_root_rejected
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.222 →