The content of the file is newer” popup appears unexpectedly

Sometimes when using Opus 4.6 Max, and occasionally with other models (not 100% sure which ones), I get the following popup message:

“The content of the file is newer. Do you want to overwrite the file with your changes, or revert your changes?”

This appears even when I am the only one editing the file and I haven’t manually modified it outside of Cursor.

Questions:

  • What exactly triggers this message?

  • Is the model modifying the file in the background?

  • How should I safely handle this — should I choose Overwrite or Revert?

This behavior happens intermittently and can interrupt the workflow.

image

Is this by any chance happening when creating plan files? I faced same problem with plan files only - it was fixed in some minor version of 2.4.x but now when I upgraded to 2.5.x - the problem is back… I am really getting tired of new updates breaking previous fixes. I dont mean to sound rude, kind of need to vent, but how come nobody at cursor team realizes their versioning is broken? It is happening every single update and I complained many times and so did others.

1 Like

Hey, this is a known issue. The dialog shows up when the editor detects a mismatch between the file on disk and the version in the editor buffer. Here’s a quick breakdown:

  1. What causes it: The agent writes changes to the file on disk while the editor is holding a slightly different version in memory. That mismatch triggers the conflict dialog, even if you didn’t change anything manually.

  2. Does the model modify the file in the background: Yes. During agent sessions, especially while iterating on a plan, the agent writes directly to disk.

  3. What to do: In most cases, choose Revert. That pulls in the latest version the agent wrote to disk. Overwrite will write the editor’s version, which might be outdated, over what the agent just wrote.

Ideally, this dialog shouldn’t appear at all if you didn’t make manual edits. The team is aware and it’s a tracked issue.

What version of Cursor are you on? Also, are you using plan mode when this happens?

Yes, I am using planning mode.
Version: 2.5.20 (user setup)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045