Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Plugin HooksArea: what it touches
Internal ChangesKind: in v2.1.333,
Internal ChangesSection of the release
Unclear Which events now accept generator hooks is not stated.
What
In Claude Code's plugin runtime, a hook is code a plugin runs at a set point. Some hooks are written as async generators, functions that hand back results bit by bit. Before, Claude Code refused a generator hook on any event that does not stream its output. It now skips that refusal for events that pass a new check.
There is also a new rule: a hook and its .catch handler must take the same form. Either both are async generators, or neither is.
Why
Plugin authors can write generator hooks in more places, and will see a different error if a hook and its .catch do not match.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich events now accept generator hooks is not stated.