Skip to content

[Bug]: OMP multi-select questions still need text in the separate "Other" step before the form can be submitted #36984

Closed

Description

@ogzerber

Before submitting

Area: apps/server

Steps to reproduce

  1. Use the OMP (oh-my-pi) ACP provider via acpRegistry.
  2. Have the agent call its ask tool 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.
  3. OMP sends an elicitation/create form with scope (type: array, items.anyOf) plus an optional companion scope__other (type: string, no default, not required).
  4. 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>__other only 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) returns null for a text question with a blank answer and no initialAnswer. buildPendingUserInputAnswers then returns null for 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions