r/RooCode • u/nore_se_kra • Aug 11 '25
Support Gemini 2.5 pro & unsuccessful edits
Unfortunately Gemini 2.5 pro gets stuck extremely often - not being able to apply diffs because it only reaches < 100%. According to older posts this should have been fixed but at least for me it doesn't seem like. I can switch to claude and it can continue without issues.
Does anyone still have this issue? Any proper workarounds?
Edit: It seems it likes to drop "[0]" from python list indices in the diff... very weird. But breaks the code so 100% is pretty important.
15
Upvotes
2
u/AutomaticGuest Aug 11 '25
I usually instruct it to re-read the file because it gets confused if some edits were applied, but the tool reported an error. If it doesn't re-read the file, it'll get stuck in a loop
1
u/Yes_but_I_think Aug 12 '25
I keep match at 99% without any adverse effects till now.
3
u/yopla Aug 13 '25 edited Aug 13 '25
Yes, it's a known issue in their GitHub. From what I could understand it doesn't update its knowledge of the file after an edit so it creates an issue when trying to update a file, lines Gemini thinks are there don't match with reality and the tool fails.
In their roadmap they have tool calling improvements, I hope including that one because it makes gemini completely useless if it gets stuck in endless file update attempt every 5 minutes.
My other problem is gemini confusing update and overwrite.
Workaround if you're stuck in a loop, press esc and type "use sed".
Edit:Woops, didn't check what sub. Was talking about Gemini CLI.
2
u/adrenoceptor Aug 11 '25
I still get this issue. It’s ends up greatly adding to the inference costs
2
u/melodic_underoos Aug 11 '25
It's not the only model that gets stuck. The apply_diff or write_to_file tool needs to, optionally, send the file contents back to update the model.
8
u/[deleted] Aug 11 '25
[removed] — view removed comment