Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

A hook's approval only counts for the exact call that enters a worktree

When an agent enters a worktree, a hook's approval now counts only if it was given for that same tool call, not for a different one

You'll notice Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What

A worktree is a separate working copy of a git repository. A hook is a command you configure that runs at set points and can approve requests. A tool call is one action Claude takes, such as running a command.

When an agent enters a worktree, a permission prompt approved by a hook now counts only if that approval was given for the same tool call. Before, any hook approval counted. If the approval came from a different call, Claude Code now moves write access to the worktree. It no longer reports that it added no sandbox write permission. A sandbox is a restricted area that limits where Claude can write.

Why

Permissions are tighter: a hook's approval of one action no longer carries over to another.

See this entry in the whole of v2.1.334 →

Feedback