Unexpected File Modification on Startup

Hey, thanks for the report. This is a known issue on Windows. Cursor can rewrite line endings on startup, creating “ghost” changes in Git.

A few things to check:

Review panel (most likely cause):

  • Open the Review panel
  • Do you see any modified files with pending changes from the Agent or AI?
  • If yes, open one of those files and click “Keep All”, then revert the changes in Git and restart. That should stop the loop for those files.

Settings (to narrow it down):

  • What does git config --global core.autocrlf return?
  • In Cursor settings Ctrl+,, what is files.eol set to?
  • Is there an .editorconfig or .gitattributes in the project?

A few users recently reported the same pattern:

The team is aware. There’s no ETA yet, but your report helps with prioritization. Let me know what you see in the Review panel.