Cursor is deleting thousands lines of CSS itself

:lady_beetle: Bug Report: CSS Duplication and Removal Issue

Description

For a very simple CSS change, Cursor generated massive duplication and unexpectedly removed a large portion of existing CSS. Specifically:

  • It increased our CSS file from ~4000 lines to ~9000 lines, mostly by duplicating existing styles.
  • Then, it removed 2000+ lines of CSS

Steps to Reproduce

  1. Open a project with a large CSS file (~4000 lines).
  2. Use Cursor to edit a small section’s UI styling.
  3. Observe the CSS file after saving or applying changes.

System Info

Version: 0.48.9 (user setup)
VSCode Version: 1.96.2
Commit: 61e99179e4080fecf9d8b92c6e2e3e00fbfb53f0
Date: 2025-04-12T18:45:22.042Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Blocking?

Yes, this issue significantly affects development by corrupting our existing styles and bloating our CSS files unnecessarily.

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