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.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 Internal Changes
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
Internal ChangesKind: in v2.1.281,
Bug FixesSection of the release

Unclear The finding does not say what these two values contain or where a reader would see them.

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.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding does not say what these two values contain or where a reader would see them.

See this entry in the whole of v2.1.281 →

Feedback