### Problem (one or two sentences) Gemma 4 31B outputs its thinking process with <thought> </thought> tags which are not properly rendered in Roo Code UI. ### Context (who is affected and when) Gemma 4 31B outputs its thinking process with <thought> </thought> tags which are not properly rendered in Roo Code UI. <img width="525" height="807" alt="Image" src="https://github.com/user-attachments/assets/ca12a282-5840-4211-9859-b31791da979d" /> ### Reproduction steps Gemma 4 31B model through OpenAI compatible https://generativelanguage.googleapis.com/v1beta/openai/ Thinking turned on. Any prompt to reproduce. ### Expected result Thoughts of model rendered as usual ### Actual result <thought> </thought> in model's answer ### Variations tried (optional) _No response_ ### App Version 3.52.0 ### API Provider (optional) OpenAI Compatible ### Model Used (optional) Gemma 4 31B ### Roo Code Task Links (optional) _No response_ ### Relevant logs or errors (optional) ```shell ```
Problem (one or two sentences)
Gemma 4 31B outputs its thinking process with tags which are not properly rendered in Roo Code UI.
Context (who is affected and when)
Gemma 4 31B outputs its thinking process with tags which are not properly rendered in Roo Code UI.
Reproduction steps
Gemma 4 31B model through OpenAI compatible https://generativelanguage.googleapis.com/v1beta/openai/
Thinking turned on.
Any prompt to reproduce.
Expected result
Thoughts of model rendered as usual
Actual result
in model's answer
Variations tried (optional)
No response
App Version
3.52.0
API Provider (optional)
OpenAI Compatible
Model Used (optional)
Gemma 4 31B
Roo Code Task Links (optional)
No response
Relevant logs or errors (optional)