Error - edit_file

That would be really helpful actually. Thanks! a lot.

Closed and opened the Cursor, Now I see this warning :
The diff algorithm was stopped early (after 5000 ms.)
with remove limit button

1 Like

The same prompt is fine after closing and re-openning Cursor, and removing The diff algorithm was stopped early (after 5000 ms.) limit. I am not sure it was the resolution but I will update you here.

The issue is still exists

Request ID : 955d14a8-8d3e-4bf0-ad39-2626d5f6f445

1 Like

Definitely an issue on long conversations on Windows. Got some complaints around this.

We are working hard to get clear reproduction and steps and fix this. Thanks!

1 Like

@Juan just so you know mine was not long context. It happened on all chats including new ones. I haven’t used Cursor today but yesterday it seemed resolved. Maybe an issue with caching or indexing?

2 Likes

No long context, got it. But was it a long conversation still?

Also: Windows right?

I mean: the trigger was a long conversation and this triggered issues on other chats?

I can’t say that for certain. Yeah, I’m the OP. I included all that information in the original post.

I’m getting this too on mac. using my own anthropic api key. pro plan.

in mac as well

Same issue here. I’m on Mac

5 edit_file failed, 6.th success:

  1. Model: claude-3.7-sonnet MAX (without thinking)
  2. Conversation with text to edit: 564 lines
  3. Version: 0.48.7
  4. Device: Macbook Pro, M1, MacOs: 15.3.2 (24D81)
  5. privacy mode disabled
  1. Model - claude-3.7-sonnet
  2. Error - Connection failed. If the problem persists, please check your internet connection or VPN
  3. Version & Device -
    Version: 0.48.7 (Universal)
    VSCode Version: 1.96.2
    Commit: 1d623c4cc1d3bb6e0fe4f1d5434b47b958b05870
    Date: 2025-04-02T04:51:59.792Z (5 days ago)
    Electron: 34.3.4
    Chromium: 132.0.6834.210
    Node.js: 20.18.3
    V8: 13.2.152.41-electron.0
    OS: Darwin arm64 24.0.0
  4. Request Id - 17a863ee-d150-46d2-a335-2297c529c629
  5. Long conversation, Yes “Load older messages” on the top.
    Trying to edit/refactor a long file some 2k+LOC

I’m getting same problem on Mac on a chat with a single message sent

Same problem here. I’ve tried 4 different models, all with the same error. Cursor last version. Windows 11.

needs to be resolved as soon as possible…

Also in some of them my credit has dropped!

Me too, same problem. Loading for long time (generating…)

  1. Model: clause-3.7-sonnet
  2. An old or new conversation but the project has a some files (theses files has 300 or more lines of code)
  3. Version: 0.48.7
  4. Device: OS X Sequoia 15.3
  5. c20ed5a7-2e89-4cdf-843a-5f53942c3c97
  6. Sorry, I didn’t understand that request. :frowning:

Same

Version: 0.48.7 (Universal)
VSCode Version: 1.96.2
Commit: 1d623c4cc1d3bb6e0fe4f1d5434b47b958b05870
Date: 2025-04-02T04:51:59.792Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

Same in Linux: Error calling tool ‘edit_file’.

Long conversation with agent: gemini-2.5-pro-exp-03-25 and claude sonnet 3.7.
If I open new chat and start over it shows the same error on the same task.

Version: 0.48.7
VSCode Version: 1.96.2
Commit: 1d623c4cc1d3bb6e0fe4f1d5434b47b958b05870
Date: 2025-04-02T04:59:37.442Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.11.0-21-generic

I’ve switched to another project for now and everything works in it so far.

Maybe you can somehow reset the cache or recreate the project with the error and this will help fix the error at least for a while? Has anyone tried it?