Cursor resave unchanged files

Hey, this is a known issue. Cursor can modify files on startup that Agent or Composer edited earlier, usually whitespace or EOF changes. This was supposed to be fixed in 2.3.x, but based on similar reports, some users can still reproduce it.

You’re on 2.3.35, which is newer than what others reported. Related thread: Cursor creates phantom unsaved changes on every restart (requires discarding multiple files)

I’ll need a bit more info to dig in:

  • When you check in Git, what exactly does the diff show? Real code changes, or just whitespace and newlines?
  • Try launching Cursor with extensions disabled: cursor --disable-extensions Does it still happen?
  • What extensions do you have installed, especially formatters and linters?
  • What’s your git config core.autocrlf value? On Windows, line endings can cause issues.

Temporary workaround if it’s getting in the way: after starting Cursor, just reset back to the last commit.