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.331,
ImprovementsSection of the release
What
A worktree is a separate working copy of a git repository. Claude Code now refuses to move a session into a worktree that sits outside the folder the server was started in.
ExitWorktree now notices when the folder it would return to leads somewhere different from when its permission check ran. In that case it keeps the worktree and says it "did not remove it, since the directory to go back to has changed". The old message only said it had exited the worktree but could not remove it.
Why
Entering and leaving worktrees is stricter in sessions run by a server. A worktree is not deleted when the folder you would return to has quietly changed.