Follow Discord
Sweep 08 Oct 2026 · 18:53Z Build v2.1.295 516 read Stable v2.1.286 Latest v2.1.295 Next v2.1.295 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.290 ·

Worktree cleanup refuses to delete folders that hold git's own files

Claude Code no longer removes a worktree folder that holds git's internal files or could not be checked, and its error text hides unsafe paths

You'll notice Improvements
JSON All of v2.1.290
You'll noticeTier: how much it should matter to you
2Useful: 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 an extra working folder linked to a git repository. When Claude Code cleans up a worktree, it now refuses to remove a folder that holds git's own internal files (objects, config, packed-refs, hooks or worktrees), or that it could not check for them.

Other changes to cleanup:

  • A leftover worktree whose .git file points somewhere else is left as it is, with a message saying so.
  • Deletes that fail partway are handled by a new removal routine.
  • Error messages hide paths that contain control characters (invisible characters that can disturb a terminal).
  • Errors from repairing orphaned worktrees are reworded.
Why

Cleanup is less likely to delete part of a real repository by mistake.

See this entry in the whole of v2.1.290 →

Feedback