Skip to content

[dengerious]gemini always use [Thought: true] write_file to edit file and overwrite file instead of edit, cause file context disapear #25568

@heartacker

Description

@heartacker

What happened?

I use gemini cli to edit code/ config
it always overwrite the whole file , what the fxx k gemmini do

I have told gemini cli all the time ,just change not overwrite

What did you expect to happen?

edit file ,but whole file is disappear

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
About Gemini CLI                                                                                                                                    │
│                                                                                                                                                     │
│ CLI Version                                        0.38.1                                                                                           │
│ Git Commit                                         7f5580034                                                                                        │
│ Model                                              Auto (Gemini 3)                                                                                  │
│ Sandbox                                            no sandbox                                                                                       │
│ OS                                                 linux │
│ Auth Method                                        Signed in with Google (aa@gmail.com)                                                   │
│ Tier                                               Gemini Code Assist in Google One AI Pro

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitystatus/need-triageIssues that need to be triaged by the triage automation.status/possible-duplicate

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions