Not all Agent edits are shown in diff view

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

  • When the AI makes multiple StrReplace edits to the same file in one prompt, not all edits appear in the diff summary
  • “Undo all” only reverts the edits that were shown in the diff, leaving the file in a broken partial state
  • This is worse across multiple files — some files revert, others don’t

Steps to Reproduce

Do a prompt in agent code and let it edit some files. Expand the review tab (the one above prompt text area), click any one file to see changes and you will notice some changes not being highlighted in the diff view. When you click on “undo all” button in the head of review tab you will see that the non highlighted diff doesn’t get undone.

Expected Behavior

All changes should be highlighted and undone.

Operating System

MacOS

Version Information

Version: 2.5.17 (Universal)
VSCode Version: 1.105.1
Commit: 7b98dcb824ea96c9c62362a5e80dbf0d1aae4770
Date: 2026-02-17T05:58:33.110Z
Build Type: Stable
Release Track: Default
Electron: 39.3.0
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.1.0

For AI issues: which model did you use?

auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 posts were merged into an existing topic: Only some diffs are shown whhen agent makes changes

Hey, this is a known issue. The agent only shows the diff for the first change in a file, and the rest get applied without highlighting.

A few users have already run into this: Only some diffs are shown when the agent makes changes

As a workaround, you can check changes with git diff or use the Review button in chat. If “Undo all” is broken, make a commit before big agent sessions so you can use git checkout as a safety net.