Gemini in plan mode apply code

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Gemini in plan mode apply code

Steps to Reproduce

Doesn’t happen quite often but I asked Gemini 3 Pro to plan some change

Expected Behavior

It should only create a plan but it applied a part of the changes

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.39
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.8.0-87-generic

For AI issues: which model did you use?

Gemini 3 Pro

For AI issues: add Request ID with privacy disabled

Request ID: 35b3a3ac-d833-41d0-964f-9af0dcbfffce

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a known feature - some models (especially Gemini) sometimes ignore Plan mode restrictions and start applying changes. The issue is on the model’s side, not Cursor.

Temporary workarounds:

  • Try Claude or GPT-5 for Plan mode - they usually follow instructions more strictly
  • Add an explicit instruction to the prompt: “Only create a plan, do not apply any changes”

Let me know if it happens again with other models.