Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Worktree switching now catches folders that point somewhere else

ExitWorktree now notices when the original folder points elsewhere, and EnterWorktree adds path checks and refuses some wildcard paths

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

A worktree is a separate working copy of a git repository that Claude Code can switch into and out of.

  • ExitWorktree now notices when the original folder has been redirected, for example through a symlink (a file that points to another location) or a path that now points somewhere new. It used to notice only a folder that no longer existed. It moves the session back to a safe working folder and logs a message saying the folder "is gone or leads elsewhere". Its result has a new isLedElsewhere field.
  • EnterWorktree adds more path checks, and refuses a session path that contains any of *, ?, [ or ] while blockReadsOutsideWorkingDirectories is on.
Why

It makes switching between worktrees harder to trick with folders that were swapped or redirected underneath Claude Code.

See this entry in the whole of v2.1.331 →

Feedback