Skip to content

ACP doesn't respect default model from opencode.json config #21556

@AlvaroParker

Description

@AlvaroParker

Description

I have this config on ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "openai/gpt-5.4",
  "agent": {
    "build": {
      "model": "openai/gpt-5.4",
      "variant": "high"
    },
    "plan": {
      "model": "openai/gpt-5.4",
      "variant": "low"
    }
  }
}

When I run opencode on the terminal, the default model loads correctly. However on ACP (zed), the default model variant is not respected:

Image

I would expect OpenAI/GPT-5.4 (high) to load, since it's my default variant when using the build agent

Plugins

No response

OpenCode version

1.3.13

Steps to reproduce

  1. Put this on your opencode.json config:
{
  "$schema": "https://opencode.ai/config.json",
  "model": "openai/gpt-5.4",
  "agent": {
    "build": {
      "model": "openai/gpt-5.4",
      "variant": "high"
    },
    "plan": {
      "model": "openai/gpt-5.4",
      "variant": "low"
    }
  }
}
  1. Open an ACP client (for example Zed)
  2. The default model variant is not respected

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

acp

Metadata

Metadata

Assignees

Labels

acpbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions