Constant edit fails

Around 30-40% of edits in agent mode are failing on a script that is ~5000 lines. This is even when specifying lines and simple linter errors to fix. Larger operations (e.g. rework a UI segment of code approx 200 lines worth, refactors, etc) nearly always fail. Starting new chats doesn’t help.

Recently its been failing and says that the file may be too large or complex to make any edits at all. The irony is that my project rules state that cursor is building this app and keep files manageable for Cursor, yet it built it to an unsustainable format?

Is this script too long? I feel like Cursor was excellent at this stuff a few weeks ago but recently I’ve been spending more time fixing Cursor errors and reverting commits than I have actually implementing new features.

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

1 Like

5000 lines is not much, as long as it’s not tens of thousands of lines, it’s basically fine, you can use gemini 2.5 to try.

Thanks, yeah I thought it would be weird if it couldn’t handle 5k lines - totally understandable to read chunks at a time though. I use 2.5 most of the time these days. I used pro for about $40 but these errors made that a total waste of money so have since reverted to standard. Could be something I am doing suboptimally - def not an expert!

Paste from dev tools errors:

776workbench.desktop.main.js:653 InlineDiffService#addLine: line contains newline characters, which is not supported
addLinesToDiff @ workbench.desktop.main.js:653
2workbench.desktop.main.js:2061 [composer] Error getting conversation summary: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:2510:204519)
    at async Object.getConversationSummary (workbench.desktop.main.js:97:15148)
    at async U9.updateComposerSummaryIfOutdated (workbench.desktop.main.js:2061:32354)
updateComposerSummaryIfOutdated @ workbench.desktop.main.js:2061
Uncaught ResizeObserver loop completed with undelivered notifications.
workbench.desktop.main.js:972 [composer] Could not retrieve model lines for diff calculation for URI: file:///c%3A/Users/alex_/OneDrive/Desktop/V2%20project/Dev/scripts/combat/combat_screen.gd, version: 5
getCodeBlockDiffStats @ workbench.desktop.main.js:972
Uncaught ResizeObserver loop completed with undelivered notifications.
workbench.desktop.main.js:2061 [composer] Error getting conversation summary: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:2510:204519)
    at async Object.getConversationSummary (workbench.desktop.main.js:97:15148)
    at async U9.updateComposerSummaryIfOutdated (workbench.desktop.main.js:2061:32354)
updateComposerSummaryIfOutdated @ workbench.desktop.main.js:2061
workbench.desktop.main.js:642 ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:2510:204519)
    at async Object.checkNumberConfig (workbench.desktop.main.js:97:15148)
    at async workbench.desktop.main.js:642:22622
    at async s (workbench.desktop.main.js:642:22395)
    at async UHt.j (workbench.desktop.main.js:642:22605)
j @ workbench.desktop.main.js:642
3workbench.desktop.main.js:2061 [composer] Error getting conversation summary: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:2510:204519)
    at async Object.getConversationSummary (workbench.desktop.main.js:97:15148)
    at async U9.updateComposerSummaryIfOutdated (workbench.desktop.main.js:2061:32354)
updateComposerSummaryIfOutdated @ workbench.desktop.main.js:2061
Uncaught ResizeObserver loop completed with undelivered notifications.
workbench.desktop.main.js:660 [composer] error in handleSlashEditResponseSingleDiffPure ConnectError: [canceled] This operation was aborted
    at wWs.$endAiConnectTransportReportError (workbench.desktop.main.js:2510:203774)
    at dAi.S (workbench.desktop.main.js:660:56193)
    at dAi.Q (workbench.desktop.main.js:660:55971)
    at dAi.M (workbench.desktop.main.js:660:55059)
    at dAi.L (workbench.desktop.main.js:660:54160)
    at Qle.value (workbench.desktop.main.js:660:52952)
    at $.B (workbench.desktop.main.js:46:2392)
    at $.fire (workbench.desktop.main.js:46:2611)
    at sne.fire (workbench.desktop.main.js:2492:10362)
    at l.onmessage (workbench.desktop.main.js:4938:12216)
handleSlashEditResponseSingleDiff @ workbench.desktop.main.js:660
Uncaught ResizeObserver loop completed with undelivered notifications.
workbench.desktop.main.js:660 [composer] error in handleSlashEditResponseSingleDiffPure ConnectError: [unavailable] Error
    at wWs.$endAiConnectTransportReportError (workbench.desktop.main.js:2510:203774)
    at dAi.S (workbench.desktop.main.js:660:56193)
    at dAi.Q (workbench.desktop.main.js:660:55971)
    at dAi.M (workbench.desktop.main.js:660:55059)
    at dAi.L (workbench.desktop.main.js:660:54160)
    at Qle.value (workbench.desktop.main.js:660:52952)
    at $.B (workbench.desktop.main.js:46:2392)
    at $.fire (workbench.desktop.main.js:46:2611)
    at sne.fire (workbench.desktop.main.js:2492:10362)
    at l.onmessage (workbench.desktop.main.js:4938:12216)
handleSlashEditResponseSingleDiff @ workbench.desktop.main.js:660
workbench.desktop.main.js:974 [composer] no diff id for uri OV
addLinesToDiff @ workbench.desktop.main.js:974
workbench.desktop.main.js:974 [composer] no diff id for uri OV
cancelDiff @ workbench.desktop.main.js:974
3Uncaught ResizeObserver loop completed with undelivered notifications.
workbench.desktop.main.js:2061 [composer] Error getting conversation summary: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:2510:204519)
    at async Object.getConversationSummary (workbench.desktop.main.js:97:15148)
    at async U9.updateComposerSummaryIfOutdated (workbench.desktop.main.js:2061:32354)
updateComposerSummaryIfOutdated @ workbench.desktop.main.js:2061

Examples like this where it doesn’t do anything just stops: 92230850-f41b-44c6-91ac-48c99925a1a3
Not getting the option to copy request IDs from previous chats but can add some as the edit tool fails again

@dcastl Dude, what’s the problem?