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

Claude Code v2.1.198 ·

Hooks: Improved Validation Error Messages

Entry
JSON All of v2.1.198
EntryKind: in v2.1.198,
ImprovementsSection of the release

Hook configuration parsing now reports cleaner, more specific errors: invalid hook event names, malformed matcher arrays, and wrong top-level types each produce distinct messages with the offending path.

Details
  • "must be an object mapping hook event names to matcher arrays; received <type>" for wrong root type
  • "unknown hook event. Valid events: <list>" for unrecognized event names
  • "must be an array of matchers; received <type>" for non-array event handlers
Evidence

New validator (search for "must be an object mapping hook event names to matcher arrays")

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

Feedback