[Windows Desktop] Stale CODEX_CLI_PATH after app update breaks paginated thread restore
What version of the Codex App are you using (From “About Codex” dialog)?
26.820.7780.0 (Windows package OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0)
What subscription do you have?
ChatGPT account (exact tier omitted; the failure is local app-server compatibility)
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
After the Windows desktop app updated, it continued launching the executable selected by the user-level CODEX_CLI_PATH override even though that CLI was older than the app-server capabilities required by the updated desktop client.
The selected executable reported:
codex-cli 0.144.5
Opening an existing local conversation that used paginated history then failed with:
恢复对话失败
paginated_threads is not supported yet
!Codex Desktop showing the restore failure: paginated_threads is not supported yet
As a result, the conversation and its local project/file context could not be restored. The desktop UI did not identify the selected CLI path or explain that the CLI was incompatible with the updated client.
Updating the same CLI installation to 0.149.1, fully exiting the desktop app, and reopening it resolved the failure. The same conversation could then be restored normally.
What steps can reproduce the bug?
- On Windows, install/update Codex Desktop to
26.820.7780.0. - Set the user-level
CODEX_CLI_PATHto a validcodex.exethat reportscodex-cli 0.144.5. - Fully restart the desktop app so it inherits the environment variable.
- Open an existing local conversation whose history uses the newer paginated thread format.
- Observe the restore failure:
paginated_threads is not supported yet. - Update the executable at
CODEX_CLI_PATHtocodex-cli 0.149.1and fully restart the desktop app. - Open the same conversation again; it restores successfully.
The sanitized override used in this reproduction was:
%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe
What is the expected behavior?
Before using an externally selected app-server binary, Codex Desktop should validate its version or required protocol capabilities.
If CODEX_CLI_PATH points to an incompatible CLI, the app should either:
- fall back to its compatible bundled CLI when safe, or
- stop before opening a thread and show an actionable compatibility error that includes the selected path, detected CLI version, required capability/minimum version, and update guidance.
It should not allow an updated desktop client to fail later with the internal implementation message paginated_threads is not supported yet.
Additional information
- This was a version/capability mismatch, not missing or corrupted conversation data.
- Before update:
codex-cli 0.144.5. - After update:
codex-cli 0.149.1; the issue no longer reproduced. - The current public release is
rust-v0.149.1. - This can compound Windows bundled-runtime discovery/relocation failures such as #40700: setting
CODEX_CLI_PATHis a common workaround for startup, but it can silently pin Desktop to a stale app-server. - A related class of problems involving desktop runtime selection and paginated history is discussed in #40178.
Suggested regression coverage: launch the desktop/app-server integration with a deliberately old external CLI override and assert that the client rejects it with a compatibility-specific error before attempting thread/resume or paginated history operations.
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action