Unclear It is not clear whether attaching .catch() after registration is now allowed where it was not before.
What
Plugins add features to Claude Code and can listen for events using on(). The error about attaching .catch(), which handles failures, has changed. It used to fire once registration had finished. It now fires when the event has already been set up, and says .catch() goes on the same statement as its on().
Why
Plugin authors may see this different error and need to keep .catch() on the same line of code as the on() it belongs to.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear whether attaching `.catch()` after registration is now allowed where it was not before.
Anthropic's release notes agree
Added support for mods calling on() inside their session.start hook, so hooks can be registered based on a fetch or MCP call