What
When Claude Code runs behind an SDK or stream-json host and asks that host for tool permission, a 6-second timer now fires your Notification hook with notificationType: "permission_prompt" and the message Claude needs your permission to use <tool>. It only fires if the request is still pending at 6 seconds, so answering promptly produces no notification. Set CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS to turn it off.
Details
- Covers both regular tool-permission requests and the WebFetch domain-approval request.
- The timer is cancelled the moment the request resolves or rejects, in both the success and failure paths.
- Neither the helper nor the environment variable existed in the previous build.
Evidence
` Claude needs your permission to use ${r} `
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleCLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this build
New in this build: CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS