LLM not using apply patch when generating code

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Opus 5.5 (high, 1 M) and Sonnet 5.5 (high, 1 M) deliberately used python terminal command to produce code instead of the apply_patch usual flow that generates code changes and fire the review features from cursor IDE.

Steps to Reproduce

Well, I don’t know, the LLM started using the usual apply patch and then just switched to the Python command-line file update flow.

Expected Behavior

Well, LLM, when producing code and not running it, should be shown in the review feature in Cursor IDE. In this case, that’s not working because of the LLM code update decision.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.24.4
VS Code Extension API: 1.128.0
Commit: de531a68a13727d211a2888fd2ffa21a912298c0
Date: 2026-10-06T21:42:58.234Z
Layout: IDE
Build Type: Stable
Release Track: Nightly
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 27.0.0

For AI issues: which model did you use?

Opus 5.5 and Sonnet 5.5

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @Romain_G, thanks for the detailed report and the screenshot, it makes it easy to see what happened.

The review panel picks up changes the agent makes with its built-in file edit tools. Partway through this chat, the agent switched to editing files with a Python script in the terminal. Those edits were written to disk, but because they didn’t go through the edit tools, they never reached the review panel. That’s why your screenshot only lists GITHUB.md. Nothing in your setup caused this.

A few things help in the meantime:

  1. Try the Agents Window (Cmd+Shift+P, then “Open Agents Window”). Its Changes view shows your uncommitted changes from git, so it includes edits made from the terminal. Keep it on “Uncommitted” rather than “Last Agent Turn”, since the turn view only lists changes made with the edit tools. Note that “Uncommitted” shows everything uncommitted in the repo, not only the agent’s work.
  2. If you prefer to stay in the editor, the Source Control panel (or git diff) also shows every change on disk, including terminal edits.
  3. If you notice the agent editing through the terminal, stop it and ask it to redo that change with its file edit tools.

I’ve passed along your feedback that changes made from the terminal should show up in review too. I’ll post here if there’s an update.

Thanks, very good point. I guess I will stop using the old IDE and start using the new one.