Skip to content

[BUG] "Notification" hook doesn't work in VS Code extension "native UI" mode #8985

@jsh9

Description

@jsh9

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions