Repository navigation
Project config is not loaded when resuming a thread via /resume or codex resume #15007
Description
What version of Codex CLI is running?
codex-cli 0.115.0
What subscription do you have?
no
Which model were you using?
gpt-5.4
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
Summary
When I start Codex normally with codex inside a project directory, it correctly loads the project-level config (Project config).
However, if I resume a thread either by:
- using
/resumeinside Codex, or - starting with
codex resume ...
Codex does not load the project-level config. It falls back to the system-level config (System config) instead.
Why this matters
In my setup:
System configuses my official OpenAI account/settingsProject configoverrides that and uses a third-party model endpoint for this specific project
Because resumed sessions ignore the project config, requests are sent to the wrong endpoint/account after resume.
What steps can reproduce the bug?
Steps to reproduce
- Configure
System configto use the default/official OpenAI endpoint/account. - Configure
Project configin a project directory to use a different provider or third-party model endpoint. cdinto that project directory.- Run
codex. - Confirm that Codex correctly uses the project-level config and sends requests to the third-party endpoint.
- Create a conversation/thread, then resume it in either of these ways:
- use
/resumeinside Codex - or run
codex resume <thread-id>from the same project directory
- use
- Observe that Codex no longer uses the project-level config, and instead uses the system-level config.
What is the expected behavior?
Expected behavior
When resuming a thread from within a project directory, Codex should still load and apply the project-level config exactly like a normal
In other words, resume should preserve the same config resolution behavior as a fresh start in that project.
Additional information
Environment
- OS: Windows
- Codex CLI version:
codex-cli 0.115.0 - Resume method tested:
/resumecodex resume <thread-id>
Additional notes
This seems specifically related to config resolution during resume flow.
A fresh codex launch inside the same project directory works correctly, so the project config itself is valid and can be loaded normally.
Suspected cause
It looks like the resume flow may not be resolving the current project directory and/or loading project-level config before restoring the thread.
Activity
github-actions commentedon Mar 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action