chore(hooks): notify-attention — bell + OSC 777 toast when Claude needs input

Notification hook (permission_prompt|idle_prompt|agent_needs_input|
elicitation_*) returns BEL x2 + OSC 777 via the terminalSequence JSON
field (hooks have no controlling TTY). Client side over Remote-SSH:
VS Code accessibility.signals.terminalBell sound:on for the beep,
wenbopan.vscode-terminal-osc-notifier extension for the Windows toast.
This commit is contained in:
Bastien Chanot
2026-09-01 15:32:18 +02:00
parent 726464f387
commit 1d7faa32b5
2 changed files with 37 additions and 0 deletions
+13
View File
@@ -273,6 +273,19 @@
]
}
],
"Notification": [
{
"matcher": "permission_prompt|idle_prompt|agent_needs_input|elicitation_dialog|elicitation_url_dialog",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/notify-attention.sh",
"timeout": 5,
"statusMessage": "Ringing terminal bell..."
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [