Cursor modifies unrelated files - add empty line

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When performing a task cursor modies unrelated files and inserts line endings, makign them appear modified to git.,

Steps to Reproduce

just doing any normal agent task

Expected Behavior

shoudlnt change line endings

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.63
VSCode Version: 1.99.3
Commit: 505046dcfad2acda3d066e32b7cd8b6e2dc1fdc0
Date: 2025-11-05T18:56:58.213Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-35-generic

For AI issues: which model did you use?

Grok Code

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. There’s a similar issue already being tracked by the team.

To help the investigation, please share:

  • Which files: are these the same files the Agent previously worked on?
  • Extensions test: does it still happen with extensions disabled? Command: cursor --disable-extensions
  • Request ID: from the agent task where this occurred (Chat menu → Copy Request ID)
  • Format settings: is format-on-save enabled or any auto-format extensions (Prettier/ESLint)?

its possible theyve been worked on before, ive been using cursor for this entire codebase.
```

{

“editor.formatOnSave”: true,

“editor.defaultFormatter”: “esbenp.prettier-vscode”,

“[javascript]”: {

“editor.defaultFormatter”: “esbenp.prettier-vscode”

},

“[json]”: {

“editor.defaultFormatter”: “esbenp.prettier-vscode”,

“editor.formatOnSave”: true,

“editor.codeActionsOnSave”: {

“source.fixAll”: “explicit”

}

},

“[typescriptreact]”: {

“editor.defaultFormatter”: “esbenp.prettier-vscode”,

“editor.codeActionsOnSave”: {

“source.fixAll.eslint”: “always”

}

},

“[typescript]”: {

“editor.defaultFormatter”: “esbenp.prettier-vscode”,

“editor.codeActionsOnSave”: {

“source.fixAll.eslint”: “always”

}

},

“typescript.preferences.importModuleSpecifier”: “non-relative”,

“editor.codeActionsOnSave”: {

“source.fixAll.eslint”: “always”

},

“cSpell.ignoreWords”: [“Weis”, “Datepicker”, “datepicker”, “testid”, “Uniconta”],

“cSpell.ignorePaths”: [

“playwright-report/**”,

“src/utils/jsonData/currencies.json”,

“src/app/(main)/purchases/useRegionValues.ts”

],

“eslint.rules.customizations”: [

{

“rule”: “@typescript-eslinttypescript-eslint/no-unnecessary-condition”,

“severity”: “warn”,

“applyToAutoFix”: false

}

],

“files.watcherExclude”: {

“**/node_modules/**”: true,

“**/dist/**”: true,

“**/build/**”: true,

“**/.next/**”: true,

“**/coverage/**”: true,

“**/playwright-report/**”: true,

“**/test-results/**”: true

}

}

````
thats the eslint file for the repo
request id may be this one d8a77dc8-725f-4119-bcf2-c0b631e23cbb

Thanks for the detailed info. As mentioned above, this is a known issue the team is already tracking.

Temporary workaround:

  • Open the modified files and click “Accept all changes” → “Review next file” until all pending Agent changes are accepted. For some users, this prevents the issue from recurring on the next startup.

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