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

Claude Code v2.1.242 ·

Worktree cleanup passes account state to the removal hook

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

Under the hood Internal Changes
JSON All of v2.1.242
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.242,
Internal ChangesSection of the release
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 →

Feedback