{"version":"2.1.222","anchor":"worktree-creation-validates-the-resulting-root-before-use","canonical_anchor":"worktree-creation-validates-the-resulting-root-before-use","heading":"Worktree creation validates the resulting root before use","tier":"notice","area":"Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222\/e\/worktree-creation-validates-the-resulting-root-before-use","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222","markdown":"### Worktree creation validates the resulting root before use\n\nNew worktrees are checked before use, and creation fails loudly if the directory is unusable.\n\n**What**\n\nAfter creating a worktree, Claude Code checks that the new directory is acceptable as an isolation root and fails loudly if it is not.\n\n**Details**\n\n- applies to every creation path: interactive, agent, hook-based and resumed\n- throws on rejection and records telemetry `git_worktree_create_root_rejected`\n\n**Evidence**\n\n`git_worktree_create_root_rejected`\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5"}