gemini 2.5pro tend to replace entire .env.local with the new variable (1 variable).
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
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.
if totally preventing it would be a bummer
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!