Project isn’t too large. several micro services and a web application.
Yes, there are files about 1mb, I suppose.
Tried switching between models and the issue was persistent.
Sometimes it goes away for a while and then returns.
Very problematic, as I have to instruct cursor to use scripts for modfiying files, whic I suppose costs me huge amounts of tokens …
Thanks for the extra info. The “maxBuffer length exceeded” issue is definitely interesting. It can be related to the project size and how many files the agent is trying to process.
A few workarounds that might help:
Try reducing the agent’s scope:
Use @-mentions to explicitly point to only the files or folders you need
Close any extra open tabs before running the plan
Try splitting a big task into a few smaller plans
For large files (around 1MB):
If possible, add them to .cursorignore if the agent doesn’t need to edit them
Try working with one microservice at a time
Check your network settings: Cursor Settings > Network > Run Diagnostics. Sometimes timeouts can be caused by network issues
The OTLPExporter errors are a known issue in 2.3.35+. The team is working on a fix, but it’s related to telemetry, not ApplyPatch directly.
The “maxBuffer length exceeded” part is interesting. To dig in, could you:
Send the Request ID from when ApplyPatch fails? In the chat context menu (three dots on the right) select Copy Request ID. This will help the team check what’s breaking on the server side.
Run a quick diagnostic test: try rolling back to 2.3.34 and disable auto-updates in Settings > Application > Update > “none”. If the issue goes away, that would confirm it’s version-related.
If we can confirm a regression with the Request ID, I’ll pass it to the team as a priority.
I’ve noticed a pattern that might help the Cursor team identify and filter similar cases in backend logs:
When “Apply patch” fails, Cursor still seems to think it succeeded, but the actual change applied to the file is almost zero — e.g., it only deletes an empty line or someelse.
It might be worth checking the diff size right after applying the patch. If the diff is obviously abnormal, Cursor should trigger additional analysis / troubleshooting instead of treating it as a success.
From my experience, this doesn’t feel rare (likely >1%). The Cursor team may want to query backend logs for requests with suspiciously tiny diffs after “successful” apply operations and investigate them further.