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.246 ·

Hook state is created and torn down per session

Hook state is built per session and cleared on dispose instead of living globally.

Under the hood Internal Changes
JSON All of v2.1.246
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
Internal ChangesKind: in v2.1.246,
Internal ChangesSection of the release
What

The hook registry is now built fresh for each session, threaded through tool-use context, the submission-hook pass and assistant post-processing, and cleared on dispose along with read-file and tool state, rather than living as a module-wide global.

Details
  • A no-op registry ships for contexts where hooks are unavailable; its addFunctionHook returns the sentinel id function-hook-noop.
Evidence

function-hook-noop

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

Feedback