GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(client): allow submitting empty multi-select answers by voltcrash · Pull Request #32013 · pingdotgg/t3code

Conversation

@voltcrash

@voltcrash voltcrash commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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
Before After

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.

All reactions
@voltcrash
fix(client): allow submitting empty multi-select answers
24c6e6d
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 6, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 6, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

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

  • pingdotgg/t3code#19659: Preserves explicit empty multi-select answers in the ACP form converter.
  • pingdotgg/t3code#26167: Introduces the shared pending-input resolver used by this change.
  • pingdotgg/t3code#26787: Rebuilds mobile answers at submission and accepts the shared answer construction behavior.

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: Passed 4

Check name Status Explanation
Title check Passed The title clearly identifies the change to allow empty multi-select answers.
Description check Passed The description covers the problem, change, scope, and verification. It includes evidence, test results, and verification limits.
Linked Issues check Passed [#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 Passed [#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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 6577c6b
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa214d4b-69e0-46b9-a707-90412c314bf5
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge GitCafe Production

juliusmarminge commented Nov 6, 2026

Copy link
Copy Markdown
Member

Thanks @voltcrash, this is a correct fix for the resolver. https://git.cafe/pingdotgg/t3code/pulls/32017 makes the same change to resolvePendingUserInputAnswer and also covers the paths around it: the server message path for recovered questions, Grok's answer encoder, and OpenCode 2's required multiselects. So I'm closing this one in favour of https://git.cafe/pingdotgg/t3code/pulls/32017. Your report and repro steps matched what we found.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 6, 2026
@voltcrash
voltcrash deleted the t3/fix-issue-31991 branch November 10, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Multi-select question with nothing checked cannot be submitted

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@voltcrash @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.