Preflight Checklist
What's Wrong?
Claude Code version 2.0.8, in VS Code extension's "Native UI" mode.
The "Notification" hook doesn't work any more: when Claude Code pauses to ask for my intervention, the hook doesn't work, because I set up a hook to play a sound at that moment. I can't hear that sound any more.
But in the CLI mode (version 2.0.8), I could hear that sound.
What Should Happen?
"Notification" hook should be engaged.
Error Messages/Logs
Steps to Reproduce
Put the following into ~/.claude/settings.json:
{
"hooks": {
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "afplay -v 3 /System/Library/Sounds/Blow.aiff"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "afplay -v 3 /System/Library/Sounds/Bottle.aiff"
}
]
}
]
}
}
And do something that would make Claude Code ask for human intervention.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.8
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
It happened in the new "native UI" of the VS Code extension.
Preflight Checklist
What's Wrong?
Claude Code version 2.0.8, in VS Code extension's "Native UI" mode.
The "Notification" hook doesn't work any more: when Claude Code pauses to ask for my intervention, the hook doesn't work, because I set up a hook to play a sound at that moment. I can't hear that sound any more.
But in the CLI mode (version 2.0.8), I could hear that sound.
What Should Happen?
"Notification" hook should be engaged.
Error Messages/Logs
Steps to Reproduce
Put the following into
~/.claude/settings.json:{ "hooks": { "Notification": [ { "hooks": [ { "type": "command", "command": "afplay -v 3 /System/Library/Sounds/Blow.aiff" } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "afplay -v 3 /System/Library/Sounds/Bottle.aiff" } ] } ] } }And do something that would make Claude Code ask for human intervention.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.8
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
It happened in the new "native UI" of the VS Code extension.