Skip to content

ACP thought_level values outside bb's eight reasoning levels are silently dropped (opencode minimax-m3 collapses to None) #3620

Closed

Description

@timurkhakhalev

Summary

opencode advertises a thought_level config option whose values are not limited to bb's eight reasoning levels. For minimax-m3 it offers exactly none and thinking. bb's ACP-native catalog maps every value through ACP_NATIVE_REASONING_LEVEL_BY_VALUE, which knows only none/minimal/low/medium/high/xhigh/ultracode/max/ultra, and silently continues anything else. The thinking entry therefore disappears, and the Reasoning picker collapses to a single None — for opencode-go/minimax-m3, which ships with opencode itself, no custom agent needed.

ACP types the option value as a plain string, so this is a legal server response that bb cannot represent. Expected: either surface the agent's own value (as #1113 proposed) or keep it visible, instead of dropping it without a log.

Versions and environment

  • bb 0.43.1 desktop app, macOS (darwin 25.6.0), local daemon, default data dir ~/.bb.
  • Agent: acp-opencode, opencode 1.18.30 (opencode acp), protocolVersion 1.
  • Provider under test: opencode's own opencode-go (base https://opencode.ai/zen/go/v1) plus a local custom provider cpa. Reproduction needs no third-party config.
  • Still present on main at d89160eb8c69c1e3ebc2ba2514f1711af8d7c506.

Steps to reproduce

  1. Install bb desktop 0.43.1 with opencode 1.18.30 on PATH (provider acp-opencode shows as available).
  2. Run:
bb provider models acp-opencode --json
  1. Look at opencode-go/minimax-m3. Actual: defaultReasoningEffort: "none", supportedReasoningEfforts: [{ reasoningEffort: "none", description: "None" }].
  2. Open New Thread → provider opencode → model MiniMax-M3 → open the Reasoning control. Only None is listed.
  3. To see the server side directly, start opencode acp, send initialize, session/new, then session/set_config_option with configId: "model", value: "opencode-go/minimax-m3", and read configOptions.

Expected vs actual

Actual (`bb provider models acp-opencode --json`, trimmed):


opencode-go/minimax-m3    default=none   efforts=none            desc="None"
cpa/minimax-m3            default=none   efforts=none            desc="None"
cpa/longcat-2.0           default=none   efforts=none            desc="None"
opencode-go/longcat-2.0   default=low    efforts=low, medium, high
opencode-go/deepseek-v4-flash default=low efforts=low, high, max


Raw ACP `thought_level` for the same models (from `session/set_config_option` on `configId: "model"`):


opencode-go/minimax-m3   -> options ['none', 'thinking']          current=none
cpa/minimax-m3           -> options ['none', 'thinking']          current=none
cpa/longcat-2.0          -> options ['none', 'thinking']          current=none
opencode-go/longcat-2.0  -> options ['low', 'medium', 'high']     current=low
opencode-go/qwen3.8-max  -> options ['low', 'medium', 'xhigh']    current=low
opencode-go/kimi-k3      -> options ['max']                       current=max


Expected: `opencode-go/minimax-m3` keeps both `None` and `Thinking` in the picker, and selecting `Thinking` is sent back via `session/set_config_option`. Two related failure modes are worth fixing in the same pass:

- A model whose `thought_level` offers *only* unmappable values gets `supportedReasoningEfforts: []` (see the `thoughtLevelOption !== undefined` branch), so the Reasoning row disappears entirely rather than degrading.
- The reverse direction is broken too: `acpNativeReasoningLevelToValue` can only turn bb's eight levels into a value. Even if the picker rendered `Thinking`, bb could not send it.

Evidence

opencode hardcodes the pair for this family in its provider-transform layer, so it is not a quirk of a user config:

// opencode 1.18.30, decompiled provider transform (api.id-based)
if ($.api.id.toLowerCase().includes("minimax-m3") &&
    ["@ai-sdk/anthropic","@ai-sdk/openai-compatible"].includes($.api.npm)) {
  if (["nvidia","lilac"].includes($.providerID))
    return { none:{chat_template_kwargs:{thinking_mode:"disabled"}},
             thinking:{chat_template_kwargs:{thinking_mode:"enabled"}} };
  return { none:{ thinking:{type:"disabled"} },
           thinking:{ thinking:{type:"adaptive"} } };
}

nvidia and lilac reach the same shape, so they are affected by the same drop even though they are not installed here.

Code, at d89160e:

What you ruled out

Suggested priority and effort (optional)

Medium

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.

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Priority: Medium · Effort: High. Added providers, provider-acp, and confirmed-repro; no existing classifications were replaced.

    Reproduction report: REPRODUCED, with high root-cause confidence. In two clean checkouts of trusted main, the source-level harness showed that fixed reasoning maps discard custom ACP choices and cannot select them in reverse. The two-choice regression assertion failed with 1 !== 2; custom-only choices produced an empty list.

    Live OpenCode/UI behavior was not tested. Normal install/build was blocked by a missing pnpm launcher; the harness executed the catalog through Node TypeScript stripping.

    No PR: preserving arbitrary choices requires shared contract changes or a mapping-policy decision, outside the simple-fix conditions.

    AGENT GENERATED

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