Skip to content

Manual edits in between prompts are constantly reverted #15705

@miriameng

Description

@miriameng

What happened?

Let's say I prompt gemini pro 2.5 in gemini-cli to write a segment of code, there are minor imperfections, I did not prompt again to ask the model to fix the minor imperfections instead I fixed it myself because it's faster to do the edits myself plus the quota is limited, however, while I am onto the next thing and prompt gemini pro 2.5 to write the next segment of code, it happens very often that the previous manual edits I did got reverted alongside with the new code written, which is very frustrating. I am not sure if this is a bug caused by gemini-cli or gemini pro 2.5. If it's caused by gemini-cli can we please fix it?

Note: this kind of problem never happened when I use Sonnet with Claude Code

What did you expect to happen?

I expect my manual edits not get reverted.

Client information

Client Information

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

> /about
About Gemini CLI                                                                                                     │
│                                                                                                                      │
│ CLI Version                              0.22.4                                                                      │
│ Git Commit                               e00bcf520                                                                   │
│ Model                                    auto-gemini-2.5                                                             │
│ Sandbox                                  no sandbox                                                                  │
│ OS                                       win32                                                                       │
│ Auth Method                              OAuth

Login information

Google Account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions