[BUG] plugin Notification hook command may not be executed
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I created claude code plugin for hooks.Notification hook command may not be executed.
I created test plugin for hooks.
https://github.com/byplayer/claude-code-byplayer-market/
and run the following command in claude code to install plugin.
/plugin marketplace add byplayer/claude-code-byplayer-market
/plugin install test-hooks@byplayer-marketplace
This plugin write message with timestamp to ~/claude-code-plugin-hooks.log as bellow.
https://github.com/byplayer/claude-code-byplayer-market/blob/main/plugins/test-hooks/hooks/hooks.json
2025/10/17 13:50:02 Stop Hook Triggered
When claude code callded Notification event, this hook command may not be executed, because Notification log was not printed.
What Should Happen?
When claude code callded Notification event, this hook command may not be executed, because Notification log was not printed.
Error Messages/Logs
debug log of claude code.(claude --debug).
...
[DEBUG] Registered 2 hooks from 1 plugins
...
[DEBUG] Getting matching hook commands for Notification with query: undefined
[DEBUG] Found 1 hook matchers in settings
[DEBUG] Matched 1 unique hooks for query "no match query" (1 before deduplication)
...
[DEBUG] Getting matching hook commands for Stop with query: undefined
[DEBUG] Found 1 hook matchers in settings
[DEBUG] Matched 1 unique hooks for query "no match query" (1 before deduplication)
However, `~/claude-code-plugin-hooks.log` was written only Stop event.
2025/10/17 13:50:02 Stop Hook Triggered
Steps to Reproduce
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.21 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗