Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I’m finding that the Gemini 3 Pro model running in Agent mode implementating a plan it had written is modifying files by including line numbers at the start of the lines. For example, the first 10 lines that it has written for a change to a .cpp file:
2|#include "MyPlayerController.h"
3|#include "MyGameInstance.h"
4|#include "MyPlayerState.h"
5|#include "MyGameMode.h"
6|#include "ActorA.h"
7|#include "MyCommon.h"
8|#include "ComponentA.h"
9|#include "ComponentB.h"
10|#include "ComponentC.h"
...
The 10| is written directly into the file, and appears in the diff in version control.
Steps to Reproduce
Given Gemini 3 Pro a plan, and possibly a file of sufficient size (e.g. 1450 lines?), and click “Build” with that model selected.
Expected Behavior
No line numbers in the actual text
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.1.42 (user setup)
VSCode Version: 1.105.1
Commit: 2e353c5f5b30150ff7b874dee5a87660693d9de0
Date: 2025-12-01T02:18:26.377Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Gemini 3 Pro
For AI issues: add Request ID with privacy disabled
521947df-60e5-4209-8cec-69e2c96920df
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor