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.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

Worktree cleanup passes account state to the removal hook

Under the hood
Useful2 Signal2
Elsewhere

Worktree removal now passes account state to your WorktreeRemove hook and the record-clearing call.

What

The routine that removes a git worktree now receives storage and credentials and hands both to the WorktreeRemove hook and to the call that clears the recorded worktree.

Details
  • Lock ownership, Windows reparse point handling and the fallback to git worktree remove are unchanged, as is the wording of the kept and removed log lines.
Evidence

WorktreeRemove hook did not remove worktree, kept at:

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.242 →