Skip to content

Submit on a remote answer unless text is being typed under the highlight - #449

Merged
ilovepixelart merged 1 commit into
mainfrom
fix/question-remote-submit-guard
Nov 15, 2026
Merged

ilovepixelart merged 1 commit into
mainfrom
fix/question-remote-submit-guard

Conversation

@ilovepixelart

Copy link
Copy Markdown
Owner

A remote answer that completes a question batch submits the form unless text is being typed. The check covered every question whose field held text with its typing flag set, and that flag stays set after Enter confirms a field and advances.

Steps Before After
Q1 multiSelect: Down, Down, xy, Enter; remote answers Q2 form stays open on the review, offers closed submits User wrote: xy and the remote answer
Q1 multiSelect: Down, Down, zz, Up; remote answers Q2 submits submits (now covered by a test)
Q1 text confirmed, edited without Enter; remote answers Q2 stays open stays open

unconfirmedText in extensions/question.ts is applied to the question under the highlight only.

  • npm run check passes (Biome, strict tsc, Vitest)
  • Tests cover the change

The form stayed open after a remote answer completed the batch whenever
any question's field held text and its typing flag was set. The flag
stays set after Enter confirms a field and advances, so a multiSelect
answered with typed text ("xy", Enter) kept the form open when a remote
answer then settled the last question: the offers were closed, every tab
showed answered, and the call waited for a local Enter.

The check now looks only at the question under the highlight. Two tests
cover it: the confirmed multiSelect text case, and text left in a field
the highlight has moved away from.
@sonarqubecloud

Copy link
Copy Markdown

@ilovepixelart
ilovepixelart merged commit ef4cea7 into main Nov 15, 2026
13 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