What
When Claude Code asks permission to use a tool, a 6-second timer starts; if the prompt is still waiting, a notification hook fires with notificationType permission_prompt and a message naming the tool. The timer is cancelled the moment you answer. Set CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS to turn it off; it is on by default.
Details
- The timer is unref'd, so it never keeps the process alive on its own.
- The variable is newly registered in the environment-variable schema as a boolean.
Evidence
CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS
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