Non deterministic behaviour of variants passed into agents in the opencode.json config (Desktop)

Description

Same with issue in #16034 but for the Desktop app.

I tested using this config

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {

  },
  "agent": {
    "build": {
      "model": "opencode/gpt-5.1-codex",
      "variant": "medium"
    },
    "plan": {
      "model": "opencode/gpt-5.3-codex",
      "variant": "high"
    }
  }
}

Also have an agent in an md file with model opencode/gpt-5.3-codex and variant low

Plugins

No response

OpenCode version

1.2.17

Steps to reproduce

  1. Use the config provided
  2. Try to update the variant of the build agent, and make request
  3. Try switching between agents, and note that the models and variants are not really following what is set in the config.

Screenshot and/or share link

Screen.Recording.2026-03-05.at.01.11.25.mov

Operating System

macOS

Terminal

Ghostty