Undo code
What feature would you like to see?
In the Codex CLI, there are times when a generation produces unwanted changes, but there’s currently no way to roll back the edits from a specific conversation.
Are you interested in implementing this feature?
No response
Additional information
No response
Good idea. The only way to achieve "undo" now is to commit every agent's change to VCS and drop the commit if needed.
I suggest adding /undo and /redo commands like opencode is doing it.
+1 This feature is absolutely necessary! You cannot commit code for every message in the conversation...
this feature would be a life saver!
why isnt this available yet , its very much needed
I would like to see the /undo command return as it's very useful. Sometimes you give a sub-optimal prompt, or you need to change the model for the particular task, and you need to try again.
The feature that would be best on this is a near-clone of what Claude does. You sometimes work on a bug and then you are wanting to jump to a past point in history that you branched off to fix a bug. This makes sense as a dev, because this is how we work. Additionally, sometimes you want to revert the conversation and the code - so, not just the work output, but the actual conversation as well. You never want to revert the code and not the conversation, I believe.
You never want to revert the code and not the conversation, I believe.
I would agree with this.
I'm going to close this in favor of #9203