Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.265 ·

Hook registration: duplicate once-only event registration now throws, and pattern-based event names supported

Hook registration now rejects registering the same once-only event twice and validates names as patterns

Use it now Improvements
JSON All of v2.1.265
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.265,
What probably matters to youSection of the release
What

When a hook (custom code that runs on a specific event) is registered with on(event, ...), event names are now validated as patterns rather than plain names. Registering the same once-only event more than once now throws an error reading "registered twice." Error messages for hook registration also now refer to a 'pattern' instead of an 'event' in their wording.

Why

This catches a mistake, accidentally registering the same one-time hook event twice, that previously could pass silently, and the wording change reflects that event names are now matched as patterns rather than exact strings.

See this entry in the whole of v2.1.265 →

Feedback