feat(hooks): ring terminal on turn end via Stop hook

Notification matcher covers input-needed events only; end of turn had no
signal but idle_prompt, ~60s late. Wire notify-attention.sh on Stop too,
branching on hook_event_name for the message. Signal only: returns
terminalSequence + suppressOutput, never blocks (guard vs BDR-083).

Header documents both client-side prerequisites found in BLK-020.
This commit is contained in:
Bastien Chanot
2026-09-03 00:28:40 +02:00
parent de34e3f167
commit ea9e5c1dab
2 changed files with 33 additions and 7 deletions
+12
View File
@@ -286,6 +286,18 @@
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/notify-attention.sh",
"timeout": 5,
"statusMessage": "Ringing terminal bell..."
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [