You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot resume sessions when setting variable #5412
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.
Activity
github-actions commentedon Oct 20, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
session-id" do not respect CODEX_HOME #5247Powered by Codex Action
MarianoFacundoArch commentedon Oct 21, 2025
i can confirm it happens only if the path is in gitignore
tibo-openai commentedon Oct 21, 2025
Is the CODEX_HOME path provided covered by a gitignore?
MarianoFacundoArch commentedon Oct 21, 2025
Yes it is!
When i remove it from gitignore it works
MarianoFacundoArch commentedon Oct 21, 2025
How shall we fix this?
tibo-openai commentedon Oct 22, 2025
I'm working on #5311 to fix this.
fix: resume lookup for gitignored CODEX_HOME (openai#5311)
fix: resume lookup for gitignored CODEX_HOME (openai#5311)
fix: resume lookup for gitignored CODEX_HOME (openai#5311)
fix: resume lookup for gitignored CODEX_HOME (openai#5311)
fix: resume lookup for gitignored CODEX_HOME (openai#5311)