Claude Code v2.1.227 ·
Worktree cleanup explains when a directory is still in use
Worktree cleanup now tells you when a directory is in use by a live session.
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.227,
ImprovementsSection of the release
What
Cleanup now gives a distinct reason when a worktree is the working directory of a live Claude Code session, instead of a generic skip.
Details
- The liveness checks around reading worktree state were folded into one helper that distinguishes missing, gone and unreadable.
Evidence
is the working directory of a live Claude Code session
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.227 →