Skip to content

<think> tag is displayed as plain text instead of hidden reasoning in OpenAI Compatible provider #7615

@jwadow

Description

@jwadow

App Version

3.26.4

API Provider

OpenAI Compatible

Model Used

gemini-2.5-pro

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

  1. Run Roo Code in OpenAI-compatible mode.
  2. Use a model such as gemini-2.5-flash or gemini-2.5-pro (though the issue happens regardless of model).
  3. Generate output that contains <thinking> ... </thinking>.
  4. Observe that the <think> block is shown as normal text (without <think> tag).
Image

💥 Outcome Summary

It seems the handling of <think> is missing in OpenAI-compatible mode.
When using Roo Code in OpenAI-compatible mode, the <thinking> tag from model output is rendered as plain text in the response instead of being collapsed into a gray "Thinking..." spoiler (as expected).
The <think> tag should be rendered as a hidden reasoning block (collapsed "Thinking…" spoiler), not exposed directly to the user.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions