Switch from Ask to Agent fails with edits

Describe the Bug

Hi,

Often times I start a conversation using Ask mode, have some exchange and planning, and then I switch to Agent mode for the implementation of the solution.

I use Gemini 2.5 pro, and I think everytime I do this, the agent fails to edit/create files, agent does acknowledge the issue, retries and fails. See the following snippets of replies;

  • It seems there was an issue applying the last set of changes. I will try again to modify… I’m reapplying the same changes to…

  • It appears the changes to …vue are still not being applied. I apologize for the repeated attempts.

  • I sincerely apologize for the difficulties we’re having. It seems the automated system is struggling to apply the changes to …

  • I am still encountering issues with the automated system. My apologies, this is certainly not the experience I want for you.

Am I expecting/doing something wrong or is this just a bug?

Steps to Reproduce

Start with Ask mode, then use Agent mode to apply the changes discussed during Ask mode.

Expected Behavior

Suggested changes to be applied.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:14:24.784Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

I’m having the same issue with Gemini 2.5 Pro.