Error - edit_file

Both Ask and Agent modes. Usually happens in the existing chat with several prior unaccepted edits. Also happened when i opened another chat, then went back to the old one and Asked for more edits. The old chat “lost connection” when I went back into it, saying that my laptop lost internet (it did not). Reopening Cursor or the file does not help. In the new chat it always worked, that’s probably what you have QA’d.


Just consumes credits, no file edits. No obvious mechanism to reclaim lost credits. About to ditch for Windsurf. Foril

Version: 0.48.8
VSCode Version: 1.96.2
Commit: 7801■■■6824585b7f2721900066bc87c4a09b740
Date: 2025-04-07T19:54:58.315Z (6 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.4.0

Some significant % of my Agent queries are not editing properly, but they are completing and are charged. I do “thumbs down” and provide feedback. Ideally, these negative results would be not be charged (or reimbursed).

1 Like

Same:

I’m constantly getting Error calling tool ‘edit_file’. New chat, restart Cursor. restart Windows, makes no difference. After using approx 20 requests out of 60. It’s not worth the money it I am constantly battling to try and make it make a few edits.

Still no solution? I think I’ll cancel my subscription because of this error.

I’ve added “The code edit / apply tool only supports small-to-medium diffs, so proceed step-by-step.” to my global Cursor rules, which helps but the issue of apply model failing still is occurring somewhat frequently.

The issue is still not fixed in the latest 0.49.2.

2 Likes

I’m so tired of this one.
Impossible to work

Hi, please open your console (in the command palette, Developer: Toggle Developer Tools) and send us screenshots of any errors you see here!

And you can provide information about your device by clicking Help—About to make it easier for officials to find the problem.

Please share some request IDs so we can check on these queries. If you’re in privacy mode, would be great if you can temporarily disable, perform a query, and send us the request id

I’ve been using Cursor for many months without issues. Only now I’ve been getting the error ‘edit_file

  1. All queries are VERY slow during US hours
  2. The error ‘edit_file’ keeps popping up a lot
  3. I keep getting VPN / disconnection notices from chat (My connection is fine)

This makes Cursor unusable.

I’ve also tried Windsurf and it works as expected for the same task.

Started getting this error after upgrading to latest Cursor.

I just updated the latest cursor 10 minutes ago. now I am getting this a lot.

I am on privacy mode. so can’t help with providing any requestid’s sorry. surely the Cursor devs are getting this error too. either that or they aren’t really doing any coding or the QA tester is not the best.

I think its when the sonnet server refuses to answer due to it sees something it doesn’t want to answer about. especially when writing malicious code.

the more this is happening is probably the more malicious code being written with cursor.

I think cursor needs to recognise this type of response from Sonnet, and pass the message properly onto the user.

(post deleted by author)