[DOCS] PermissionRequest hook in Hooks reference page, but not available in v2.0.42
Documentation Type
Unclear/confusing documentation
Documentation Location
https://code.claude.com/docs/en/hooks
Section/Topic
Hook Events > PermissionRequest
Current Documentation
PermissionRequest
Runs when the user is shown a permission dialog. Use PermissionRequest decision control to allow or deny on behalf of the user.
Recognizes the same matcher values as PreToolUse.
What's Wrong or Missing?
Using Claude code v2.0.42, hook "PermissionRequest" is not valid.
Running /doctor says PermissionRequest: "PermissionRequest" is not valid. Expected one of: "PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "SubagentStop", "PreCompact".
settings.local.json
"hooks": {
"PermissionRequest": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "powershell.exe -ExecutionPolicy Bypass -File .claude\\notify.ps1 -Title \"Claude Code\" -Message \"권한 승인이 필요합니다\""
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "powershell.exe -ExecutionPolicy Bypass -File .claude\\notify.ps1 -Title \"Claude Code\" -Message \"작업이 완료되었습니다!\""
}
]
}
]
}
Suggested Improvement
Document should remove invalid hook "PermissionRequest" section.
Impact
Low - Minor confusion or inconvenience
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗