Skip to content

ACP question forms split an 'Other' free-text field into a separate required question #6031

Closed

Description

@VinSpee

Summary

When an ACP agent (omp) asks a multiple-choice question with an "Other (type your own)" option, bb's question tool shows the free-text answer as a second question. That second question must also be answered. Expected: one question with the choices, and free text as part of that same question.

Versions and environment

  • bb: source commit b143a22 (main). Desktop app 0.46.1 is installed locally; I did not test the live UI on it.
  • macOS 26 (darwin 25.2.0, arm64).
  • Provider: omp over ACP. Installed omp is 18.12.5. The <name>__other field naming was checked against omp 18.10.4 source, not the installed binary.

Steps to reproduce

Not reproduced in the live UI. Closest faithful repro, at the exact code path, on b143a22:

  1. Check out b143a22 and open packages/provider-bridge-acp.
  2. Call planAcpElicitation from src/elicitation.ts with:
{"mode":"form","message":"Which branch?","requestedSchema":{"type":"object","properties":{"branch":{"type":"string","title":"Branch","enum":["alpha","beta"]},"branch__other":{"type":"string","title":"Other"}}}}
  1. Observe two questions.

Did not reproduce with: a text-only __other field. That case is planned as its own question on purpose.

Expected vs actual

Actual (abbreviated from the repro output):

questions: [
  { id: "branch", options: [alpha, beta], allowFreeText: false },
  { id: "branch__other", prompt: "Other", allowFreeText: true }
]

Expected: one question branch with options alpha and beta, allowFreeText: true, and the typed "Other" answer returned as that question's value.

Evidence

What you ruled out

  • Not a duplicate: no open or closed issue or PR for __other or Other free text was found when filed.
  • Not provider-agnostic as far as I checked: only omp was examined.
  • Not verified in the live bb UI. The repro above is unit-level.

Suggested priority and effort

Medium. Every omp choice question with an Other option is split. Workaround: answer both questions. Effort: low, a small change in elicitation.ts with tests.

Checks

  • I could not reproduce in the live UI; the unit-level repro above is the closest available.
  • I searched open and closed issues for the same problem.
  • This body ends with > AGENT GENERATED and links the investigation thread.

AGENT GENERATED

Activity

  1. added theissue type on Oct 21, 2026
  2. added
    providers
    provider-acp
    partial-repro
    on Oct 21, 2026
  3. bb-slop-cop commented on Oct 21, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Low. Applied providers, provider-acp, and partial-repro.
    • Report: Reproduction and root-cause evidence.
    • Verdict: PARTIALLY REPRODUCED. Root-cause confidence: high for the planner mechanism; live omp requests and UI behavior remain unverified.
    • Root cause: The planner creates one question per schema property, disables free text for enum choices, and declines the entire form when any property lacks a decodable answer—even an optional text companion.
    • Proof: Two clean checkouts of trusted main b143a22 produce the same failure: expected one question, received two. The diagnostic and standalone-text controls pass; all five existing planner tests pass. The report includes the repeatable test and both logs.
    • No PR: Safe provider-specific response mapping is unverified; global suffix-based folding risks changing unrelated ACP forms. Closed, unmerged PR fix(acp): fold Other text fields into their choice questions #6032 was reviewed statically only.

    AGENT GENERATED

  4. Jehu commented on Oct 24, 2026

    @Jehu

    Confirmed in the live desktop UI — this fills the "live UI unverified" gap.

    Environment: bb Desktop 0.47.1 (macOS, arm64), provider omp/pi-coding-agent over ACP.

    Live observation: Agent sent an ask call with 2 questions (3 radio options each). The questionnaire panel rendered:

    • Header: "4 questions"
    • Tab row: Welches Dokument? · Other (type your own) · Was für eine Art Arbeit? · Other (type your own)
    • Progress: "1 of 4"

    Screenshot available on request.

    Source confirmation (matching the report's root cause):

    1. omp side, pi-coding-agent/src/modes/acp/acp-agent.ts, askDialog adapter (~line 697): for every question it emits two elicitation properties — q{index} (title = question text) and q{index}__other ({ type: "string", title: OTHER_OPTION }, with OTHER_OPTION = "Other (type your own)" from src/tools/ask.ts:51).

    2. bb side, provider-acp questionFor (bundled dist/server.js, bb 0.47.1): maps each form property to its own question (one tab per property, shortLabel derived from the property), so each __other companion becomes a standalone question.

    3. bb side, ask-user-question UI (dist/app.js): header = questions.length, tabs = one per question, progress = N of M — it renders exactly the 4 questions it received.

    Additional wrinkle: the panel then offers free text twice — bb already appends an inline "Other…" per question (the AskUserQuestion MCP bridge sets allowFreeText: true unconditionally), plus the synthetic __other tab. The synthetic tabs also make the form title ("Answer 2 questions", sent by omp as the elicitation title) contradict the tab count (4).

    Suggested fix (same direction as the report): in the provider-acp converter, recognize string properties keyed *__other (title "Other (type your own)") and fold them into the sibling question as allowFreeText: true + map the response back into freeText, instead of emitting a separate question.

  5. added a commit that references this issue on Oct 28, 2026
    5d98fed
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

    partial-reproprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions