Repository navigation
Description
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(basehttps://opencode.ai/zen/go/v1) plus a local custom providercpa. Reproduction needs no third-party config. - Still present on
mainatd89160eb8c69c1e3ebc2ba2514f1711af8d7c506.
Steps to reproduce
- Install bb desktop 0.43.1 with opencode 1.18.30 on PATH (provider
acp-opencodeshows as available). - Run:
bb provider models acp-opencode --json- Look at
opencode-go/minimax-m3. Actual:defaultReasoningEffort: "none",supportedReasoningEfforts: [{ reasoningEffort: "none", description: "None" }]. - Open New Thread → provider opencode → model MiniMax-M3 → open the Reasoning control. Only
Noneis listed. - To see the server side directly, start
opencode acp, sendinitialize,session/new, thensession/set_config_optionwithconfigId: "model",value: "opencode-go/minimax-m3", and readconfigOptions.
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:
- The value table and the silent drop:
ACP_NATIVE_REASONING_LEVEL_BY_VALUE,acpNativeValueToReasoningLevel, andbuildAcpNativeReasoningSupport— theif (level === undefined) continue;at L154-L158 is wherethinkingis discarded. The empty-list fallback is at L184-L190. - Reverse mapping:
acpNativeReasoningLevelToValue/ACP_NATIVE_REASONING_VALUE_CANDIDATES_BY_LEVEL. - Discovery feeds the drop:
discoverAcpNativeReasoningByModelcallsbuildAcpNativeReasoningSupport(findAcpThoughtLevelConfigOption(configState.configOptions))at bridge.ts#L920-L921; selection goes throughselectAcpNativeReasoning→acpNativeReasoningLevelToValueat bridge.ts#L1158. - The wire type is a free string, so nothing upstream is invalid:
acpConfigOptionSelectOptionSchemadeclaresvalue: z.string(), while bb's domain closes the set:reasoningLevelValues/reasoningLevelSchema.
What you ruled out
- Not ACP-native model discovery lists effort-suffixed variants as separate models; only the
modelClipath collapses them #2958: that is a catalog with nothought_levelat all (placeholderMedium). Here the option is present and its values are rejected.openrouter/minimax/minimax-m3does showMediumfor the ACP-native model discovery lists effort-suffixed variants as separate models; only themodelClipath collapses them #2958 reason, but that is a separate path. - Not 0.40.0 Cursor picker: only Grok keeps a real reasoning ladder (Sol/Opus/Fable dummy Medium) #2503: that is Cursor's per-model probe window and the first
thought_levelbeing a boolean. The Cursor note there ("Thinking on/off … which bb cannot map to low–max") is the same class of bug, but this report covers the string-value case. - Not feat(acp): let agents supply their own reasoning levels #1113 as filed: that requested pass-through of the agent's own
option.value/option.name. It was completed, but the shipped implementation maps to bb's eight levels and still drops the rest. This is the remaining gap in that fix, not a new request. - Not fixable from config: for
opencode-gothe variant is produced by opencode itself; there is nonativeReasoninghint foracp-opencode(onlyacp-grok/acp-hermes-agentdeclare one), so a user cannot supply a mapping. - Same result via
bb provider models acp-opencode --jsonand via a rawopencode acpprobe on the same machine.
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 GENERATEDand links the thread or report.
Activity
bb-slop-cop commentedon Sep 13, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Medium · Effort: High. Added
providers,provider-acp, andconfirmed-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.
Add an opt-in rebuilt ACP adapter, agent options in the model picker,…