Skip to content

Claude Sonnet 4.5 is not thinking by default #3284

Closed

Description

@KevinGuancheDarias

Description

Hello, I would have expected Sonnet 4.5 to be thinking by default, as the thinking process is very short (at least in Claude Code) most of times.

The thing is that thinking is disabled, in all my models, Claude and GLM (probably uses separate json config). only code-supernova has thinking working.

I tried adding to the opencode.json but nothing changed

{  
  "$schema": "https://opencode.ai/config.json",  
  "provider": {  
    "anthropic": {  
      "options": {  
        "thinking": "enabled",
        "budgetTokens": 32000
      }  
    }  
  }
}

but that didn't work, looks like an ignored setting

OpenCode version

0.15.8

Steps to reproduce

  1. configure primary agent to be Anthropic Sonnet 4.5
  2. switch to it
  3. Ask him, if he has thinking enabled

Screenshot and/or share link

Reasoning example (code-supernova):

Image

Non reasoning example (sonnet-4-5):

Image

Claude Code equivalent (disabled & enabled):

Image

Operating System

Windows 11

Terminal

Windows Terminal (it's a bit buggy, maybe I should install some terminal?)

Activity

  1. github-actions commented on Oct 19, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 19, 2025

    @rekram1-node
    Contributor

    @KevinGuancheDarias we have examples in our docs, you can do this:

    {
    "$schema": "https://opencode.ai/config.json",
    "provider": {
    "anthropic": {
    "models": {
    "claude-sonnet-4-5-20250929": {
    "options": {
    "thinking": {
    "type": "enabled",
    "budgetTokens": 16000,
    },
    },
    },
    },
    },
    },
    }

  3. KevinGuancheDarias commented on Oct 19, 2025

    @KevinGuancheDarias
    Author

    Ok, solved by myself, the "options" apply at "model" level and not "provider" level in the json

    as seem here: #1106 (comment)

    also bonus, while this guy used the full name, using claude-sonnet-4-5 also worked (prefer it, just in case Anthropic release an update)

  4. KevinGuancheDarias commented on Oct 19, 2025

    @KevinGuancheDarias
    Author

    @KevinGuancheDarias we have examples in our docs, you can do this:

    { "$schema": "https://opencode.ai/config.json", "provider": { "anthropic": { "models": { "claude-sonnet-4-5-20250929": { "options": { "thinking": { "type": "enabled", "budgetTokens": 16000, }, }, }, }, }, }, }

    Wow!, you posted almost at the same time than me XD, thanks :), that was quick reply, I didn't found it in the docs

    Thanks @rekram1-node

  5. rekram1-node commented on Oct 19, 2025

    @rekram1-node
    Contributor

    no problem!

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

Metadata

Metadata

Assignees

No one assigned

    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