Skip to content

Separate provider model state from selection intent, with native composer controls #4433

Description

@samanthar0se

The workflow

Use an agent provider that can choose its own model while a session is running, while retaining BB's native model picker as both an accurate display and a way to make an explicit choice:

  1. Start a thread with the provider's defaults, optionally choosing a provider mode.
  2. Show the model and reasoning the provider reports using for the main session.
  3. Choose model A manually; apply that choice once.
  4. Let a subsequent provider decision change the model to B, and update the picker to B.
  5. Send another message, drain a queued message, or retry a failed prompt without accidentally restoring A.

The desired model choice is an assignment, not a persistent pin. Provider routing remains associated with the thread on every request; repeating a model assignment is the part that needs different semantics.

Also give a provider's primary session choice a native position before Model in the composer. Polytoken calls this a Facet; ACP agents may expose a mode or primary agent. BB should own placement and interaction without interpreting provider-specific modes.

What happens today

The Polytoken plugin uses a synthetic Managed by Polytoken / Medium model entry and separate plugin controls. The synthetic effort is not a measurement of the running model. Ignoring BB's native model/effort input avoids repeatedly overriding provider choices, but leaves the native picker unable to show or change the actual model.

Current upstream source has the constraints behind this workaround:

  • The existing-thread composer adds the selected model and reasoning to prompt request fields. Its activeModel is a selected catalog entry, not a provider observation. Composer request construction.
  • Omitting model in the frontend is insufficient: server resolution falls back through the thread override, last requested execution, and project defaults, and requires a concrete model. Execution resolution.
  • Queued-message records require model and reasoning values. Queue representation.
  • The generic bridge has no session-configuration read/set operation or authoritative configuration-update notification. Requests, notifications.
  • Composer customizations offer actions/banners rather than a native execution-control position; generic plugin actions are suppressed in compact layout. Composer contract, compact layout.

Verification scope

Research date: 2026-09-25. Local environment: macOS 26.6.2, Node 26.8.2, BB CLI 0.43.3 with a custom local integration checkout, Polytoken 0.8.14. The relevant BB paths were subsequently rechecked against public main at d81d3d1. BB desktop 0.44.0 was the latest release at that check; a live UI repro on that release was not performed. This is a feature proposal supported by current source inspection and a real provider experiment, not a claim of a reproduced 0.44.0 UI regression.

An isolated Polytoken daemon was exercised without submitting inference prompts. The relevant observed behavior was:

Operation Confirmed outcome
Choose a model/effort; enter another unpinned facet Selection survives
Enter a facet with a model/effort pin Pin is applied
Override the model inside a pinned facet Override is accepted
Select the already-active facet HTTP 409 no_change; override survives
Leave and re-enter a pinned facet Pin is reapplied
Crash/resume with an overridden model Model and effort survive in retained session history

Thus “every facet switch resets the model” is not an accurate contract. BB should follow reported provider state rather than reproduce provider-specific resolution rules.

What you would expect

An opt-in provider-owned selection contract with separate read and write meanings:

  • Observed configuration: current main-session model, actual reasoning when available, related options, and freshness. Receiving it updates the display, not user intent, project preferences, or the next prompt's assignments.
  • Explicit change: a user choice through UI/SDK/CLI becomes an acknowledged configuration operation, with rejected and unknown-outcome states. Subsequent provider changes remain authoritative.
  • Provider-default dispatch: an ordinary prompt follows current provider state. New-thread default means no initial assignment, not a synthetic model ID. Explicit startup or queued choices remain distinguishable and are consumed at a defined lifecycle point.
  • Native provider controls: an ordered mode/facet control beside the model picker, with keyboard and compact/mobile access. The provider supplies names and values; BB supplies the UI. Reuse existing ACP/mode work rather than introduce a Polytoken-only slot.

Example layout:

New draft:       Facet: Plan ▾     Model: Provider default ▾
Existing thread: Facet: Plan ▾     gpt-6-sol · High ▾

Keep existing host-controlled providers' behavior unchanged unless they opt in. Unknown, unsupported, provider-default, and explicitly disabled reasoning must not all be represented by a pretend medium or none value.

Acceptance criteria:

  • Provider observations update the native picker without creating assignments or persistent overrides.
  • Manual selection works through UI, SDK, and CLI, with confirmed dependent model/effort/options state.
  • Ordinary follow-up prompts do not reapply a displayed or previously selected model.
  • Queues and retries preserve explicit intent separately; already-applied choices are not replayed over subsequent provider changes.
  • Startup mode resolution precedes explicit initial model/effort selection.
  • Stale/replaced sessions and subagents cannot overwrite the main session's state; reconnect reconciles it.
  • Unavailable catalogs or absent reasoning support do not manufacture a model/effort assignment.
  • Mode/facet selection has first-class placement and accessible compact behavior; provider handoff previews do not mutate the source session.
  • A Polytoken adapter and an ACP configuration fixture/adapter exercise the shared contract.
  • Legacy providers, old bridges, and existing threads retain defined migration and compatibility behavior.

Context and alternatives

This is shared provider infrastructure. ACP already describes ordered session configuration choices, semantic model/mode/reasoning categories, dependent results, and provider-originated updates. BB uses ACP model selection today but classifies current_mode_update and config_option_update as raw-event noise. ACP configuration specification, BB visibility classification.

Related issues, reviewed in open and closed states:

Changing the label, adding a slot, feeding observations into experimental_setSelection, or overwriting thread.modelOverride does not separate intent from observation. Merely omitting model at the composer also leaves the server/queue fallback behavior intact.

Scope should start with observation, explicit model/effort commands, and a native provider-control position. Persistent pins, an arbitrary provider form framework, and universal “reset to default” semantics are not required. In particular, reselecting the current Polytoken facet does not reset its model; an unpinned facet has no unique default model to reset to.

The local Polytoken integration contains experimental selected-provider visibility and draft metadata that are not present in the inspected public main ComposerView. Those prerequisites now have a separate issue, #4395, and a published prototype. Treat that as prior implementation experience, not as an upstream dependency already delivered; the prototype does not implement model ownership or native Facet placement.

This is a design-alignment request before implementation. A plausible review split is observation/projection, explicit commands and execution lifecycle, composer integration, then adapters/migration. Existing issues may be the right owners for portions of the UI work. The main request is agreement on the ownership semantics and the smallest shared contract; wire names and final API shape remain open.

Investigation: BB thread thr_4e7dhfivvq (local, not publicly accessible). The source audit and provider experiment are summarized in this body so assessment does not depend on access to that thread. Companion design, evidence notes, and the sanitized 20-observation recording are prepared separately.

Checks

  • I searched open and closed issues for the same request and identified overlapping work above.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

  1. added
    providers
    ui
    provider-acp
    on Sep 30, 2026
  2. anesthetised commented on Oct 5, 2026

    @anesthetised

    Live confirmation from a configOptions-speaking agent: acp-bridge (a fork of BlakeHung/acp-bridge — anesthetised/acp-bridge@d261ed1; advertises a model option [552 backend models] plus a thought_level option, honors session/set_config_option in-memory immediately). Agent-side wire observation with full request logging — bb desktop 0.45.0, macOS 27.0.1:

    • session/prompt requests carry only {prompt, sessionId} — verified across multiple rounds immediately following a composer reasoning-level change (extras={}, no model/reasoning/effort fields under any naming). The app→server leg does attach them (executionRequestFields, EmbeddedThreadChat.tsx L276–296, L426–441), but they are consumed server-side and never forwarded to the agent.
    • The agent therefore never learns of mid-thread intent changes: its per-session thought level (set once at provisioning via session/set_config_option) rode every request body unchanged while bb's picker showed the new selection.
    • This supports the proposal's core distinction — composer model/reasoning is selection intent consumed by the execution plan, not a session operation. For agents that keep per-session config state, intent-only delivery makes mid-thread picker changes silently invisible. Happy to provide the full request/response capture if useful.
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

    provider-acpprovidersui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions