Newlines in git changes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Opening the project or semtimes also after letting the agent implement something the git ui shows that there are changes in the files that were edited in my last session even though i did not change a thing. looking at the changes there are newlines at the end of files or blocks where the last agent made changes.
this is really annoying as it makes it hard to check the real changes the agent made

Steps to Reproduce

Open a recently used project, implement a feature via chat

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu β†’ About Cursor β†’ Copy)

Version: 2.2.20
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Thanks for the report! To help us narrow this down - can you clarify when exactly the newlines appear?

  1. Do they show up immediately when you open Cursor (before doing anything)?
  2. Or only after the Agent finishes making changes to files?

We’re tracking a similar issue here: The cursor adds blank lines - that one specifically occurs on IDE startup. Want to confirm if yours is the same or something different happening during Agent edits.

Seems like the Same Problem. You can close this one if its already on your table. The Meetings seem to appear when I erstarrt cursor and when I start a new Chat or when a Agent finishes its task

1 Like

A post was merged into an existing topic: The cursor adds blank lines

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