Skip to content

Issue to undo code with codex extension on visual studio code mac #2997

Closed

Description

@Pengi123

What version of Codex is running?

0.4.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

Hi, I have issue to undo code, it non stop show error "Failed to revert changes"

Activity

  1. added
    bug
    on Aug 31, 2025
  2. changed the title [-]Issue to undo code with codex extension on visual studio code mac[/-] [+]Issue to undo code with codex extension on visual studio code - mac[/+] on Aug 31, 2025
  3. changed the title [-]Issue to undo code with codex extension on visual studio code - mac[/-] [+]Issue to undo code with codex extension on visual studio code mac[/+] on Aug 31, 2025
  4. added
    extension
    on Sep 1, 2025
  5. rewinski-nz commented on Sep 2, 2025

    @rewinski-nz

    Same error here.

  6. gpeal commented on Sep 2, 2025

    @gpeal
    Contributor

    Are there specific situations that trigger this? Can you repro with an open source repo (like this one) so we can repro this as well?

  7. Pengi123 commented on Sep 2, 2025

    @Pengi123
    Author

    Are there specific situations that trigger this? Can you repro with an open source repo (like this one) so we can repro this as well?

    I open some PHP project, when I start conversation codex make changes i click instant undo and it show that error.
    So every time I click undo it show that error.

    Why is not possible to apply manually?

  8. prabhuAI commented on Sep 3, 2025

    @prabhuAI

    i do have the same issue with chatgpt-5 and codex in vscode .

  9. gpeal commented on Sep 3, 2025

    @gpeal
    Contributor

    Can you reproduce this on an open source repro? If you can provide repro steps along the lines of:

    1. Clone X repo
    2. Run Y prompt
    3. Do Z
    4. Click undo

    Then we can take a second look here.

  10. iamjackharper commented on Sep 5, 2025

    @iamjackharper

    Same for me, I work with local repositories but it has never been able to undo any change, so it's not a problem on specific changes.
    GPT 5 (all default settings), OS: Darwin arm64 24.6.0, codex version 0.4.3

  11. mattiapv commented on Sep 7, 2025

    @mattiapv

    Pre relase 0.5.4 can undo changes

  12. Alexar77 commented on Sep 8, 2025

    @Alexar77

    I have the same problem with a local 50 lines python file I don't believe it's the codes fault, I think it has something to do with vscode settings and configuration.

  13. mqhamdam commented on Sep 8, 2025

    @mqhamdam

    no way this fucking extension ruin my day.

    Had problem with reverting changes.

    switched to pre-release version.

    looking for local tasks. History empty.

    how the fuck i should bring back my working code.

    from when did we start thinking that buggy sofware is stable releasable software ? when basic settings have problems, i mean, do u guys try ur sofware before releasing it ?

  14. mattiapv commented on Sep 8, 2025

    @mattiapv

    no way this fucking extension ruin my day.

    Had problem with reverting changes.

    switched to pre-release version.

    looking for local tasks. History empty.

    how the fuck i should bring back my working code.

    when we start thinking that buggy sofware is stable releasable software ? when basic settings have problems, i mean, do u guys try ur sofware before releasing it ?

    History never worker for me, even in stable release. As soon you close the window all history is gone. Local history, never used cloud.

  15. Pengi123 commented on Sep 8, 2025

    @Pengi123
    Author

    Pre relase 0.5.4 can undo changes

    For me it is same like in before version "Failed to revert changes"

  16. 13 remaining items

  17. gpeal commented on Sep 18, 2025

    @gpeal
    Contributor

    Im having a similar issue on version 0.4.10 of the vscode extension using gpt-5 codex. But when i click 'undo' i get a red pop-up messages that says "Failed to revert changes". And the diff window remains open displaying the changes;

    Image

    Are you in a git repo?

  18. gpeal commented on Sep 18, 2025

    @gpeal
    Contributor

    Duplicate of #3567

  19. marked this as a duplicate of Undo does not work #3567 on Sep 18, 2025
  20. Pengi123 commented on Sep 18, 2025

    @Pengi123
    Author

    Duplicate of #3567

    @gpeal This is original first issue submitted, not duplicate.
    It is created 3 weeks ago.

  21. mconti80 commented on Oct 19, 2025

    @mconti80

    same error here

  22. qianlnk commented on Oct 20, 2025

    @qianlnk

    same error in cursor with azure gpt-5

  23. tces1 commented on Nov 12, 2025

    @tces1

    same error at latest linux vscode

  24. SvenBudak commented on Nov 14, 2025

    @SvenBudak

    Same error

  25. testifier commented on Nov 18, 2025

    @testifier

    Same error on mac vscode

  26. aemotyka commented on Nov 18, 2025

    @aemotyka

    Why did this get closed? It's clearly still a problem and is the original thread on the issue

  27. etraut-openai commented on Nov 18, 2025

    @etraut-openai
    Contributor

    @aemotyka, the original issue described here was fixed. If you are seeing a similar problem with the latest version of the Codex IDE Extension, please open a new issue and describe the behavior you're seeing.

  28. csjohne commented on Dec 5, 2025

    @csjohne

    same issue

  29. snehitvaddi commented on Dec 18, 2025

    @snehitvaddi

    I am on windows Cursor and using Codex through it. The issue still persists.

  30. locked as resolved and limited conversation to collaborators on Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions