Skip to content

Sonntet 4.5 thinking boxes are not showing despite thinking boxes enabled. #2919

Closed

Description

@XSIRIX

Hey,

I have been using sonnet 4.5 through OpenRouter and it doesnt seem like the thinking boxes are working despite thinking being enabled.

Model options also have correctly configured thinking with thinking budget set to 32k.

This is opencode:

Image

Same prompt with Crush without any provider options:

Image

So the opencode results are way more detailed and its taking more time than Crush because of my thinking settings, so i am certain its thinking but its not showing inside the tui.

Activity

  1. github-actions commented on Oct 2, 2025

    @github-actions
    Contributor

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

    Your issue with Sonnet 4.5 thinking boxes not displaying through OpenRouter appears very similar to these previous reports about thinking blocks visibility issues with Claude models.

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

  2. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    @XSIRIX can you show your opencode.json

  3. self-assigned this
    on Oct 2, 2025
  4. XSIRIX commented on Oct 2, 2025

    @XSIRIX
    Author

    @rekram1-node hey yea:

    Image
  5. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    Hm I think when you are using openrouter the settings are different than they would be for an anthropic model ususally let me see

  6. Amansaxena001 commented on Oct 3, 2025

    @Amansaxena001

    Im using all default still I dont see the thinking sections

  7. rekram1-node commented on Oct 3, 2025

    @rekram1-node
    Contributor

    @Amansaxena001 that's because thinking isn't enabled by default, I know what the settings look like for most providers I haven't seeen what it is for openrouter tho it doesnt seem to work for them. SO I am guessing there is a setting naming difference that needs to be documented

  8. XSIRIX commented on Oct 4, 2025

    @XSIRIX
    Author

    @Amansaxena001 that's because thinking isn't enabled by default, I know what the settings look like for most providers I haven't seeen what it is for openrouter tho it doesnt seem to work for them. SO I am guessing there is a setting naming difference that needs to be documented

    Ok i know the reason why, im blind.

    Basically, i am switching between plan and build mode all the time, and for whatever reason the model keeps switching as well between official Claude Sonnet 4.5 model where extended thinking is disabled and my custom configured sonnet 4.5 model where thinking is working.

    Here in build mode:

    Image

    After switching to plan mode with tab model switches:

    Image

    this looks like a bug to me

  9. rekram1-node commented on Oct 4, 2025

    @rekram1-node
    Contributor

    @XSIRIX when you switch models for a agent, we save the last used model, so when u are switching agents it also switches models to what u last used when uding that agent, unless ofc you hardcode the model in the agent definition

  10. rekram1-node commented on Oct 4, 2025

    @rekram1-node
    Contributor

    does this resolve issue? Or are you still having problems just wanna make sure I am following you correctly

  11. numman-ali commented on Oct 5, 2025

    @numman-ali

    I haven't been able to enable thinking when using Claude with OAuth

    I tried the config here:

    https://opencode.ai/docs/models/#configure-models

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "openai": {
          "models": {
            "gpt-5": {
              "options": {
                "reasoningEffort": "high",
                "textVerbosity": "low",
                "reasoningSummary": "auto",
                "include": ["reasoning.encrypted_content"],
              },
            },
          },
        },
        "anthropic": {
          "models": {
            "claude-sonnet-4-5-20250929": {
              "options": {
                "thinking": {
                  "type": "enabled",
                  "budgetTokens": 16000,
                },
              },
            },
          },
        },
      },
    }
  12. rekram1-node commented on Oct 5, 2025

    @rekram1-node
    Contributor

    @numman-ali oh did you try /thinking in the tui?

  13. numman-ali commented on Oct 5, 2025

    @numman-ali

    Yes, I'm pretty confident there's an issue with how options may be passed to opencode, and no thinking ever occurs on the Sonnet 4.5 model

    I made the OpenAI OAuth Plugin https://github.com/numman-ali/opencode-openai-codex-auth so I'm pretty familiar with how opencode works

    I don't have time to review atm, but confident it's how the AI SDK Provider for Anthropic is mapping the properties from OpenCode config, there's a missing piece

  14. rekram1-node commented on Oct 5, 2025

    @rekram1-node
    Contributor

    @numman-ali if you are using anthropic then that config works:

    Image

    Can you run opencode debug config and show me output? And you are using anthropic right not openrouter or any other provider

  15. rekram1-node commented on Oct 5, 2025

    @rekram1-node
    Contributor

    I copied your config verbatim and sent "hello" to claude sonnet 4.5, thinking shows as expected

  16. F0x1d commented on Oct 9, 2025

    @F0x1d

    It seems that it works if i use

                    "claude-sonnet-4-5-20250929": {
                        "name": "Claude Sonnet 4.5 Thinking",
                        "options": {
                            "thinking": {
                                "type": "enabled",
                                "budgetTokens": 16000,
                            }
                        }
                    },
    Image

    but if i use it with custom id, it does not

                    "claude-sonnet-4-5-thinking": {
                        "id": "claude-sonnet-4-5-20250929",
                        "name": "Claude Sonnet 4.5 Thinking SWAG",
                        "options": {
                            "thinking": {
                                "type": "enabled",
                                "budgetTokens": 16000,
                            }
                        }
                    },
    Image
  17. F0x1d commented on Oct 10, 2025

    @F0x1d

    @rekram1-node can you check it please?

  18. rekram1-node commented on Oct 10, 2025

    @rekram1-node
    Contributor

    yes I will, I managed to replicate, I know issue

  19. Amansaxena001 commented on Oct 13, 2025

    @Amansaxena001

    There is "alwaysThinkingEnabled": false in settings.json file which works @rekram1-node

  20. rekram1-node commented on Oct 17, 2025

    @rekram1-node
    Contributor

    this should be fixed

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