You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.290,
ImprovementsSection of the release
What
A worktree is a separate working copy of a git repository that Claude Code can set up for an agent (a helper that works on a task on its own). When Claude Code tries to clean one up and cannot, it now tells two cases apart:
Claude Code's own attempt to delete the files failed
git refused to remove the worktree
In both cases the worktree is left in place, and the message now reads "removal failed, kept" instead of always blaming git worktree remove. A failed delete is recorded as its own kind of failure.
Why
When cleanup goes wrong, the message now points at the step that actually failed, which makes it easier to work out what to fix.