Inline diff undo duplicates lines that must be reverted

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I click to undo in inline diff it duplicates lines that must be removed.

Steps to Reproduce

Try to make changes with Agent for some comments in the code and then undo them by button in inline diff.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.0.13 (user setup)
VSCode Version: 1.105.1
Commit: 48a15759f53cd5fc9b5c20936ad7d79847d914b0
Date: 2026-04-07T03:05:17.114Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

Cursor is usable. But inconvenient.

New release, new adventures.

Hey, thanks for the report and the video. This is a known issue with undo in inline diff, and the team is aware.

As a workaround, try undoing with Ctrl+Z in the editor, or use undo in the chat panel. Those use different mechanisms and aren’t affected by this bug.

The team’s aware of the issue, and your report helps with prioritization.

1 Like