Skip to content

ACP question forms hard-capped at 4 fields; decline reaches the agent as a user cancel #6266

Closed

Description

@vadimb777

Summary

ACP elicitation forms are hard-capped at 4 fields. Any form with more fields is declined with:

The request was declined because the form has 8 fields and bb shows at most 4.

The agent then sees this decline as a user cancellation ("Ask tool was cancelled by the user"), so it cannot tell that bb rejected the form. It either gives up or retries with the same oversized form.

Environment

  • bb 0.47.1 (macOS arm64)
  • Agent: oh-my-pi (omp) via ACP

Root cause

server/dist/builtin-plugins/provider-acp/dist/host.js:

gu=4, ...
if (s.length > gu) return { kind: "unsupported", reason: `the form has ${s.length} fields and bb shows at most ${gu}` };

omp's ask tool emits 2 schema properties per question (the choice plus a free-text other). In practice that limits a single ask to 2 questions. Ordinary batches of 3–4 clarifying questions always fail.

Related: #6131 (optional fields count toward the 4-field limit). Fixing #6131 alone may not be enough: the cap itself is very low for normal multi-question forms.

Repro

  1. Run an omp (ACP) thread in bb.
  2. Make the agent call ask with 4 questions, each with 2–4 options.
  3. bb shows "The agent asked a question bb could not show", and the tool result is "Ask tool was cancelled by the user".

Expected

  • Forms with a reasonable number of questions render, either with a higher cap or paginated/stepper presentation for large forms.
  • When bb cannot render a form, the agent gets a distinct "unsupported/declined by client" error that includes the reason (e.g. the field limit), not a user cancel. That lets the agent split the request and retry.

Workaround

Raising gu to 32 in the copied plugin artifact (~/.bb/plugin-host-artifacts/provider-acp/<hash>/host.mjs) is a local workaround.

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Labels: providers, provider-acp, partial-repro.
    • Reproduction report: PARTIALLY REPRODUCED, with high confidence in the bb-side root cause.
    • Root cause: ACP counts every schema property against a shared four-question cap. Unsupported forms produce a detailed bb warning, but the agent receives only {"action":"decline"} without the reason. BB does not send cancel on this path; real omp's cancellation wording remains unverified.
    • Verification: Repeated on two clean checkouts of origin/main at a6fff60f5. The focused reproduction rejects six/eight-field forms while its four-field control passes; all three existing rejection/cancellation controls pass in both checkouts.
    • No PR: Larger-form support and actionable unsupported responses require shared-schema/protocol or product decisions, outside the simple-fix gate.
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