Unexpected File Modification on Startup

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Whenever I open Cursor or the IDE performs a background scan, several files are marked as “Modified” in the Source Control (Git) tab. Upon inspecting the diff, there are no actual code changes; the only difference is the line separator (e.g., from CRLF to LF or vice versa). This leads to “ghost” changes that clutter the commit history and require manual rollbacks.

Steps to Reproduce

  1. Open a project in Cursor that has a specific line-ending configuration (e.g., CRLF).
  2. Wait for the IDE to initialize or background indexing to start.
  3. Check the Source Control (Git) panel.
  4. Observe that multiple files are marked as modified without any manual edits.

Expected Behavior

Cursor should respect the existing line endings of the files and should not modify any files automatically unless specifically edited by the user or formatted via an explicit command.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.4.31 (user setup)
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Yes - Cursor is unusable

4 Likes

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.

I’m seeing the same issue and it’s making cursor unusable our team

1 Like

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