Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate. ([Bug]: OMP questions show as two steps with no options, and the question text runs out of the card #23505 and Pending-question panel doesn't show the question text, only the selected option #27053 are closed and cover single-choice only.)
- I included enough detail to reproduce or investigate the problem.
Area: apps/server
Steps to reproduce
- Use the OMP (oh-my-pi) ACP provider via acpRegistry.
- Have the agent call its
asktool with an HTML form that contains a checkbox group of two or more options, e.g.<input type="checkbox" name="scope" value="a" checked> A,<input type="checkbox" name="scope" value="b" checked> B. - OMP sends an
elicitation/createform withscope(type: array,items.anyOf) plus an optional companionscope__other(type: string, no default, not required). - In the pending-question panel, keep the preselected options, move to the next step, and leave the "Other" field empty.
Expected behavior
The optional companion text field can be left blank, and the form submits with the selected options, as the composer placeholder says ("leave this blank to use the selected option").
Actual behavior
parseElicitationForm(packages/provider-acp/src/server/elicitationForm.ts) folds<id>__otheronly into single-choice fields (fix(acp): ask forms with a free-text companion field show one step per question #34867). For multi-select it stays a separate text-only question.resolvePendingUserInputAnswer(packages/client-runtime/src/state/pendingUserInput.ts) returnsnullfor a text question with a blank answer and noinitialAnswer.buildPendingUserInputAnswersthen returnsnullfor the whole form, so it cannot be submitted until the user types something into "Other".- Whatever the user types is sent as free text. Users who type a filler answer just to get past the step end up sending unintended answers. On nightly the filler text is appended to the multi-select answer:
{"q1":"a","q2":"yes","q3":["x","y","z","<filler text>"]}. On 0.1.9, where single-choice is not folded either, the filler text replaced every radio answer.
Impact: Major degradation or frequent failure
Version or commit: reproduced on v0.1.10-nightly.20261114.4709 (t3 serve, darwin-arm64, fresh --base-dir, real OMP 18.20.0 agent) and on 0.1.9 desktop. Single-choice questions are fixed on nightly; the multi-select companion step still blocks submission.
Environment: macOS 26 (darwin 25.6.0), arm64, T3 Code (Beta) desktop 0.1.9, OMP 18.20.0 via acpRegistry.
Possible fix
Treat an optional (required does not include it) text property as answerable with an empty string. Alternatively, set initialAnswer: "" for companion/optional text questions so that a blank answer resolves to "" (OMP already ignores a blank companion). Folding multi-select needs the client draft to keep selections alongside custom text (noted in #34867 "Not in this change").
Workaround: OMP does not add the companion for <select> / <select multiple>, so agents can use those instead of radio/checkbox groups.
Activity