It would be nice to hear something more from staff on this. It’s not fair for a paid product to perfrom this way.
This product doesn’t work that way.
בתאריך יום ה׳, 5 בפבר׳ 2026 ב-17:49 מאת Brett <[email protected]>:
I’m having the same issue on Windows with the latest version. Guys, this has been reported a million times. Please do finally fix the issue as it’s really bothering users of your paid product.
It doesn’t work that way with this product, I think they make sure they have at least two serious bugs every time.
בתאריך יום ו׳, 6 בפבר׳ 2026 ב-15:00 מאת umberto <[email protected]>:
Same issue. I’m paying for Pro+ but can’t use it because of this lol.
At least they are very fair, the bug is the same for all levels of subscribers, I’m on ultra, and I still have the same thing
Due to this issue combined with the following ones, I’m no longer using Cursor to view files or manage my source control:
My current workaround is to use Visual Studio Code to view and edit files manually, check the diffs after a chat edits the code, and commit code to my repository. In my Cursor instance on a second monitor, I only have open the Chat panel, the agents panel, and sometimes a plan file.
Note that this isn’t much different than my previous setup which used Visual Studio Code alongside Claude Desktop. Cursor is slightly better than that, due to things like the semantic indexing making it better at manually pulling in files as needed, the @ and / commands making it easy to manually add context, and the summarize functionality being useful to get extra context window usage when a chat goes long. But needing to constantly work around and troubleshoot multiple bugs is wasting my time and making me lose confidence in Cursor.
I just had this issue happen again after restarting Cursor after installing the most recent update:
Version: 2.4.31 (system 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
What’s more, the phantom unsaved changes showed up in my open Visual Studio Code instance the moment Cursor launched. My same workaround from before also works in Visual Studio Code: If you stage all changes, the phantom changes disappear, while any actual changes remain and can then be un-staged.
The version has been updated to 2.4.31, and I have also encountered this problem.
@deanrie This issue is still present for me after updating:
Version: 2.5.20 (system 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.26100
I’ve updated to version 2.5.20 (Stable) with VSCode 1.105.1, and the issue is still occurring on my end too.
Hey, I can see the issue still reproduces on 2.5.20. Earlier I said it should be fixed in 2.3.x, but clearly that fix didn’t cover all cases. It’s frustrating that this has been going on for so long.
I’ve forwarded this to the team again with the latest details from this thread.
I’ll let you know if there are any updates on the fix.
For me it seems to be resolved in the latest version.
Version: 2.5.25 (system setup)
VSCode Version: 1.105.1
Commit: 7150844152b426ed50d2b68dd6b33b5c5beb73c0
Date: 2026-02-24T07:17:49.417Z
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.26200
I hope, afraid to believe
I just had this happen again after updating cursor and restarting it:
Version: 2.6.11 (system setup)
VSCode Version: 1.105.1
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990
Date: 2026-03-03T18:57:48.001Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100
Been having this on almost every restart. Experienced on v 2.5.26 and 2.6.11
Version: 2.6.11 (user setup)
VSCode Version: 1.105.1
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990
Date: 2026-03-03T18:57:48.001Z
Build Type: Stable
Release Track: Default
Electron: 39.6.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
Solution/Workaround: When this issue is seen, press Ctrl + E (windows) or Cmd + E (mac) or click the double arrows icon in top right
. This bug is an issue with stuff being broken in the old editor layout view, like other recent bugs (1, 2).
If you see the double arrows at the top left you are in editor classic layout I believe. If you then press Ctrl + E (windows) or Cmd + E (mac) then it toggles the editor and the double arrows go away or is shown, when this happens this “phantom unsaved changes” bug goes away.
I had this happen again after restarting Cursor when updating to the next version:
Version: 2.6.18 (system setup)
VSCode Version: 1.105.1
Commit: 68fbec5aed9da587d1c6a64172792f505bafa250
Date: 2026-03-10T02:01:17.430Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100
I don’t think I had this issue happen in between this update and the last one, so it could be tied to the updates themselves or Cursor running in admin mode to be able to do the updates. But take that with a grain of salt, because I don’t restart Cursor very often outside of doing updates, and the updates are quite frequent. It could just be an intermittent error being intermittent.
Still happening. I need to do a commit now before opening cursor or every time I close cursor because it will pop up all these changes the next time I open that need to be accepted/discarded and it is impossible to track what chat these changes come from.
Alternatively, can use the timeline feature, and revert to the save before opening cursor.
I have tried to figure out what conditions cause this, and can’t. This appears to be a completely unavoidable thing that is just sloppy on Cursor.
Version: 2.6.19 (user setup)
VSCode Version: 1.105.1
Commit: 224838f96445be37e3db643a163a817c15b36060
Date: 2026-03-12T04:07:27.435Z
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
This thing is driving me crazy.
Ok, I got tired waiting for a fix and conducted some research on my own. And it ended up in a PowerShell script which helps me in dealing with the bug outcome. What the script does:
- It runs at the launch of Cursor IDE, i.e. immediately after the file(s) get corrupted.
- It checks current status of git checkout (recursively into submodules).
- For each file marked as modified by git - it checks whether the file has actual changes or bad line endings only.
- If the file is corrupted then it restores last committed file content from git.
- It reports all the corrupted (I call them “haunted”) files, so they can be parsed by the IDE’s problem matcher and shown in the Problems window.
What the script does NOT do:
- It doesn’t stop the file from being corrupted during the next IDE restart.
- It doesn’t restore file modification time to the value it had before corruption, hence it will be considered as “modified” by you build system and will trigger a rebuild.
- It doesn’t prevent other files from becoming haunted.
- It doesn’t detect other forms of file corruption (e.g. BOM stripping) but you can ask your AI to add such conditions - keep diff generated by a
$realDiff = git diff --ignore-cr-at-eol -- $file 2>$nullline then analyze it.
However, I can see all the haunted files in the Problems window and perform a two-click exorcism on each of them: one click to open the file then one click on a “keep All” button.
The script (is supposed to be run in the root of git checkout):
# Fixes files corrupted by Cursor IDE's AI edit caching bug.
# Cursor caches AI-edited files with LF endings and restores them on restart,
# overwriting CRLF files on disk.
# This script detects files with line-ending-only changes and restores CRLF.
# Only visits dirty submodules (recursively), skipping clean ones entirely.
$ErrorActionPreference = "SilentlyContinue"
$processRepo = {
param($path, $label, $self)
Set-Location $path
$statusLines = git status --porcelain 2>$null
if (-not $statusLines) { return @{ fixed = @(); skipped = @() } }
$fixed = @()
$skipped = @()
$jobs = @()
$files = @()
foreach ($line in $statusLines) {
if ($line -notmatch '^ [mM] (.+)$') { continue }
$entry = $Matches[1].Trim()
if (Test-Path $entry -PathType Container) {
$absPath = (Resolve-Path $entry).Path
$jobs += Start-Job -ScriptBlock $self -ArgumentList $absPath, "$label$entry/", $self
}
elseif (Test-Path $entry -PathType Leaf) {
$files += $entry
}
}
foreach ($file in $files) {
$realDiff = git diff --ignore-cr-at-eol -- $file 2>$null
if (-not $realDiff) {
git checkout -- $file 2>$null
$fixed += "$label$file"
} else {
$skipped += "$label$file"
}
}
if ($jobs.Count -gt 0) {
$results = $jobs | Wait-Job | Receive-Job
$jobs | Remove-Job
foreach ($r in $results) {
if ($r.fixed) { $fixed += $r.fixed }
if ($r.skipped) { $skipped += $r.skipped }
}
}
return @{ fixed = $fixed; skipped = $skipped }
}
$result = & $processRepo $PWD.Path "" $processRepo
$hauntedCount = $result.fixed.Count
# Skipped first (low-contrast)
if ($result.skipped.Count -gt 0) {
Write-Host "Skipped $($result.skipped.Count) file(s) with real changes:" -ForegroundColor Cyan
foreach ($f in $result.skipped) {
Write-Host " $f" -ForegroundColor Cyan
}
Write-Host ""
}
# Haunted list (high-contrast yellow)
if ($hauntedCount -gt 0) {
Write-Host "Fixed line endings in $hauntedCount file(s):" -ForegroundColor Yellow
foreach ($f in $result.fixed) {
Write-Host " $f" -ForegroundColor Yellow
}
Write-Host ""
}
# Results: one Problems-panel entry per haunted file. Actual path = clickable; open file → "Keep all" → exorcised.
if ($hauntedCount -gt 0) {
foreach ($f in $result.fixed) {
$path = $f -replace '\\', '/'
Write-Output "${path}(1,0): warning : Haunted (line-ending reverted)."
}
Write-Host "$hauntedCount files are haunted (reverted). Call an exorcist." -ForegroundColor Yellow
} else {
Write-Host "No line-ending-only corruptions found." -ForegroundColor Green
}
To launch the script at the IDE srartup and to parse its results into Problems window I added the following into tasks.json:
"tasks": [
{
"label": "Fix Cursor line ending corruption",
"type": "shell",
"command": "powershell",
"args": ["-ExecutionPolicy", "Bypass", "-File", "${workspaceFolder}/fix-line-endings.ps1"],
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "silent",
"panel": "shared",
"close": false
},
"problemMatcher": {
"owner": "cursor-haunted",
"fileLocation": "relative",
"pattern": {
"regexp": "^(.*)\\((\\d+),(\\d+)\\):\\s*warning\\s*:\\s*(.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
}
}
]
And a disclaimer. The script works fine for me but I haven’t tested it on any other system. Use the script on your own risk, don’t blame me if it makes something unexpected. Commit, stash or backup all your work-in-progress changes before trying the script for the first time(s) to ensure that it doesn’t revert you work.
