Skip to content

Cannot resume sessions when setting variable #5412

Closed

Description

@MarianoFacundoArch

What version of Codex is running?

codex-cli 0.47.0

What subscription do you have?

PRO

Which model were you using?

Codex high

What platform is your computer?

24.5.0 arm64 arm

What issue are you seeing?

When I launch commands like:

CODEX_HOME=/Users/myusername/Documents/Personal/Whatour/config/runtime/codex/fsdfds codex exec --json --skip-git-repo-check resume 019a03bf-3490-7733-bfb6-0376f023c045 "did i tell you my name? "

It does not restore the context, it creates a new session every single time. It happens only when I specify the CODEX_HOME path, if not, it works.

What steps can reproduce the bug?

Launch codex resume for sessions while specifying CODEX_HOME to a different directory. It will not work and will create a new sesson, ignoring the resume.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Oct 20, 2025
  2. github-actions commented on Oct 20, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. MarianoFacundoArch commented on Oct 21, 2025

    @MarianoFacundoArch
    Author

    i can confirm it happens only if the path is in gitignore

  4. tibo-openai commented on Oct 21, 2025

    @tibo-openai
    Collaborator

    Is the CODEX_HOME path provided covered by a gitignore?

  5. MarianoFacundoArch commented on Oct 21, 2025

    @MarianoFacundoArch
    Author

    Yes it is!
    When i remove it from gitignore it works

  6. MarianoFacundoArch commented on Oct 21, 2025

    @MarianoFacundoArch
    Author

    How shall we fix this?

  7. tibo-openai commented on Oct 22, 2025

    @tibo-openai
    Collaborator

    I'm working on #5311 to fix this.

  8. added a commit that references this issue on Oct 23, 2025
    3059373
  9. added a commit that references this issue on Oct 28, 2025
    1bf8a23
  10. added a commit that references this issue on Nov 10, 2025
    ca93d1d
  11. added a commit that references this issue on Nov 14, 2025
    db1f8b9
  12. added a commit that references this issue on Dec 2, 2025
    fe07d70
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions