Description
I am experiencing an issue with the Codex extension in VS Code where the Revert Changes functionality does not work correctly.
When I click Revert Changes , the extension displays the following message:
No changes reverted
There were issues reverting some files
The affected files are listed under the “Skipped” section.
Steps to Reproduce
Open a project in VS Code.
Use Codex to make changes to one or more files.
Click Revert Changes (or Undo/Revert from the Codex UI).
Observe that the revert operation fails and the files remain modified.
Actual Behavior
Revert operation fails.
A popup appears indicating that no changes were reverted.
Some files are listed as skipped.
The modified files remain unchanged.
Expected Behavior
All changes made by Codex should be reverted successfully.
Files should return to their previous state before the Codex modification.
No files should be skipped unless a clear reason is provided.
Environment
VS Code Version: 1.123.0
Codex Extension Version: 26.5602.30954
Operating System: Windows
EricGT
June 5, 2026, 10:48am
2
Welcome to the forum!
You are welcome to discuss Codex issues on the forum, however the official place to report and track them is the GitHub issue tracker for OpenAI Codex .
I had ChatGPT look for the closest related issue and it identified:
opened 01:38PM - 25 Nov 25 UTC
bug
extension
### What version of the VS Code extension are you using?
0.4.46
### What subsc… ription do you have?
bussiness
### Which IDE are you using?
vscode
### What platform is your computer?
Darwin 25.1.0 arm64 arm
### What issue are you seeing?
Environment: macOS, VSCode extension 0.4.46.
Codex deleted parts of my code unexpectedly. When I clicked the Revert changes button in the VSCode extension, it showed “Failed to revert changes.” The history changes panel did not correctly display the deleted parts, although the conversation’s history of changes did show them. I had to manually copy and paste from the conversation history to avoid losing uncommitted code.
The revert button in the VSCode extension does not work properly and needs to be fixed. I also suggest adding an option or prompt to automatically create a commit before Codex starts editing, so it is easier to restore previous versions.
### What steps can reproduce the bug?
I asked Codex to find duplicate parts in the code and delete them, but Codex mistakenly started truncating the file from an incorrect location, causing the file to be cut off and a large amount of code after that point to be lost. When I clicked the revert button (↩️), it showed “failed to revert the changes.”
### What is the expected behavior?
_No response_
### Additional information
_No response_
If that issue matches your problem, consider adding a reaction on the GitHub issue page itself, not just on the forum topic, as reactions on GitHub help the developers gauge impact and prioritize work.
If it is not the same issue, try searching the existing GitHub issues for a closer match. If you cannot find one, then open a new issue with as much detail as possible.
@EricGT Thanks for guiding me to the right platform for posting this. I checked and found that the same issue has already been reported there.