{"version":"2.1.330","anchor":"worktree-exit-message-names-mods-and-skips-entered-existing","canonical_anchor":"worktree-exit-message-names-mods-and-skips-entered-existing","heading":"Leaving a worktree you entered no longer hits the hook-made refusal","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/worktree-exit-message-names-mods-and-skips-entered-existing","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Leaving a worktree you entered no longer hits the hook-made refusal\n\nThe refusal to remove a hook-made worktree now skips worktrees you entered that already existed, and mod-made worktrees get their own message\n\n**What**\n\nA worktree is a separate working copy of a repository that Claude Code can work in. When you exit one, Claude Code can offer to remove it, but it refuses to remove worktrees that something else created.\n\nPreviously this refusal applied to every worktree made by a `WorktreeCreate` hook (a command you configure to create worktrees), and its message only mentioned that hook. Now:\n\n- The refusal no longer applies when you entered a worktree that already existed.\n\n- A worktree made by a mod gets its own message saying a mod made it.\n\n**Why**\n\nExiting a worktree is a little more permissive, and the message says more accurately what created it.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}