Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

ExitWorktree now reports where the session ended up when the original folder is gone

ExitWorktree results now include restoredCwd and originalCwdMissing and say which folder the session moved to if the original was deleted

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

What

A worktree is a separate copy of your project's files that Claude can work in, and ExitWorktree is the tool Claude uses to leave one. Its result now includes two more fields, restoredCwd and originalCwdMissing, which record which working directory (the folder the session runs in) the session went back to.

  • The fields appear both when exiting normally ("Exited worktree. Your work is preserved at …") and when the worktree could not be removed ("Exited worktree but could not remove it").
  • If the original folder no longer exists, the result says so and names the folder the session moved to instead, for example "The original directory … no longer exists, so the session is now in …".
  • It may also suggest restarting Claude from a folder that exists.

The tool's stock description was not changed in this release.

Why

Before, a session could end up in an unexpected folder after leaving a worktree without any notice. Now both Claude and you are told where the session actually is.

See this entry in the whole of v2.1.281 →

Feedback