Cursor edit file shows different changes in the chat window and the file editor

Describe the Bug

When trying to apply some changes, the chat window shows correct change, but the file window only tries to add extra closing curly brace. No matter the model.

Steps to Reproduce

Ask about changes in Gradle build file, like try to add dependency, and see what the chat window and editor shows.

Expected Behavior

The file editor window shows correct changes.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:13:33.781Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-142-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue