Skip to content

ACP bridge drops model descriptions, so the model picker shows indistinguishable duplicate rows #2062

Description

@bradhallett

Summary

When an ACP agent advertises its models as config-option select options, it sends a description per model alongside value and name; bb's wire schema carries it through untyped, but the ACP bridge hard-codes description: "" when building its model catalog. When two advertised models share a display name (e.g. two OMP providers both surfacing "GLM 4.7"), the desktop model picker renders two identical rows — the underlying provider/model values differ but are invisible anywhere in the UI.

Versions and environment

  • bb from source at commit 00561091a3beba712e00acc5c4544b6a6c483220 (fork bradhallett/bb); not tested against a shipped release — see honesty note in Steps.
  • macOS (Darwin 27, Apple Silicon, arm64).
  • Provider: ACP agent omp via omp acp, auto-detected and registered as provider acp-omp (known-acp-agents.ts). Any ACP agent that sends description on model select options is affected; omp is the concrete case observed.
  • omp's agent behavior (source external to this repo, cited as behavior not bb code): its ACP mode buildConfigOptions sends each model select option as { value: "provider/modelId", name: <display name>, description: "provider/modelId" }.

Steps to reproduce

Live-UI path (from-source code-path evidence at the commit above; I could not reproduce on a shipped release, per the agent rules in docs/filing-issues.md §Rules for agents — this report is unverified against a release):

  1. Install an ACP agent that sends description on each model config-option select option — e.g. omp (omp acp; bb exposes it as provider acp-omp).
  2. Have the agent advertise two models whose select-option name is identical but whose value/description differ (omp does this in practice when two providers surface the same display name, e.g. "GLM 4.7").
  3. Open the model picker for a thread using that provider. Two rows show the same label with no distinguishing text.

Faithful repro without a live agent — unit test at the exact code path, on fork branch acp-model-description of bradhallett/bb: plugins/provider-acp/src/bridge/model-catalog.test.ts, case "keeps per-option descriptions that disambiguate duplicate model names". It feeds config options with descriptions through buildModelCatalogFromConfigOptions and asserts the catalog preserves them. Fails at 00561091 (description arrives ""); passes with the two-line bridge fix.

Expected vs actual

Actual (traced from source at 00561091; no screenshot captured): the picker shows two rows with identical labels and no secondary text, because AvailableModel.description arrives empty for every config-option-advertised model, and the desktop option mapping drops the field anyway.

Expected: each row distinguishes itself with the description the agent supplied — the wire schema already passes it through, and the mobile picker already maps and renders it (links in Evidence). The desktop PickerOption type already has an optional description slot.

Evidence

All permalinks at base commit 00561091a3beba712e00acc5c4544b6a6c483220:

  • Drop site: model-catalog.ts#L283 — buildModelCatalogFromConfigOptions hard-codes description: "".
  • In-repo precedent the config-options path merely omits: the sibling session-models path model-catalog.ts#L313 already maps model.description ?? "".
  • Wire schema: wire.ts#L235-L240 — acpConfigOptionSelectOptionSchema types only value/name; .passthrough() carries the agent's description through untyped.
  • Required downstream field: provider-types.ts#L21 — description: z.string() on the available-model schema.
  • Desktop drops it at mapping: useThreadCreationOptions.ts#L594-L622 — model options carry value/label/routeProviderId only.
  • Desktop render slot already exists: OptionPicker.tsx#L44 — PickerOption.description?: string; model options never populate it.
  • Mobile maps it: execution-options.ts#L115; mobile renders it: ModelReasoningPicker.tsx#L236 (subtitle={option.description || undefined}) — mobile shows nothing today only because the bridge sends "".
  • CLI unaffected: provider.ts#L143-L160 — bb provider models prints the raw model id, so no ambiguity there.

What you ruled out

Suggested priority and effort (optional)

Low–medium: hits any ACP agent whose advertised models collide on display name; no in-UI workaround once collided (the distinguishing provider/model values are invisible); no data or work lost. Effort likely Low — the bridge change is two lines with in-repo precedent, plus a small desktop mapping/render addition.

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED: by <model> and links the thread or report.

Prototype (per CONTRIBUTING — issue first, no PR until sign-off): fork branch acp-model-description on bradhallett/bb carries the complete change — the two-line bridge fix, desktop picker mapping/render as secondary row text (matching mobile), and regression tests for the catalog, desktop picker, and mobile mapping; typecheck, tests, and lint pass on the branch.

AGENT GENERATED: by zai/glm-5.3

Activity

  1. added theissue type on Aug 21, 2026
  2. added
    providers
    provider-acp
    ui
    on Aug 21, 2026
  3. SawyerHood commented on Aug 21, 2026

    @SawyerHood
    Collaborator

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2062.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): buildModelCatalogFromConfigOptions in plugins/provider-acp/src/bridge/model-catalog.ts#L283 hard-codes description: "" (ignoring the option.description the ACP agent sends through the passthrough schema), and the desktop ModelReasoningPicker renders only displayName with no collision disambiguation, so models sharing a display name (omp exposes 15 such collisions, e.g. github-copilot/gpt-5.1 vs openai-codex/gpt-5.1) are visually identical.
    • Linked PR review: Preserve ACP model descriptions in the catalog and pickers #2063 → REQUEST CHANGES — The bridge hunks (wire.ts description: acpOptionalString; model-catalog.ts option.description ?? "") are correct and tested, but the new MenuRowButton wrapper (flex min-w-0 flex-1 flex-col) inherits the default text-align:center, so every model AND reasoning row in the picker becomes horizo
    • Proposed fix: (1) Bridge: type description: acpOptionalString on acpConfigOptionSelectOptionSchema (wire.ts#L233-L238) and map description: option.description ?? "" in buildModelCatalogFromConfigOptions (model-catalog.ts#L283), mirroring buildModelCatalogFromSessionModels; no HOST_DAEMON_PROTOCOL_VERSION bump needed since the field is already a required string. (2) Desktop: in useThreadCreationOptions modelOptions/moreModelOptions and the ModelReasoningPicker preview mappings, detect duplicate labels and only for colliding rows set the existing qualifier slot (already used for Pi routeProviderId and a…
    • Caveats: Reproduced on base fcada5a and with real omp 16.3.10 (the colliding names here are GPT-5.x github-copilot vs openai-codex rather than the reporter's 'GLM 4.7', same mechanism). origin/main (b2e8035) has no later commits touching the relevant files, so still unfixed. PR Preserve ACP model descriptions in the catalog and pickers #2063 was tested by merging it onto fcada5a (clean merge; its branch is 73 commits behind). The layout-regression finding co…

    The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at the base commit, and repro artifacts. It was independently re-run by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Opus 5

  4. added
    confirmed-repro
    on Aug 21, 2026
  5. self-assigned this
    on Aug 21, 2026
  6. Waseemilyas commented on Sep 25, 2026

    @Waseemilyas

    Still reproducible on 0.43.4 with omp 18.3.0: searching "astra" in the acp-omp picker shows four identical "GPT-6 Astra" rows (openai-codex/…, opencode-zen/…, commandcode/…, devin/…), one of which returns 403 Model access is disabled, so picking the wrong row silently fails over to another model.

    The prototype for #4367 also fixes this for omp on current main (acp-large-model-catalogs): it keeps the option description in buildModelCatalogFromConfigOptions, and the omp dialect exposes the provider/ prefix of omp's model ids as routeProviderId, the qualifier the desktop picker already renders (and searches) for Pi. Verified live on 0.43.4: rows read GPT-6-Astra · openai-codex, GPT-6 Astra · opencode-zen, and so on. No desktop picker change is needed.

    AGENT GENERATED

  7. added a commit that references this issue on Oct 10, 2026
    fe1a02d
  8. mancunianez commented on Oct 22, 2026

    @mancunianez

    The closure via #5266 doesn't appear to fix the reported UX. Verified against main @ 9c3c56f (the same commit the current desktop-nightly build targets):

    • No producer of routeProviderId anywhere in the ACP path (packages/provider-bridge-acp, plugins/provider-acp — zero matches), so the MenuRowButton qualifier slot stays empty for ACP models; it only renders for Pi.
    • Desktop picker options carry only label + routeProviderId (apps/app/src/hooks/thread-creation-options/model-catalog-selection.ts:59-78). The bridge preserves AvailableModel.description, but nothing in the app renders it, and row tooltips repeat the label without the raw id (ModelReasoningMenu.tsx:669-679).
    • Still reproducible with omp (acp-omp, desktop app, 2026-10-22): searching "glm-5.3" in the model picker returns nine near-identical rows — "Glm-5.3" (twice), "Glm-5.3 Flash", "Glm-5.3-Flash", "Glm-5.3-Flashx", "GLM 5.3", "GLM 5.3 Flash", "GLM 5.3 Prime", "GLM 5.3 batch" — with no visible provider/route; the two "Glm-5.3" rows are indistinguishable in text, tooltip, and accessible name, exactly as reported.

    #5266's description doesn't mention per-row disambiguation anywhere — this issue looks like it was swept up in its 18-item Fixes list. The closed PRs already carry the designs: #2226 (collision-only inline qualifiers) and #2465 (provider-grouped headers with curated route names, raw-id tooltips, and a trigger token for ambiguous selections). #4367's prototype branch additionally demonstrates Model · route qualifiers for omp via routeProviderId.

    Current workaround for anyone hitting this: the picker's search aliases include the raw model id, so searching zai/glm filters to the exact route even though the label never shows it.

    AGENT GENERATED

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

Metadata

Metadata

Assignees

Labels

confirmed-reproprovider-acpprovidersui

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions