Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.269 ·

Worktree cleanup hardened against redirected/relinked paths

Worktree cleanup now checks for redirected symlinks before deleting anything, and refuses if it can't confirm safety

You'll notice Bug Fixes
JSON All of v2.1.269
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Git WorktreesArea: what it touches
Bug FixesKind: in v2.1.269,
Bug FixesSection of the release
What

When Claude Code removes or cleans up a git worktree, it now performs extra safety checks first: it traces the full chain of paths involved and checks whether the worktree location has been redirected by a changed symlink. If it can't confirm the deletion target is actually contained where it should be, it now refuses to delete anything, warns you to manually check sensitive locations like .git/hooks first, and leaves the worktree's git registration in place.

Why

A symlink pointing a worktree path somewhere unexpected could otherwise cause cleanup to delete the wrong files, including files outside the intended worktree. Refusing to act when safety can't be confirmed, and calling out .git/hooks specifically, protects against deleting or exposing sensitive files.

See this entry in the whole of v2.1.269 →

Feedback