Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.222 ·

Worktree sessions record a launch anchor and use it when leaving

Leaving a worktree session now reliably drops you somewhere sensible even if the original directory is gone.

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

Leaving or cleaning up a worktree session now returns you to a directory resolved from a recorded anchor, rather than potentially failing when the original cwd is gone or unsafe.

Details
  • Active worktree sessions carry liveLaunchAnchor, stripped out before the session is persisted into app state
  • On leave/cleanup, a new helper resolves the chdir target; when the original cwd is unsafe it falls back to a repo root inferred from a .claude/worktrees path shape, and failing that to the home directory
  • The anchor is also part of the accepted path set when validating changed files
Evidence

liveLaunchAnchor

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.222 →

Feedback