GeezerVison is showing github.com — fix(client): allow submitting empty multi-select answers by voltcrash · Pull Request #32013 · pingdotgg/t3code
Conversation
Problem
Closes #31991. Leaving every checkbox unchecked on a multi-select question disables Next/Submit, even when the user wants none of the options. This also happens after unchecking the last selected option.
Change
Resolve an empty multi-selection as [] instead of an unanswered null. The shared resolver serves web, desktop, and mobile. Single-select validation and custom-answer/attachment precedence stay the same; no wire or provider changes are needed.
Scope and approval
This qualifies for CONTRIBUTING.md’s small, focused obvious-bug exception: it corrects the existing multi-select answer resolver and adds regression coverage for that one defect. It adds no setting or workflow.
Verification
- Added regression assertions first and observed two failures on the original resolver: untouched and deselected-last answers both returned
null. With the fix, vp test run packages/client-runtime/src/state/pendingUserInput.test.ts apps/web/src/pendingUserInput.test.ts passes all 19 tests.
vp run check:changed passes format, lint, both knip checks, typechecking of seven affected packages, and the 11 tests beside the change.
- Real web client, isolated worktree
.t3 state on Linux: reproduced disabled Next before the fix. Afterward, advanced without selecting anything, checked/unchecked the last option on question two, and submitted. The free Replay agent resumed and completed; the persisted request was resolved with { "extras": [], "exports": [] }. Temporary replay fixtures supplied two multi-select questions and were restored before checks/review; they are not in this PR.
- Native mobile and a live Claude turn were not exercised. Claude’s existing adapter converts empty arrays to its string answer format. Recovered/message-mode questions have separate server validation of empty answers; that path is outside this live-question fix.
| Before: no checks, Next disabled |
After: no checks, Next enabled |
 |
 |
Recording: advance, select/unselect, submit, and agent completion
Reviewed with review-loop: 1 round with GPT-6.1 Sol on xhigh. Reviewer verdict: approved. No blocker or should findings; the separate message-mode limitation above was left for follow-up.
Created with GPT-6.1 Sol in the Codex harness (T3 Code).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 24c6e6d
Macroscope's review found this PR approvable — Multi-select questions can now be submitted with no options selected on web and mobile. Existing attachment blocking and single-select behavior remain unchanged, and submission remains user-driven.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The pending input resolver now returns an empty array for a multi-select question with no selected options when no custom answer or attachments affect the result. Tests cover this behavior and related single-select, custom-answer, attachment, and option-toggle cases.
Changes: Pending input answers
| Layer / File(s) |
Summary |
Resolve empty multi-select answers packages/client-runtime/src/state/pendingUserInput.ts, packages/client-runtime/src/state/pendingUserInput.test.ts |
The resolver returns the selected-option array when a multi-select question has no custom answer and no attachments. Tests cover empty multi-select answers, unanswered single-select questions, custom text, attachment outcomes, and removing the final selected option. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
Suggested labels: size:XS
Suggested reviewers: t3dotgg
Merge Risk: Low · up to 24c6e
-
Recovered questions can reject an empty selection after submission. Users can retry with an answer; the remaining risk is bounded.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the change to allow empty multi-select answers. |
| Description check |
 |
The description covers the problem, change, scope, and verification. It includes evidence, test results, and verification limits. |
| Linked Issues check |
 |
[#31991] The shared resolver returns [] for an empty multi-select answer. The web progress logic accepts any non-null answer. Tests cover untouched and deselected-last answers, plus single-select an… |
| Out of Scope Changes check |
 |
[#31991] The resolver change and regression tests address empty multi-select answers. No unrelated changes appear in the PR summary. |
Full details: Linked Issues check
-
Explanation
[#31991] The shared resolver returns [] for an empty multi-select answer. The web progress logic accepts any non-null answer. Tests cover untouched and deselected-last answers, plus single-select and custom-answer behavior. The PR reports successful web submission with a Replay agent. A live Claude turn was not tested.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 6577c6b and 24c6e6d.
Files selected for processing: 2
-
packages/client-runtime/src/state/pendingUserInput.test.ts
packages/client-runtime/src/state/pendingUserInput.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|