Skip to content

ACP model catalog: one failed reasoning probe drops efforts for every later model #4154

Closed

Description

@Danielalnajjar

Summary

When BB builds the model catalog for an ACP provider, it probes each model's reasoning efforts one at a time. If the probe for one model fails (for example, the agent returns a 429 for that model), BB stops probing. Every model after it is then listed with a single placeholder medium effort, even though those models support the full effort set. Nothing is logged, and the partial catalog is stored as if it were complete.

Versions and environment

  • bb 0.43.4 (desktop app), macOS 26 (darwin 25.6.0), local daemon, default data dir.
  • ACP provider backed by the Claude Code ACP agent, claude-agent-acp 0.70.0, using a Claude account on which one model (claude-fable-5-1[1m]) was rate-limited.
  • Code path unchanged on main at 94d77da09568d7f0f7cdb23b84686e743acfb0ad.

Steps to reproduce

  1. Configure an ACP provider whose agent exposes a model config option with several models, where session/set_config_option fails for one model that is not last in the probe order. The case I observed was claude-agent-acp 0.70.0 on an account where claude-fable-5-1[1m] returns a 429. Probe order was default, sonnet, claude-fable-5-1[1m], opus, haiku.
  2. Run bb provider models <provider> --json, or open the model picker for that provider.
  3. Compare the supportedReasoningEfforts of the models probed after the failing one.

Did not reproduce with the same agent on an account where no model is rate-limited: all five models get the full effort set.

Closest faithful repro without a rate-limited account: a unit test in packages/provider-bridge-acp/src/bridge/bridge.test.ts that fails session/set_config_option for the middle of three models. The model after it gets the fallback instead of its real efforts. The test is in #4149, and it fails on main.

Expected vs actual

Direct probe of the same ACP agent, in BB's order (session/set_config_option per model):

probe default 53ms default,low,medium,high,xhigh,max
probe sonnet 11ms default,low,medium,high,xhigh,max
probe claude-fable-5-1[1m] 344ms {"code":-32603,"message":"Internal error","data":{"details":"API error: 429 ... rate_limit_error ..."}}
probe opus 1ms default,low,medium,high,xhigh,max
probe haiku 1ms default,low,medium,high,xhigh,max

BB's stored catalog for that provider (efforts per model):
default: 5  sonnet: 5  claude-fable-5-1[1m]: 1  opus: 1  haiku: 1
(1 = [medium] "Reasoning effort is managed by the connected ACP agent.")

Expected: only the model whose probe failed (claude-fable-5-1[1m]) falls back to medium. opus and haiku keep the efforts the agent reports for them. The failure is logged with the model id.

Evidence

  • The probe loop runs inside one try, so the first rejected probe ends it:
    for (const model of modelsToProbe) {
    const configState = await args.connection.request({
    method: "session/set_config_option",
    params: {
    sessionId: args.sessionId,
    configId: modelOption.id,
    value: model.value,
    },
    resultSchema: acpConfigStateResultSchema,
    });
    supportByModel.set(
    model.value,
    buildAcpNativeReasoningSupport(
    findAcpThoughtLevelConfigOption(configState.configOptions),
    ),
    );
    }
    return supportByModel;
    })(),
    timeoutReached,
    ]);
    } catch {
    return supportByModel.size > 0 ? supportByModel : null;
  • The catch returns the partial map as if complete, without logging:
    } catch {
    return supportByModel.size > 0 ? supportByModel : null;
  • Every model missing from the map gets the single-medium fallback:
    const reasoning = reasoningByModel?.get(option.value) ?? {
    supportedReasoningEfforts: ACP_NATIVE_REASONING_EFFORTS,
    defaultReasoningEffort: "medium" as ReasoningLevel,
    };
    and
    export const ACP_NATIVE_REASONING_EFFORTS: AvailableModel["supportedReasoningEfforts"] =
    [
    {
    reasoningEffort: "medium",
    description: "Reasoning effort is managed by the connected ACP agent.",
    },
    ];
  • The result is persisted in provider_model_catalogs in ~/.bb/bb.db with no error. Rows for the affected provider switched from full to partial when the account's rate limit began, while rows for other accounts on the same agent stayed full.
  • The probe log above came from launching the same ACP agent command BB uses and sending session/set_config_option for each model in BB's probe order.

What you ruled out

  • Not 0.40.0 Cursor picker: only Grok keeps a real reasoning ladder (Sol/Opus/Fable dummy Medium) #2503: same symptom, but there the cause was the probe timing out before the primary models were probed. Here, the loop exits on the first rejected request, well within the timeout.
  • Not stale per-profile or plugin state: the agent's own responses for opus and haiku carry the full effort set on the affected account.
  • Still present on main at 94d77da09568d7f0f7cdb23b84686e743acfb0ad.
  • The 429 itself is account state, not a BB defect. The defect is that one model's failure removes the efforts of the models probed after it.

Suggested priority and effort (optional)

Medium. It affects any ACP provider where one model's probe fails (a rate limit, an unavailable model), and there is no workaround in BB other than waiting for the failure to clear and the catalog to refresh. No data loss. Effort: Low (per-model error handling in the probe loop).

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 and links the thread or report.

Found by an agent-driven investigation in a private bb thread, not linkable. The probe log and code references above are its evidence.

AGENT GENERATED

Activity

  1. added theissue type on Sep 23, 2026
  2. added
    providers
    provider-acp
    confirmed-repro
    on Sep 23, 2026
  3. bb-slop-cop commented on Sep 23, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Bug · Priority Medium · Effort Low. Applied providers, provider-acp, and confirmed-repro.

    Reproduction report: REPRODUCED, high root-cause confidence. One catch surrounds the probe loop, so a rejected model stops later probes and leaves those models with the medium fallback.

    The regression test reproduced this on main in two clean checkouts: the no-error control passed; rejecting the middle model prevented the final model from being probed. Real-account rate limiting and database history were not exercised.

    No duplicate PR opened: existing PR #4149 already addresses this root cause; reviewed statically only.

  4. added a commit that references this issue on Sep 26, 2026
    5625c94
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

    confirmed-reproprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions