Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.335 ·

Removing a worktree on exit now keeps it if new work appeared in the meantime

Choosing remove in the exit dialog now rechecks the worktree and keeps it, with a message, if it holds new work

You'll notice Bug Fixes
JSON All of v2.1.335
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
Bug FixesKind: in v2.1.335,
Bug FixesSection of the release
What

A worktree is a separate working copy of your repository that Claude Code can work in. When you leave, a dialog asks whether to keep or remove it. Choosing remove now checks the worktree again first. If it holds new work, Claude Code keeps it and tells you to check it before removing it.

Before, removal went ahead based on the check made when the dialog opened.

Why

This stops Claude Code from deleting changes that were made after the dialog appeared.

See this entry in the whole of v2.1.335 →

Feedback