I was meaning to say, maybe the code looks for without any whitespace. A regex that matches any whitespace in-between should do the trick, like: </\sthink\s>
Based on the information provided, it appears the bug is in the Cursor CLI application, specifically with the Gemini 3.0 Flash model.
I think this could be a coding issue, possibly due to the incorrect closing tag in the code for displaying thinking tokens. The correct syntax should be (?), but it seems to be closed with </ think> instead. This might cause the thinking tokens to be displayed incorrectly.
I can see the issue with how thinking tokens are displayed in the CLI. Your hypothesis about the space in the </ think> tag looks right, I’ve passed this to the team so they can fix the parsing.
Could you share the Request ID for this request? That’ll help the team find and fix the bug faster.
I would but I prompted some more messages afterwards, not sure if I could go back and copy the older ID (happy to do it if possible). This is the chat ID if it helps:
Hi again. I found this bug happening again with Claude 4.5 Sonnet. Rather interestingly, a non-thinking model is trying to output thinking tokens. I had set Claude 4.5 Sonnet here, non-thinking, and yet it still added tags. I copied the request ID if it’s helpful: b7b1d927-36c8-4bd4-8283-fc6b0d9a94d6