Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The AI agent frequently times out when attempting to make diff-based edits to long files. The agent should have intelligent logic to determine when diff edits are appropriate versus when it should write a new file and delete the old one, or use other more efficient editing strategies.
Steps to Reproduce
Have a long file open (e.g., >1000 lines)
Request the AI agent to make modifications to the file
Agent attempts diff-based editing
Operation times out without completing the edit
Expected Behavior
Agent should intelligently assess file size and edit complexity
For large files or extensive changes, agent should use alternative strategies:
Write new file and replace old one
Break edits into smaller chunks
Use more efficient editing approaches
Agent should complete edits without timing out
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.5.11 (Universal)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0