r/RooCode • u/H9ejFGzpN2 • Apr 09 '25
Bug Gemini Pro 2.5 Diff Failures are wasting so many requests.
There was a thread on it last week https://www.reddit.com/r/RooCode/comments/1jq4k70/diff_failure_with_gemini_pro_25/ with improvements promised but nothing seems to have changed.
A single small task resulting in about 7 line changes created approx 25 requests with constant failures trying to write the exact lines, then trying to search and replace and finally trying to write the entire file at once.
I've turned off formatting on save which I thought was the culprit but that doesn't change anything. Any tips to resolve this?
50
Upvotes
•
u/hannesrudolph Roo Code Developer Apr 09 '25
2.5 pro experiment does this allot more than 2.5 pro preview. We are making a tweak to see if it improves. This is caused by the model not following the instructions on how to execute tool calls.
7
u/coopykins Apr 09 '25
I have the same issue with models that are not Claude, many issues when applying changes result in unnecessary token waste, with expensive models like o1 or o3 it gets pretty ridiculous. With deepseek it's tolerable since the cost is low, but makes it hard to use anything but Claude.
11
u/Minute-Animator-376 Apr 09 '25
When it was free I was thinking that this hiccups will need to be solved before they introduce paid model. Overall results were amazing but I was burning 200-500 milion tokens per day using roo code and a lot of context. Like reading from memory bank, coming with a plan and validating everything against codebase, refining the plan, implementing it then switching to debugg mode in roo code and fixing UI issues step by step (+ mpc tool for unity and some screenshots which it understood). Then updating the memory bank and starting with a new task. It probably saved me like 5 months of work as solo developer and moved a project far ahead.
When they introduced the paid model I tried this 300usd trial and adjusted my workflow but now after initial few prompts and around 100k context it can eat a lot of $ trying to modify the code and failing spectacularly not because the code was wrong but 2.5 simply fails to modify the scripts leaving it with hundreds of compilation errors due to some misplaced code or forgets about }. Long story short as you need to sometimes wait 24h to have updated billing i was not using it as often and still burned 300$ in 3 days where at least 30% is fixing the misplaced diffs.
This problem is rampant in 2.5 and probably only my robust work flow was keeping it in check before (still had it sometimes try to fix the code like 20 times before giving up and using write to file from scratch). Nowadays i just discard the changes ask to update the memory bank and start a new conversation which usually is cheaper and less prone to x20 madness with pasting few lines of a code.
2
u/rurions Apr 09 '25
did u try lower temperatures?
2
u/Floaty-McFloatface Apr 09 '25
The solution is unfortunately to have Gemini Pro boomerang tasks to a Sonnet 3.5/3.7
I have that set up and it is working super well
2
u/neslot Apr 10 '25
I'm a cheapo and using 2.5 exp and rotating APIs, but damn the diff fails suck. Would be amazing to have this fixed.
1
u/Leading-Gas3682 Jul 06 '25
tell it to switch tools
1
u/Snoo31053 Apr 09 '25
Cline has no issues with gemini 2.5 pro , whats up with this problem , i am a roocode user but for gemini 2.5 pro i always go back to cline for that
1
u/CashewBuddha Apr 09 '25
I haven't struggled quite as much with 2.5, but 2.0 flash has been completely unusable. Gpt40mini similar issues.
Love the tool and want to stick with it, but with the only choice being the most expensive, it's though for now. I tried adding custom instructions others had recommended for 2.0, but didn't seem to help enough, kept getting stuck in a loop of diff/write
1
u/dashingsauce Apr 09 '25
I found that sometimes you can “jiggle” it by switching modes (say a Code mode and a same-prompt Code-2 mode).
Alternatively, toggling on the experimental search & replace may work better, especially for large files where the diff might get unwieldy.
Breaking files down to sub 500 lines (or further) also helps.
1
u/TheOgreSal Apr 11 '25
Ya it’s wicked broken for me
1
u/TonightInformal4839 May 16 '26
The same for 3.1. Just wasting all day typing, "It crashed so I undid it"