# Not all Agent edits are shown in diff view

**URL:** <https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413>\
**Category:** Bug Reports\
**Tags:** checkpoints, review\
**Created:** [February 20, 2026, 11:01am UTC](https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413 "2026-02-20T11:01:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Ansad](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ahmed\_Ansad](https://forum.cursor.com/u/Ahmed_Ansad)\
**Post date:** [February 20, 2026, 11:01am UTC](https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413/1 "2026-02-20T11:01:31Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 20, 2026, 2:07pm UTC](https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413/3 "2026-02-20T14:07:04Z")

</div>

Split this topic on February 20, 2026, 2:07pm UTC

2 posts were merged into an existing topic: [Only some diffs are shown whhen agent makes changes](https://forum.cursor.com/t/only-some-diffs-are-shown-whhen-agent-makes-changes/152099)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 20, 2026, 2:06pm UTC](https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413/4 "2026-02-20T14:06:34Z")

</div>

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](https://forum.cursor.com/t/only-some-diffs-are-shown-whhen-agent-makes-changes/152099)

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.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 20, 2026, 2:07pm UTC](https://forum.cursor.com/t/not-all-agent-edits-are-shown-in-diff-view/152413/5 "2026-02-20T14:07:10Z")

</div>

Closed on February 20, 2026, 2:07pm UTC


