I am also having this problem. Only it has progressively gotten worse to the point where the cursor locks up at the start of my project because it is trying to add whitespace to every single file in my extensive project. I had to force quit Cursor.
Also having this same issue of modifying whitespace in hundreds of files on startup. Itās been a issue for months - starting to become a dealbreaker especially when it results in potentially hours of time spent reviewing ws changes mixed with actual changes - please prioritize this issue!
Hello everyone, some of my colleagues and I are experiencing the same issue and itās very annoying. In every project, new empty lines keep appearing. I even found a file from a Vibe coder with 56 empty lines at the end. WTF.
Today, some of my teammates told me they had to discard changes because of those new lines, which ended up overwriting work from several sessions. What a waste of time and money caused by such a trivial bug.
Letās say I had an open session with cursor IDE. During that session, 15 files were modified. I did not click āKeep Filesā, but simply committed the changes and then continued writing code manually. I close the cursor IDE and re-open it. All of those files that cursor touched will get CR/LF or new line changes applied to them
Steps to Reproduce
explained above
Expected Behavior
CR/LF new lines should not be added
Operating System
Windows 10/11
Current Cursor Version (Menu ā About Cursor ā Copy)
When we open a project with open files, Cursor alters them by appending new lines making git think they changed, requiring tedious undo operations to separate them from files with actual changes.
This makes me loathe to ever use the update feature while working.
Also happening to me and I havenāt been able to use the fix that seems to work for some people (Review ā Accept All Changes on all previous agent conversations) because now the āAccept All Changesā option has been replaced by āCommitā.
But I donāt want to commit a couple dozen files with no changes beyond the addition of a newline.
I was only able to solve this problem by deleting the entire workspace ~/.config/Cursor/User/workspaceStorage and then logging in again.
Of course, almost everything reset, but at least the problem didnāt recur.
I also noticed that I encountered a similar problem when running two background agents simultaneously. Apparently, thereās something still not perfect in this area.
Still happening, I had to nuke the workspace I was using, and was driving myself insane until I found this thread, thought it was a .git corruption issue, git index remote/local conflict or something else. In my case it was only happening to 12 files in the repository, it was always those same 12 files.
I couldnāt find the chat that modified those to try to accept changes or anything, every time I reloaded the window a new line was added to all these files.
Honestly, I hope this is resolved because itās extremely annoying to work like this. Specially in December when we are doing MAJOR refactors and cleanup to our codebase, this becomes extremely cumbersome to deal with.
FWIW - if you go back through all your old agents and keep all the files. It stops happening.
Possibly one of those chats created on an old version of cursor, so might have been fixed with an update? But the behaviour exists still for chats created on that version? No idea.
Just tested with a new agent chat, changed a file, saved (Didnāt keep changes in chat left it un-kept), reopened cursor and it didnāt add a new line.