The agent edit tool is being super slow, taking approximately 10s for each simple edit in each file. Using WSL2 in Windows.
Steps to Reproduce
Ask for agent to make changes in any file
Agent uses Cursor’s edit tool and the changes start to appear in the edit tool window
After agent finishes spilling all the tokens to edit, each tool call takes >10s for changes to actually happen and finish
Expected Behavior
Before, the edit tool was almost immediate after the agent finished outputting all the tokens necessary for the tool. Now after it finishes with the token’s output, it takes a long time for changes to take place. This completely breaks the workflow for the usage.
Hey, thanks for the report. We’ve seen similar WSL-specific slowness before. This looks related to a known issue with edit tool performance on WSL: Slow plan editing while using Auto
A couple of questions to help narrow it down:
Does your project live on the Linux filesystem, for example /home/..., or on the Windows filesystem, for example /mnt/c/...? Cross-filesystem access through WSL adds significant overhead.
Does the issue persist if you open the project directly in Windows, not through WSL?
Can you grab a Request ID from a slow edit? Chat context menu at top right > Copy Request ID
The team is aware of WSL-related performance issues. Your report helps with prioritization. The more data points we have, the better.
Since it works fine when you open it in Windows but breaks in WSL, that points to WSL-specific overhead. Even though your project is on the Linux filesystem, which is the right setup, the edit tool still has to go through some IPC layers during the apply step, and that can add latency.
For now, one thing to try is to make sure you don’t have any heavy extensions running in the WSL session. You can check via Cmd+Shift+P > Developer: Open Process Explorer and see if extensionHost spikes during edits.