{"version":"2.1.330","anchor":"worktree-exit-dialog-checks-for-unpublished-work-and-vcs-cop","canonical_anchor":"worktree-exit-dialog-checks-for-unpublished-work-and-vcs-cop","heading":"Leaving a worktree session now checks for unpublished work before removing it","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/worktree-exit-dialog-checks-for-unpublished-work-and-vcs-cop","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Leaving a worktree session now checks for unpublished work before removing it\n\nThe worktree exit dialog now shows a checking spinner, warns when it can't tell what the worktree holds, and counts unpublished work as well as uncommitted changes\n\n**What**\n\nA worktree is a separate working copy of your project that a session can use so its changes stay apart from your main folder. When you leave a worktree session, the exit dialog has changed:\n\n- It shows \"Checking the worktree for uncommitted changes\u2026\" while it looks.\n\n- If it can't tell what the worktree holds, it warns: \"Claude Code couldn't tell what this worktree holds\".\n\n- Otherwise, the removal message says any uncommitted or unpublished work will be lost.\n\n- For working copies that are not Git, it says \"Version control\" instead of \"Git\".\n\nBefore, the dialog showed nothing while checking and counted only uncommitted files and commits.\n\n**Why**\n\nYou are less likely to delete a worktree without realising it still holds work that was never published.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}