Skip to content

OpenCode.json reasoningEffort setting doesnt work? #25026

Closed as not planned
Closed as not planned

Description

@mejobloggs-cw

Description

I've tried a few different things similar to the config below, but every time I launch OpenCode it says Build mode is using GPT-5.4 HIGH

How can I set Build to medium via the config?

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

  "provider": {
    "copilot": {}
  },

  "model": "github-copilot/gpt-5.4",
  "small_model": "github-copilot/gpt-5.4-mini",

  "agent": {
    "plan": {
      "model": "github-copilot/gpt-5.4",
      "reasoningEffort": "high",
      "textVerbosity": "low"
    },
    "build": {
      "model": "github-copilot/gpt-5.4",
      "reasoningEffort": "medium",
      "textVerbosity": "low"
    }
  }
}

Plugins

No response

OpenCode version

1.14.30

Steps to reproduce

Set config with

  "agent": {
    "plan": {
      "model": "github-copilot/gpt-5.4",
      "reasoningEffort": "high",
      "textVerbosity": "low"
    },
    "build": {
      "model": "github-copilot/gpt-5.4",
      "reasoningEffort": "medium",
      "textVerbosity": "low"
    }
  }
  • Run opencode
  • See if Build says "High" or "Medium"

Screenshot and/or share link

No response

Operating System

Latest Debian

Terminal

No response

Activity

  1. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is specifically that the setting is being silently ignored (rather than just not displayed), #21632 in particular may describe the same root cause.

    If you believe this is a distinct issue, feel free to clarify how your case differs from those reports.

  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 30, 2026
  3. mejobloggs-cw commented on Apr 30, 2026

    @mejobloggs-cw
    Author

    If I'm doing the opencode.json wrong, is there a way to save current TUI settings?

    I tried setting to Medium via the TUI which works, but I couldnt see any way to save/export the settings.

    I'm not sure if those issues above are duplicates of my issue. I don't know enough of the opencode technicals to understand. I'm just a new user trying to setup a "starter config" with my team

  4. rekram1-node commented on Apr 30, 2026

    @rekram1-node
    Collaborator

    Try using variants instead (see docs)

  5. mejobloggs-cw commented on Apr 30, 2026

    @mejobloggs-cw
    Author

    How do you reference a variant? The docs dont seem to cover that

    For example, this shows how to create "thinking" variant:
    https://opencode.ai/docs/models/#custom-variants

    Then i tried something like

    "build": { "model": "github-copilot/gpt-5/thinking" }
    

    But opencode says that's invalid.

    I read through the whole models section and didn't spot a way.

  6. rekram1-node commented on Apr 30, 2026

    @rekram1-node
    Collaborator

    How are u trying to reference it? like whats your goal?

  7. mejobloggs-cw commented on Apr 30, 2026

    @mejobloggs-cw
    Author

    The end goal is to have Opencode use GPT 5.4 Medium by reading the setting from Opencode.json (not manually switching it to medium via the UI)

    Following this example https://opencode.ai/docs/models/#custom-variants I attempted to create a "Thinking" variant (just following the example. If it worked I would then create a "Medium" variant)

    That example creates the variant, but how do I set Build mode to use that variant? The docs don't appear to say how

    I tried both of these (just attempting to mimic the json hierarchy hoping it would work), but they resulted in errors:

    "build": { "model": "github-copilot/gpt-5/thinking" }
    

    and

    "build": { "model": "github-copilot/gpt-5", "variant": "thinking" }
    

    My current Full opencode.json, using variants as suggested, which still shows in the UI as Build using GPT 5.4 High

    {
        "$schema": "https://opencode.ai/config.json",
        "provider": {
            "copilot": {
                "models": {
                    "gpt-5.4": {
                        "variants": {
                            "plan-high": {
                                "reasoningEffort": "high",
                                "textVerbosity": "low"
                            },
                            "build-medium": {
                                "reasoningEffort": "medium",
                                "textVerbosity": "low"
                            }
                        }
                    }
                }
            }
        },
        "model": "github-copilot/gpt-5.4",
        "agent": {
            "plan": {
                "model": "github-copilot/gpt-5.4",
                "variant": "plan-high"
            },
            "build": {
                "model": "github-copilot/gpt-5.4",
                "variant": "build-medium"
            }
        }
    }
    
  8. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  9. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions