Resaving files at ide opening

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I think cursor somewhy re-save files when it’s opening, or smth like that, because - project usually recompiles at start, however yesterday (before the today’s Cursor update) - it compiled and no changes were added after that.
And the most problematic problem was that in last friday (28 november) it erased ALL local changes since previous day (I was lucky to save patches in the day before that). And now I think that problem lies in Cursor IDE.
Could you please DO NOT touch files if there is no changes? and check that error when local changes were erased somewhy?

Steps to Reproduce

Just open the Cursor on the next day, or after the update (I don’t know).

Expected Behavior

local changes in the GIT project are same as yesterday, they are NOT erased.
Also NO project recompilation again.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.42 (user setup)
VSCode Version: 1.105.1
Commit: 2e353c5f5b30150ff7b874dee5a87660693d9de0
Date: 2025-12-01T02:18:26.377Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22621

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I see that when opening the IDE, files are being modified and triggering a rebuild; you also described losing local changes on November 28.

Could you please share:

  • A short video: launching Cursor → immediately the Source Control tab, to show which files are marked as changed without any actions
  • Output of commands:
  • In the repo root before launching the IDE: git status
  • Right after opening the project in Cursor: git status
  • List of worktrees: git worktree list
  • Logs and console:
  • View > Output > select “Git” and (if available) “Log (File Watcher)” - fragments around IDE start
  • Help > Toggle Developer Tools > Console - errors/warnings on opening
  • Does the same behavior occur in VS Code with the same repository
  • Which exact files get new timestamps/changes (a couple of example paths)

Temporary workaround/narrowing down the cause:

  1. Launch without extensions and check: cursor --disable-extensions
  2. Temporarily disable:
    • File > Auto Save - off
    • Settings: “Format On Save” - off
  3. Enable extension monitoring: Settings > Application > Experimental > Extension Monitor Enabled, then Cmd+Shift+P / Ctrl+Shift+PDeveloper: Open Extension Monitor - any save events on startup?

If it reproduces on a “clean” launch without extensions and with auto/format-save turned off - exact steps + the logs mentioned above. I’ll pass this to the team.

Sorry, don’t have so much time for now for testing.
The issue is pretty straightforward. You just open Cursor IDE, and after that, for example, in the Fork (application for git), you notice that several files without changes are unstashed and added.
For example, Visual Studio IDE does not allow itself to do this

1 Like

I have the same problem. After shutting down the IDE and restarting entire files, which causes them to be saved, it doesn’t work.

A temporary solution is to clear the cursor cache.
I run the IDE in WSL2 – in my case, I delete the files from the %appdata%/cursor/CachedConfigurations and %appdata%/cursor/Cache directories.

Fortunately, in my case, this didn’t result in losing any changes.

Remember to always save your changes to the repository.

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