Leaving a worktree session now checks for unpublished work before removing it
The 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
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.330,
ImprovementsSection of the release
What
A 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:
It shows "Checking the worktree for uncommitted changes…" while it looks.
If it can't tell what the worktree holds, it warns: "Claude Code couldn't tell what this worktree holds".
Otherwise, the removal message says any uncommitted or unpublished work will be lost.
For working copies that are not Git, it says "Version control" instead of "Git".
Before, the dialog showed nothing while checking and counted only uncommitted files and commits.
Why
You are less likely to delete a worktree without realising it still holds work that was never published.