{"version":"2.1.336","anchor":"exitworktree-remove-prompt-adds-a-warning-to-its-decision-re","canonical_anchor":"exitworktree-remove-prompt-adds-a-warning-to-its-decision-re","heading":"Discarding a worktree warns you when work would be lost","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/exitworktree-remove-prompt-adds-a-warning-to-its-decision-re","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Discarding a worktree warns you when work would be lost\n\nApproving `ExitWorktree` with `discard_changes` now shows a warning when the discard would lose something\n\n**What**\n\n`ExitWorktree` is the tool Claude uses to leave a worktree, a separate working copy of a git repository. When Claude asks to leave and delete one with `discard_changes`, the permission prompt now includes a warning if the discard would lose something. Before, the prompt only gave its type and reason.\n\nA new message also covers the case where the worktree is not removed because the session is still in it and it no longer reads clean.\n\n**Why**\n\nThe warning makes it harder to approve throwing away work by accident.\n\n- Area: Worktrees\n- Names: `ExitWorktree`, `discard_changes`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}