[2.6.13] Undo/Keep Buttons don't return after Undo/Redo Shortcut

Describe the Bug

After changes are made to a file, when clicking on the “Undo” button for a diff, the change is removed as expected, but afterward if you do Ctrl + Z to Undo pressing “Undo” (yes its a bit confusing), the undo/keep buttons do not reappear when the change is brought back. This is not a huge deal, however, this behavior already exists when you click “Keep” and then do Ctrl+Z, the undo/keep buttons reappear, so it is a bit confusing when it doesn’t work with the “Undo” button.

Since that behavior exists for Keep, I think it should work for the Undo button as well, and if I remember correctly, it used to. Furthermore, doing ctrl+z or ctrl+y (redo) works after pressing the “Keep” button, so redo should work as well for “Undo” button. This is good functionality and should be kept because sometimes you accidentally click the wrong button.

Also it seems to not matter if I am in editor classic or not, or if I have one inline diff or multiple.

Steps to Reproduce

-Have agent make change to code with inline diffs enabled
-go to an inline diff and click “Keep”, the Undo/Keep button goes away, then press Ctrl+Z to see the buttons reappear
-now do the same thing but press the “Undo” button, the change goes away, then press Ctrl+Z, and the change returns however the undo/keep buttons do not return

Expected Behavior

undo/keep buttons return after doing Ctrl+Z (undo) or Ctrl+Y (redo) after clicking the “Undo” button on an inline diff (like how pressing the “Keep” button behavior works)

Operating System

Windows 10/11

Version Information

Version: 2.6.13 (user setup)
VSCode Version: 1.105.1
Commit: 60faf7b51077ed1df1db718157bbfed740d2e160
Date: 2026-03-06T06:17:49.499Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Good catch. After “Undo” + Ctrl+Z, the behavior should really be symmetric with “Keep” + Ctrl+Z.

I’ve passed this on to the team. Let me know if you notice anything else.