# Gemini 2.5 Pro agent unable to apply edits

**URL:** <https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826>\
**Category:** Bug Reports\
**Created:** [April 8, 2025, 8:39pm UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826 "2025-04-08T20:39:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adjwilley](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/adjwilley/32/21827_2.png) [@adjwilley](https://forum.cursor.com/u/adjwilley)\
**Post date:** [April 8, 2025, 8:39pm UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826/1 "2025-04-08T20:39:21Z")

</div>

I’ve noticed that Gemini is having trouble making edits in agent mode. It will usally say something like this:

“It seems the edit wasn’t applied. I’ll reapply.”

Reapplied changes [filename]

“Okay, the reaply seems to have partially worked but also made some incorrect changes…”  
[consolidates changes]  
“I will now attempt to apply these consolidated changes.”

[filename] No changes made

“Unfortunately the consolidated edit also failed to apply. It seems the complexity of the required changes is preventing the automated edits from working reliably.” [suggests making the edits manually.]

Then later, with a more simple edit:

“Okay, I will apply the correction in [filename].”

[filename] No changes made

“The edit failed to apply. Let’s try reapplying.”

Reapplied changes [filename]

"It seems the automatic edits are consistently failing for this file.  
“Please manually replace the code block in [filename] …” [further instructions]

“Apologies for the difficulties with the automatic edits.”

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/6/1/6112fcd4f509b4162c9a39d5ff2d7b008bc034e0.png)

Has anybody else experienced this, or found a fix with custom instructions?

---

<div class="post-metadata">

**Author:** ![StupidCont](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@StupidCont](https://forum.cursor.com/u/StupidCont)\
**Post date:** [April 8, 2025, 9:16pm UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826/2 "2025-04-08T21:16:56Z")

</div>

had this same experience before.

haven’t been able to use gemini in over 14 hours now myself so I guess just be happy its semi working

---

<div class="post-metadata">

**Author:** ![mattheworiordan](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mattheworiordan/32/51673_2.png) [@mattheworiordan](https://forum.cursor.com/u/mattheworiordan)\
**Post date:** [May 5, 2025, 10:14am UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826/3 "2025-05-05T10:14:16Z")

</div>

I get this all the time. It’s beyond painful. Often I end up restarting Cursor and it works. Seriously, this is meant to be AI ☹

---

<div class="post-metadata">

**Author:** ![liquefy](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@liquefy](https://forum.cursor.com/u/liquefy)\
**Post date:** [May 5, 2025, 3:11pm UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826/4 "2025-05-05T15:11:37Z")

</div>

i see this a lot with gemini, had to switch to a different model, which comes with its own set of issues. sometimes gemini offers edits but applies only partially, with no way to finish the rest

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 4, 2025, 3:12pm UTC](https://forum.cursor.com/t/gemini-2-5-pro-agent-unable-to-apply-edits/76826/5 "2025-06-04T15:12:07Z")

</div>

Closed on June 4, 2025, 3:12pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
