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:
Hey, thanks for the report. Yeah, it looks like an issue with applying output with line numbers from the plan/diff directly into the file during Build with Gemini 3 Pro.
Could you please share:
Does it happen with other models (GPT-5.1, Claude 4.5)?
An example of the file size (number of lines) and reproducibility (every run or sometimes)?
A screenshot/video of the diff + exact steps?
Logs: View > Output > Cursor (during execution) and Help > Toggle Developer Tools > Console?
I’ve had to revert versions to the latest 2.0.x because issues with Anthropic models timing out/saying that they’ve disconnected were preventing me from doing my work, so it’ll be a little hard to get this info.
I’ve not seen it happen with non-Gemini 3 Pro models before, no. I tend to use Sonnet 4.5 (now Opus 4.5) and Composer-1, and some GPT 5.1 models, and it has not shown up.
The affected file was C++ in the range of ~1500 lines. It did this to other files, but not ALL files, strangely.
Getting at the rest of this is going to cost time and money to revert my install and try to reproduce this behavior by paying for Gemini 3 Pro output, unfortunately. If I get back into this state naturally and spot the behavior in-action, I can update this post.