gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

gemini 2.5pro tend to replace entire .env.local with the new variable (1 variable).

Open u007 opened this issue 1 year ago • 3 comments

What happened?

shouldn't allow that. 20 other settings went missing

What did you expect to happen?

perhaps should add in the prompt to check if the .env.local or file exists and should append instead of replace the file

Client information

  • CLI Version: 0.1.12
  • Git Commit: b29c02dd (local modifications)
  • Operating System: darwin v22.17.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 182.4 MB

Login information

No response

Anything else we need to know?

No response

u007 avatar Jul 13 '25 16:07 u007

As a mitigation, add a directive to your local GEMINI.md (perhaps with /memory add) to instruct Gemini not to change the .env.local file under any circumstances.

segin avatar Jul 13 '25 19:07 segin

if totally preventing it would be a bummer

u007 avatar Jul 14 '25 02:07 u007

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!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]