Cursor adds extra empty line at the end of files with tool calling

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor adds extra empty line at end of the files after analyzing/reading them

Steps to Reproduce

Just normal agent prompting ,

Expected Behavior

no extra empty lines should be added at the end of the files

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.44
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z (1 wk ago)
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin x64 24.4.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a known issue, and the team has already fixed it in version 2.3.

The bug affects files after the Agent runs and adds trailing newlines when the IDE starts, ignoring the files.insertFinalNewline and files.trimFinalNewlines settings.

Related threads with more info:

Please update to version 2.3 and check if the issue is resolved.

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