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

Editor is still failing

Open glennsmi opened this issue 1 year ago • 1 comments

What happened?

Gemini editing has improved in the real world but it is still coming up with these editor tool errors which do not happen to the CLI tools from Claude or OpenAI's Codex FYI.

This holds back increased use of Gemini CLI but more importantly stops it from being effective for Agentic workflows using MCP. Here is a message after a few failed attempts ...

"It appears the replace tool failed again, indicating a persistent issue with matching the old_string. I will try a different approach. Instead of replacing a large block, I will read the entire file, perform the replacement in memory, and then write the entire file back. This should be more reliable."

What did you expect to happen?

The files should have been edited correctly

Client information

$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

glennsmi avatar Jul 24 '25 08:07 glennsmi

Duplicate of #4137

SandyTao520 avatar Jul 29 '25 18:07 SandyTao520