Hi everyone,
I wanted to discuss a highly frustrating and destructive behavior with Gemini 3 Pro when using it inside AI code editors. The model is far too aggressive with unsolicited code changes, which is directly leading to wasted tokens and lost work.
Here is the exact scenario that keeps happening:
-
I ask the AI to generate a large chunk of code (burning a significant amount of tokens).
-
The generated code sits in the editor as a pending change (diff view), and I am currently reading and reviewing it before hitting āAcceptā.
-
While reviewing, I ask the AI a simple follow-up question (e.g., to explain a specific logic or analyze a line within that pending block).
-
Instead of just answering the question in the chat, Gemini aggressively attempts to edit or refactor the code again.
This creates a massive problem: If I hit āRejectā to cancel Geminiās unsolicited edits, it wipes out the entire pending block of code that I just spent tokens to generate. I lose all that work and have to start over.
To try and fix this, Iāve heavily utilized strict system prompts and slash commands to explicitly force it into a āread-only/analyzeā mode, but the situation hasnāt improved. The model frequently ignores these constraints and acts out of bounds anyway.
For comparison, Opus 4.6 handles this flawlessly. It is incredibly obedient and context-aware. I donāt even need strict system prompts or slash commands; just feeding it the project context once is enough. It reads the code, answers my questions, and entirely respects the pending state without trying to overwrite my diffs for the entire session.
Has anyone else experienced Gemini destroying their pending changes like this? Are there any foolproof prompt tricks or settings to strictly lock down its actions in these scenarios?
Would love to hear your thoughts!

