Gemini 3 writes extensive internal deliberations into codebase comments
What happened?
Hi Team
On a number of occasions, the gemini-3-pro-preview model via gemini-cli, as well as the Gemini 3 model accessible via Cursor API, have written sometimes extensive internal thinking into code comments. A subtle example from today:
"// Do we need to wait for connections to be created? No, renderConfiguration creates them.
// But we should check connections now"
This is a subtle example but indicative of the usual form, a question -> answer dialogue contained in in-line comments written into the actual codebase.
More verbose examples have expanded as many as a dozen lines of thinking.
Best Plight
What did you expect to happen?
Code comments should not contain internal model deliberations.
Client information
Client Information
│ About Gemini CLI │
│ │
│ CLI Version 0.19.4 │
│ Git Commit 935114875 │
│ Model gemini-3-pro-preview │
│ Sandbox no sandbox │
│ OS darwin │
│ Auth Method OAuth │
│ IDE Client Cursor
Login information
No response
Anything else we need to know?
No response
Found possible duplicate issues:
- #10366
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
Hi @Plightt you could try adding instructions to their GEMINI.md file like "Do not include internal reasoning in code comments."
Idk if this is the right place to share a whole conversation file, but I wanted to add to this issue, as I'm still experiencing weird behaviors where the thoughts will display as if it's 'responding' to me... I'm a total vibecoder and may not be doing things the right way, but wanted to try and contribute to help get this fixed. It doesn't happen to me all the time, but when it does happen in a chat it's pretty consistently weird lol.
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!