[Bug]: OpenCode chat ignores selected reasoning effort and uses lowest variant
What went wrong?
In AO native Chat using the OpenCode harness, selecting a high reasoning effort does not match the variant recorded by OpenCode on subsequent requests. AO displays/saves the selected effort while OpenCode uses the lowest effort. I have tested this in multiple sessions.
Model (provider: opencode-go) |
Selected in AO | Recorded by OpenCode |
|---|---|---|
muse-spark-1.3-contributor |
xhigh |
minimal |
deepseek-v4.1-flash |
Max |
low |
Steps to reproduce
- Use an OpenCode-backed conversation in AO native Chat.
- Select
opencode-go/deepseek-v4.1-flashwith effortMax, oropencode-go/muse-spark-1.3-contributorwith effortxhigh. - Send a prompt.
- Compare AO's selected effort with OpenCode's session/message metadata: OpenCode records the lower variant.
This has been tested in multiple sessions. The specific database evidence below comes from one existing orchestrator conversation in which DeepSeek was used before switching to Muse.
Evidence
Read-only inspection of the local databases, before applying a workaround, found:
- AO's
conversationsrow storedmodel = opencode-go/muse-spark-1.3-contributorandreasoning_effort = xhigh. - OpenCode's session model stored
{"id":"muse-spark-1.3-contributor","providerID":"opencode-go","variant":"minimal"}. - Recent OpenCode user messages recorded
model.variant = minimalfor Muse; assistant messages also recordedvariant = minimal. - The preceding DeepSeek assistant messages recorded
variant = lowdespite my having selected Max. The previous AO effort value was not independently recovered from historical database state.
The mismatch is visible in request metadata before the model answers; it is not an inference from answer quality or reasoning-token counts. No provider HTTP request capture was performed.
Expected behavior
AO should apply the selected effort to OpenCode before prompting and keep the displayed setting consistent with the effective setting. If it cannot apply a selection, it should report that rather than silently continuing with a lower effort.
Environment
- AO installed package version:
0.12.12 - OpenCode session version recorded locally:
1.18.30 - Linux, AO installed from the Debian package
- AO interface: native Chat
- Harness: OpenCode
- Provider:
opencode-go
Suspected integration path (not a confirmed root cause)
Inspection of the installed OpenCode bundle showed that its ACP model setter can reset the effort variant when the model ID has no explicit variant. Its fallback prefers a variant named default, otherwise the first available variant. This is consistent with Muse selecting minimal and DeepSeek selecting low.
The AO/OpenCode handoff should be investigated for an omitted effort, a reset on model selection, or stale settings being reapplied. The responsible call sequence or component has not been conclusively isolated. Relevant AO code includes the ACP conversation applyTurnSettings and config-option handling.
Workaround attempted
After collecting the evidence, custom variants named default were added in the user OpenCode configuration: reasoningEffort: xhigh for Muse and reasoningEffort: max for DeepSeek. JSON validation passed, but the effect of this workaround on a subsequent request has not yet been verified. This does not establish a fix for AO's explicit effort selector.
I searched existing issues for OpenCode effort reports and did not find an exact duplicate. No credentials, conversation bodies, or private project files are included in this report.