Repository navigation
Render AskUserQuestion prompts as an option picker with keyboard shortcuts - #22
Merged
currentbits merged 1 commit intoAug 14, 2026
Conversation
When the agent asks a question (AskUserQuestion control request), render an option picker like the permission prompt instead of raw JSON + Accept/Deny: numbered options answerable by click or 1-9 keys, multi-select with an Answer button, an Other free-text field, and Dismiss to decline. The chosen labels ride back to the CLI as updatedInput.answers keyed by question text. Co-Authored-By: Claude Fable 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/when-an-llm-asks-a-question-we-should-ha-5ce3a6
branch
October 3, 2026 16:07
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.
What
When an agent asks a question via the
AskUserQuestiontool, the thread view previously fell through to the generic permission card: raw JSON input with Accept / Accept all / Deny — none of which actually answer the question. This PR renders a proper question screen instead, matching how the accept/approve prompt works today:,.Answered: <labels>instead ofAllowed: AskUserQuestion.How
The Claude CLI already routes
AskUserQuestionthrough the samecan_use_toolcontrol request as any permission prompt, so this rides the existing pipe end to end:electron/runner.js:questionInfo()attaches sanitizedquestionstoPendingPermissionInfo;respondPermissionaccepts an optionalanswersmap and merges it into the allow response asupdatedInput.answerskeyed by question text (the shape the CLI expects).src/components/ThreadView.tsx: newQuestionPromptcomponent, rendered whenpendingPermission.questionsis present; non-question permissions are untouched.src/shared/ipc.ts,useCoder.ts,App.tsx.Testing
New electron test:
questionfake-CLI scenario asserting the parsed questions surface to the renderer and the chosen answer round-trips inupdatedInput.answersover the control protocol.New renderer suite
test/questionPrompt.test.tsx(5 tests): render, instant click-answer, number-key answer, multi-select collect + Answer, Dismiss denies.tsc --noEmitclean; full electron (680/692) and renderer (711/712) suites show no new failures — the remaining ones (orch-server, app-memory) reproduce on a clean tree.PR created by the Claude Code agent