I’m running Cursor 0.48.7 on Windows. I’ve been playing around with a large (2000 lines) file the AIs had problems trying to edit, just to experiment with the issue. I directed Gemini to do something that would result in the removal of one specific line of code. It did so, but it turns out, the apply model changed another line of code 197 lines away which Gemini noticed and commented on. Here’s the whole context:
If I click and toggle to Show Code instead of Show Diff, it reads:
// ... existing code ...
// State variables
address public owner;
address public pendingOwner;
// REMOVED: address public timelock;
bool public paused;
uint256 public maxPairsPerOperation = 10; // Limits batch size for gas concerns
// ... existing code ...
So Gemini did correctly ask for this one specific line to be removed, but the model applying the changes removed some other code 197 lines away. Maybe this is a feature I don’t know about, but I wanted to bring it to your attention when I caught it happening.
Version: 0.48.7 (user setup)
VSCode Version: 1.96.2
Commit: 1d623c4cc1d3bb6e0fe4f1d5434b47b958b05870
Date: 2025-04-02T05:04:28.547Z
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
The request ID is 682ffae6-22be-4c2d-92cc-8922f383c303.