AI Agent times out when attempting diff edits on large files - needs intelligent fallback strategy

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

Hey, thanks for the report. Which model are you using? Does this also happen in new chats?

Hey there,

  1. sonnet 4 thinking with Max mode enabled
  2. Not sure what you mean, its happened to me on a number of occasions over the last 3 days, probably more so in long chats rather than fresh ones if thats what you mean.

Thanks for the additional info. Could you share the request ID? First, you’ll need to disable privacy mode.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.