Your notification hook now fires when a permission prompt sits unanswered for six seconds; one env var disables it.
What's wrong with this entry?
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.
- 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.
CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.229
Repositories can declare that all hooks are off
Both mention disable hook
-
v2.1.242
Managed hook skip message now says SDK callback hooks still run
Both mention disable hook