{"version":"2.1.328","anchor":"exitworktree-is-more-careful-about-copies-and-reports-remov","canonical_anchor":"exitworktree-is-more-careful-about-copies-and-reports-remov","heading":"Worktree errors now say why a removal failed","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/exitworktree-is-more-careful-about-copies-and-reports-remov","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Worktree errors now say why a removal failed\n\nWhen a worktree cannot be removed, the message now gives the reason, and entering one logs when sandbox setup could not be rebuilt\n\n**What**\n\nA worktree is a separate working copy of a git repository that Claude Code can work in. Changes:\n\n- `ExitWorktree`: when it cannot remove a worktree, the message still says where it was kept and now also gives the reason. It also checks one more condition about copies before removing.\n\n- `EnterWorktree`: when the sandbox settings (the limits on what commands can touch) cannot be rebuilt for the worktree, it logs an error. The settings from before the move stay in force.\n\n**Why**\n\nYou get a clearer explanation when a worktree is left behind, and a record when sandbox settings did not follow you into a worktree.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}