PreToolUse and PostToolUse Hooks Not Triggered with `*`
Bug Description
the hooks PreToolUse and PostToolUse do not work when the matcher is set to *, which would imply that all would work. Setting to `` does work. Not sure if this is a bug, but it seems that the other hooks worked with this. "PostToolUse": [
{
"hooks": [
{
"command": "python3 /Users/jake/.claude/capture_tool_data.py --event=posttool --config=/Users/jake/.claude/hook_config.json",
"type": "command"
}
],
"matcher": "*"
}
],
"PreToolUse": [
{
"hooks": [
{
"command": "python3 /Users/jake/.claude/capture_tool_data.py --event=pretool --config=/Users/jake/.claude/hook_config.json",
"type": "command"
}
],
"matcher": "*"
}
],
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.44
- Feedback ID: 81db4b27-aa4c-42f0-8a07-63d0a2e5fb9f
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:892:11)\n at execSync (node:child_process:964:15)\n at wD (file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9350\n at Q (file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at uC (file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8496)\n at hC (file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7361)\n at wB (file:///Users/jake/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11970)","timestamp":"2025-07-08T13:23:05.770Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗