The diff algorithm was stopped early (after 5000ms

keep getting this error “the diff algorithm was stopped early (after 5000ms” I have a paid subscription. For sometime the composer will edit inline and then stop editing inline and starts overwriting the entire code and deletes most of the code. S o then you have to go manually and edit all the line of codes, Very frustrating, then it suggests where to edit , thats basically a complete manual. i’m thinking of moving to another platform to build my app.

1 Like

unfortunately im getting same error, 02/03/2025
I will try another platform

Hey, have you got a screenshot of how this shows up in the editor?

The forum isn’t allowing me to post photos saying I’m a newbie

Hey, give it a try now!




This has started to happen a lot with the agent, the normal edit is working better.
And sometimes I face problems with code multiplication, for example, let’s say my code has 6000 lines, then it goes to 12000 and that’s it, I think the agent can’t finish and so it keeps multiplying the codes.
This happens a lot, especially with files longer than 6000 lines.

Hmm this seems like an issue with our Apply model, let me throw this to the team to look into!

1 Like

I’ve just discovered that when your file reaches 9000 lines of code, the editor doesn’t apply it any more, there’s even a message saying “applying”, but out of nowhere everything stops and it goes back to the original code, what a shame, my only hope is the agent that’s having problems, at least it’s still working sometimes.
I started using Github Copilot PRO, but when it reaches 6000 lines it doesn’t work anymore, and then I found Cursor because it can handle larger files, but now I’ve discovered its limit too.
I hope they increase it more, if not I’ll have to look for others, I loved Cursor.