{"version":"2.1.333","anchor":"enterworktree-tightened-for-managed-worktrees-and-restores-t","canonical_anchor":"enterworktree-tightened-for-managed-worktrees-and-restores-t","heading":"Entering a managed worktree asks for permission more often and recovers better on failure","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/enterworktree-tightened-for-managed-worktrees-and-restores-t","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Entering a managed worktree asks for permission more often and recovers better on failure\n\nEnterWorktree now checks policy before it runs, no longer always auto-allows managed worktrees, and returns you to your original folder more reliably on failure\n\n**Unclear.** The condition that still lets a managed worktree be entered without a prompt is not stated.\n\n**What**\n\nA worktree is a separate working copy of a git repository that Claude Code can switch into. `EnterWorktree` is the tool Claude uses to move into one. A managed worktree is one that Claude Code itself looks after. The tool changed in four ways:\n\n- Policy check first: it now refuses before doing anything when a policy check fails.\n\n- Managed worktrees: they used to be allowed every time without asking you. Now they are allowed without asking only when a certain condition holds.\n\n- Failure recovery: if entering fails, Claude Code puts you back in the folder you started from more carefully.\n\n- Sandbox note: the sandbox is the set of limits on what commands can change. When an approval for a managed path skips giving the sandbox permission to write there, the result now says that no write permission was added.\n\n**Why**\n\nThis changes when you see permission prompts for entering worktrees. You may now be asked in cases that used to go through silently. A failed attempt is also less likely to leave you working in the wrong folder.\n\n- Area: Worktrees\n- Names: `EnterWorktree`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}