Extremely inconsistent undo (and re-do) behaviour
Open 💬 0 comments Opened Jun 14, 2026 by movy
What version of the IDE extension are you using?
26.609.30741
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
Darwin 24.6.0 arm64 arm
What issue are you seeing?
When pasting or typing text and pressing CMD-Z (undo), it is very hard to predict what Codex will do exactly: sometimes it clears typed text, some it clears _several_ pasted blocks, another time it clears typed text but keeps pasted block etc. etc. See this very triggering behaviour in the video below:
https://github.com/user-attachments/assets/0f300e25-5301-4978-941e-2a1ac2ebf4b9
While it's not on the video, but pressing re-do does not always (i.e. _almost never_) reverts undo-induced mess, usually resulting in a complete loss of recently typed sentence/paragraph. 😭
What steps can reproduce the bug?
- Type text
- Paste text
- Press undo
- Have your expectations crushed
- Press re-do
- Be surprised even more
What is the expected behavior?
- Undo in Codex should behave exactly like undo behaves in every other text input on Earth
Additional information
_No response_