Skip to content

Configure default model is not used in ACP #4001

Closed

Description

@wittjosiah

Description

Given the following config:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "anthropic/claude-sonnet-4-5-20250929"
}

When using opencode cli the model defaults to Sonnet 4.5 on startup. However, when using opencode via acp in zed the default model is always OpenCode Zen/Big Pickle.

OpenCode version

1.0.35

Steps to reproduce

  1. Set default model in config
  2. Open Zed
  3. Create new OpenCode thread

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 6, 2025
  2. github-actions commented on Nov 6, 2025

    @github-actions
    Contributor

    This issue might be related to existing issues with model configuration in different contexts. Please check:

    However, your specific case of config default model being ignored in ACP appears to be a distinct issue from these. Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Nov 6, 2025

    @rekram1-node
    Collaborator

    Oh ill fix that

  4. self-assigned this
    on Nov 6, 2025
  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 6, 2025
  6. rekram1-node commented on Nov 6, 2025

    @rekram1-node
    Collaborator

    /oc can u fix this, look in acp/agent.ts i think there is a condition out of order that is causing opencode big pickle to override the defaults set from the users config. There is a chance we aren't reading model from the Config.get() call if so fix that

    This happens when the server is initialized I believe, but it could be happening on session load, in either case fix

  7. opencode-agent commented on Nov 6, 2025

    @opencode-agent
    Contributor

    Created PR #4006

    New%20session%20-%202025-11-06T22%3A11%3A08.688Z
    opencode session  |  github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions