fix: Add matcher to SessionEnd hook

- Added matcher: "*" (required for plugin hooks)
- Added "bash" prefix to command
- This should fix the hook not triggering on /exit

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-06 23:36:02 +00:00
parent f0b48e0162
commit eeebddca22

View File

@@ -3,10 +3,11 @@
"hooks": { "hooks": {
"SessionEnd": [ "SessionEnd": [
{ {
"matcher": "*",
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-end-reminder.sh", "command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-end-reminder.sh",
"timeout": 5 "timeout": 5
} }
] ]