AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 22, 2026, 01:00 JST

Claude Code 2.1.283: PermissionRequest hook answers AskUserQuestion

Send on LINE
Claude Code 2.1.283: PermissionRequest hook answers AskUserQuestion

3 Key Points

  1. What happened

    In Claude Code 2.1.283, a PermissionRequest hook receives the AskUserQuestion tool_input, adds an answers map of question text to chosen option label, and returns it as updatedInput with behavior: "allow".

  2. Why it matters

    Answering this way lets a session skip the question screen entirely — the test hook picked the last option each time and Claude continued without prompting — though a bare allow without answers leaves the question unanswered.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

FAQ
Does returning allow alone answer the question?
No. If an approval hook or app returns only allow for AskUserQuestion, the question stays unanswered and the session keeps waiting.
What if I answer both on the phone and in the terminal?
That is fine — whichever answer comes first is the one used. The hook itself blocks until it returns, so a remote path must reply before the hook's timeout, or it should give up early so the terminal confirmation screen stays usable.
How do you try it?
Register the hook under hooks.PermissionRequest in a settings file and run claude --settings test-settings.json. A minimal shell hook that always selects the last option is included, for testing.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleHuang unveils DSX Pod, a 14-day plug-in AI factory