opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Have an ability to turn on / off thinking mode

Open leeweisern opened this issue 2 months ago • 8 comments

Image Image

Better yet, customisable based on models.

e.g:

  • GPT-5 we can toggle between minimal / low / medium / high
  • Sonnet 4.5, we can toggle between non thinking and thinking

leeweisern avatar Sep 30 '25 06:09 leeweisern

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

  • #450: Requests UI controls for reasoning_effort parameter, similar to thinking mode toggles
  • #1177: Specifically requests thinking UI features and controls
  • #1528: Requests better support for thinking tags/mode in local models
  • #2767: Discusses optimizing thinking process output and presentation

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

github-actions[bot] avatar Sep 30 '25 06:09 github-actions[bot]

Absolutely makes a lot of sense, I think Dax & Adam have talked about UX of this and once opentui migration is complete this will be added at some point

rekram1-node avatar Sep 30 '25 15:09 rekram1-node

Also came here because I'm really missing this. The ability to toggle thinking on/off especially for Sonnet is really handy!

I found the config that enables it, but it's permanent and being able to decide for the task at hand would be good

markus1189 avatar Nov 22 '25 14:11 markus1189

I found the config that enables it, but it's permanent and being able to decide for the task at hand would be good

Where is that option? Usually you can write an agent with a particular config, so you might write @think something to use a thinking-enabled agent.

llucax avatar Nov 27 '25 11:11 llucax

Will you make thinking on by default for thinking models? unless the toggle for thinking mode is super obvious, new users coming from claude might not realize they need to toggle thinking

I found the config that enables it, but it's permanent and being able to decide for the task at hand would be good

Where is that option? Usually you can write an agent with a particular config, so you might write @think something to use a thinking-enabled agent.

^^ also like this idea, to trigger thinking explicitly from a prompt allows you to activate it for that 1 prompt if you dont want thinking enabled by default.

bcheung avatar Dec 09 '25 20:12 bcheung

I have this in my opencode.jsonc, so toggling thinking is just changing the model, but still, a thinking toggle would be ideal:

  "provider": {
    "anthropic": {
      "models": {
        "[Custom] Opus 4.5 Latest / Thinking": {
          "id": "claude-opus-4-5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 16000
            }
          }
        },
        "[Custom] Sonnet 4.5 Latest / Thinking": {
          "id": "claude-sonnet-4-5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 16000
            }
          }
        }
      }
    }
  },

jasonish avatar Dec 09 '25 21:12 jasonish

coming soon!

rekram1-node avatar Dec 09 '25 21:12 rekram1-node