You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP fresh sessions ignore the default agent variant #41628
Fresh ACP sessions select the first available model variant instead of the default primary agent variant configured in opencode.json, even when the agent model matches the configured default model.
If the model variants are ordered low, medium, high, a new ACP session reports low as its current effort instead of high. The configured model itself is selected correctly.
The current ACP directory snapshot retains the default model but not the matching default agent variant. Initial variant selection therefore falls through to variants.default or Object.keys(variants)[0].
This appears to be a regression of #21556, which reported the same ACP model/variant behavior and was closed after #25663. Related ACP configuration issues include #4001 and #18620. The broader TUI/Desktop agent-default-variant work is tracked in #7138 and #7156; this report is limited to fresh ACP session initialization.
Plugins
None required.
OpenCode version
Reproduced on current dev at 3a90639 (packages/opencode version 1.18.16).
Steps to reproduce
Configure a default model and matching agent.build.model with agent.build.variant as shown above.
Start a fresh session through an ACP client such as Zed or Emacs agent-shell.
Inspect the initial model and effort configuration.
The model matches the configuration, but effort uses the first model variant instead of agent.build.variant.
Screenshot and/or share link
Not applicable. The behavior is reproducible in the ACP session service test harness.
Activity
rgyph commentedon Aug 29, 2026
As a temporary workaround, you can disable the "unnecessary" variants for a specific model :)
Something like this in opencode.json file (tested in opencode 1.18.25):
Tarquinen commentedon Oct 20, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊