gemini-cli - 💡(How to fix) Fix Gemini changes the code even though I have specifically told it not to, many times

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What happened?

gemini_chat_history_raw.txt

I asked Gemini not to alter the code, numerous times. I only use Gemini as a reviewer.

What did you expect to happen?

Gemini should not have changed the code.

Client information

  • CLI Version: 0.42.0
  • Git Commit: 68e2196d5
  • Session ID: ffff407a-7aaa-46fb-b23b-cbe7c1561061
  • Operating System: darwin v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3.1-pro-preview
  • Auth Type: oauth-personal
  • Memory Usage: 624.5 MB
  • Terminal Name: iTerm2 3.6.9
  • Terminal Background: #fafafa
  • Kitty Keyboard Protocol: Supported

Login information

Google account

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING