Skip to content

/undo command not working in codex CLI #6074

Closed

Description

@Harshkamdar67

What version of Codex is running?

0.53.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

When i try the /undo command it gives me this error

■ No ghost snapshot available to undo.

even tho there are changes that codex did but still gives me this error when i try to undo changes

What steps can reproduce the bug?

make a change and then try the /undo command

What is the expected behavior?

it should undo the changes made in the previous turn

or better yet have a option to revert changes till any past turn the user can mention

Additional information

No response

Activity

  1. oneslash commented on Nov 1, 2025

    @oneslash

    I believe this will work after the PR (#6041) is merged.

  2. antonlvovych commented on Nov 3, 2025

    @antonlvovych

    @oneslash you don't need to wait - just add this to your config.toml

    [features]
    ghost_commit = true
  3. Harshkamdar67 commented on Nov 3, 2025

    @Harshkamdar67
    Author

    @antonlvovych worked like a charm, thanks!

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions