Claude Sonnet 4.5 is not thinking by default #2176

Closed
opened 2026-02-16 17:34:32 -05:00 by yindo · 5 comments
Owner

Originally created by @KevinGuancheDarias on GitHub (Oct 19, 2025).

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?)

Originally created by @KevinGuancheDarias on GitHub (Oct 19, 2025). ### 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 ```json { "$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): <img width="1241" height="824" alt="Image" src="https://github.com/user-attachments/assets/fa56f122-9374-4fd8-9eb9-69bed9f49415" /> Non reasoning example (sonnet-4-5): <img width="1384" height="303" alt="Image" src="https://github.com/user-attachments/assets/72c4c846-9d39-422a-92c4-98c2fb1588ec" /> Claude Code equivalent (disabled & enabled): <img width="1655" height="895" alt="Image" src="https://github.com/user-attachments/assets/d0385c02-3da1-422f-b89d-99c74f4fb22d" /> ### Operating System Windows 11 ### Terminal Windows Terminal (it's a bit buggy, maybe I should install some terminal?)
yindo added the bug label 2026-02-16 17:34:32 -05:00
yindo closed this issue 2026-02-16 17:34:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2025):

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

  • #2875: Have an ability to turn on / off thinking mode - discusses the need for customizable thinking mode controls per model, including Sonnet 4.5
  • #1106: claude sonnet "thinking"? - user asking how to enable thinking mode with Claude Sonnet
  • #450: Support for reasoning_effort parameter in UI - requests UI support for reasoning parameters including thinking controls for supported models

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

@github-actions[bot] commented on GitHub (Oct 19, 2025): This issue might be a duplicate of existing issues. Please check: - #2875: Have an ability to turn on / off thinking mode - discusses the need for customizable thinking mode controls per model, including Sonnet 4.5 - #1106: claude sonnet "thinking"? - user asking how to enable thinking mode with Claude Sonnet - #450: Support for reasoning_effort parameter in UI - requests UI support for reasoning parameters including thinking controls for supported models Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 19, 2025):

@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,
},
},
},
},
},
},
}

@rekram1-node commented on GitHub (Oct 19, 2025): @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, }, }, }, }, }, }, }
Author
Owner

@KevinGuancheDarias commented on GitHub (Oct 19, 2025):

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

as seem here: https://github.com/sst/opencode/issues/1106#issuecomment-3220642796

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)

@KevinGuancheDarias commented on GitHub (Oct 19, 2025): Ok, solved by myself, the "options" apply at "model" level and not "provider" level in the json as seem here: https://github.com/sst/opencode/issues/1106#issuecomment-3220642796 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)
Author
Owner

@KevinGuancheDarias commented on GitHub (Oct 19, 2025):

@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

@KevinGuancheDarias commented on GitHub (Oct 19, 2025): > [@KevinGuancheDarias](https://github.com/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
Author
Owner

@rekram1-node commented on GitHub (Oct 19, 2025):

no problem!

@rekram1-node commented on GitHub (Oct 19, 2025): no problem!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2176