{"version":"2.1.328","anchor":"worktree-exit-dialog-treats-copied-files-as-at-stake","canonical_anchor":"worktree-exit-dialog-treats-copied-files-as-at-stake","heading":"Leaving a worktree asks before deleting one that holds copied files","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/worktree-exit-dialog-treats-copied-files-as-at-stake","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Leaving a worktree asks before deleting one that holds copied files\n\nWhen you exit a clean worktree that has copied files or may sync, Claude Code now asks before removing it\n\n**What**\n\nA worktree is a separate working folder for the same git repository, so work can happen there without touching your main folder. Before, when you left a worktree that had no uncommitted changes, Claude Code removed it without asking.\n\nNow Claude Code also checks whether the worktree holds copied files or may sync. If so, it asks you first, and the removal takes into account that those copies may be deleted.\n\n**Why**\n\nFiles copied into a worktree are no longer deleted silently just because git shows nothing changed.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}