I’ve created a bug report for it, but I guess it could become a feature request. Sounds like as of now, Cursor is only allowing the overlay method which like you said is worse because the button positions change.
https://forum.cursor.com/t/2-6-13-undo-keep-buttons-dont-return-after-undo-redo-shortcut/154055