[BUG] VS Code extension's native permission-prompt UI doesn't fire the Notification (permission_prompt) hook

Status Fixed / completed
Reported on v2.1.215
Maintainer reply None cached
Activity 2 comments · opened Jul 20, 2026 · closed Aug 19, 2026

Preflight Checklist

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

What's Wrong?

The VS Code extension's native permission-prompt UI does not fire the Notification hook (notification_type: permission_prompt) when Claude requests permission to run a tool. The identical bundled binary run directly in a plain terminal fires the same hook correctly for the same kind of permission request.

What Should Happen?

The Notification hook (permission_prompt) should fire consistently whether the permission dialog is rendered by the extension's own panel UI or by the terminal-based CLI, since both use the same underlying binary/engine.

Error Messages/Logs

None — this is a silent gap, not a crash or error. The configured hook command (writing to a file) simply never executes; no output, no log entry, no exception anywhere observed.

Steps to Reproduce

  1. Add a Notification hook with matcher permission_prompt to ~/.claude/settings.json that writes to a file when invoked.
  2. In the VS Code extension's Claude panel, ask Claude to run a shell command requiring approval (e.g. touch ~/test.txt).
  3. Leave the resulting permission popup unanswered for 90+ seconds.
  4. Observe: the hook never runs, no file is written.
  5. For comparison, run the extension's own bundled binary directly in a plain terminal (~/.vscode/extensions/anthropic.claude-code-<version>/resources/native-binary/claude) and repeat the same prompt: the hook fires as expected there.

Additional note: PreToolUse with matcher AskUserQuestion works correctly inside the extension — this is specific to the Notification/permission_prompt path for regular tool permission requests.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.215-darwin-arm64 (VS Code extension anthropic.claude-code), macOS 26.5

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗