[BUG] When `AskUserQuestion` is used, `PermissionRequest` hook is triggered.
Resolved 💬 5 comments Opened Dec 26, 2025 by hiragram Closed Mar 28, 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?
When Claude Code calls the UserAskQuestion tool, the PermissionRequest hook is triggered. The question can then be approved or denied by the program that called the hook, just like other approval requests (Claude does not expect the answer to the question to be approve/deny). Asking the user a question using UserAskQuestion is not the same as "requesting permission," and it seems like a bug that the PermissionRequest hook is triggered when UserAskQuestion is called.
What Should Happen?
PermissionRequest hook should not be triggered when Claude calls UserAskQuestion tool.
Error Messages/Logs
Steps to Reproduce
- Setup
PermissionRequesthook with a script which always returndenyresponse. - Ask Claude to ask me something usign
AskUserQuestiontool - Questions will be shown but automatically dismissed by hook
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗