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

Hook Matching Logic

Entry
JSON All of v2.0.42
EntryKind: in v2.0.42,
ChangesSection of the release

What: Hook matching now considers both matcher name and hook event when finding applicable hooks.

Details:

  • Function Hr2() at line 472167 updated to match hooks by matcher name first, then by hook criteria
  • Supports empty matcher string for wildcard matching
  • Returns full hook entry (not just onMatch callback) for more context
  • Evidence: Hr2() at line 472167-472185

See this entry in the whole of v2.0.42 →

Feedback