Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.222 Home All releases olderv2.1.221 v2.1.223newer

Worktree sessions record a launch anchor and use it when leaving

You'll notice
Useful3 Signal0
Worktrees

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

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.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.222 →