Repository navigation
feat(sessions): answer Claude's questions from the island - #5
Merged
Merged
Conversation
AskUserQuestion reaches the island through the PermissionRequest hook. Its questions show on the session's page with the answers Claude wrote: one single-choice question answers on click, otherwise picks are sent together, and an answer can be written by hand or the question skipped. The answers go back in the question's own input, as Claude Code expects.
MF-DEEV
marked this pull request as ready for review
October 22, 2026 13:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When Claude asks a question with ready-made answers (the AskUserQuestion tool), the question now shows in the Dynamic Island and can be answered there instead of in the terminal.
How it reaches the island
AskUserQuestion runs the
PermissionRequesthook like any tool, withtool_input.questionsas Claude wrote them. The island answers with{"behavior":"allow","updatedInput":{<the same input>,"answers":{"<question text>":"<label>"}}}. A multiSelect question takes a list of labels, and any text not among the labels stands as the person's own answer. Skipping repliesdenywith a message saying the question went unanswered.Claude Code 2.1.308 checks the answer (read from its binary): every other key must equal the input it sent,
answerskeys must be the question texts, a list is taken only for multiSelect, and all answers together must stay within 32,768 UTF-16 units.Change
ClaudePermissioncarriesquestions. The question's raw input is kept beside the waiting hook and handed back whole with the answers. A question the island can't read is left to the terminal and never allowed without answers.PRIVACY.mdsays questions and their options show even with previews off, and where answers go. README,PERMISSIONS.mdand the hooks hint mention questions. The spike notes record the hook facts.Testing
./build.sh --test: all 114,073 checks pass. New cases cover decoding questions, the reply's shape, skipping, building answers (order, own answers, the length cap at whole characters) and the waiting phase..appbundle passes--selftest. The bare./build/Vorssaint --selftestfails on "Antigravity bridge not bundled", which predates this change (723ca04).