Skip to content

feat(sessions): answer Claude's questions from the island - #5

Merged
MF-DEEV merged 1 commit into
mainfrom
feat/claude-sessions
Oct 22, 2026
Merged

MF-DEEV merged 1 commit into
mainfrom
feat/claude-sessions

Conversation

@MF-DEEV

@MF-DEEV MF-DEEV commented Oct 22, 2026

Copy link
Copy Markdown
Owner

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 PermissionRequest hook like any tool, with tool_input.questions as 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 replies deny with 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, answers keys 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

  • Model. ClaudePermission carries questions. 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.
  • Phase. A session with a question waits for input ("Needs you"), not for permission. The list row and the notice show the question.
  • Card. "Claude asks" shows each question with its header, options, descriptions and, once picked, an option's preview.
    • One single-choice question answers on click, as in the terminal, unless its options carry previews.
    • Otherwise the picks are sent together with Answer.
    • An answer can be written by hand (Return sends it); each is cut to 7,500 characters so the total fits.
    • Skip or ⌘N skips. ⌘Y never allows a question, and from the list neither shortcut touches one.
  • Docs. PRIVACY.md says questions and their options show even with previews off, and where answers go. README, PERMISSIONS.md and 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.
  • The .app bundle passes --selftest. The bare ./build/Vorssaint --selftest fails on "Antigravity bridge not bundled", which predates this change (723ca04).
  • End to end with the Developer build and throwaway Claude Code sessions, clicking on the island:
    • one question: Claude received "→ Banana", and again "→ Apple" after the review fixes;
    • two questions, one multiSelect: Claude received "Blue, Cheese, Olives";
    • Skip: Claude received "The user skipped the question from the Dynamic Island without answering."
  • Not tested end to end: typing an answer by hand (covered by unit tests).

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
MF-DEEV marked this pull request as ready for review October 22, 2026 13:35
@MF-DEEV
MF-DEEV merged commit a5b78d2 into main Oct 22, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant