Skip to content

[Windows Desktop] Stale CODEX_CLI_PATH after app update breaks paginated thread restore #40796

Open

Description

@Natt-code216

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?

  1. On Windows, install/update Codex Desktop to 26.820.7780.0.
  2. Set the user-level CODEX_CLI_PATH to a valid codex.exe that reports codex-cli 0.144.5.
  3. Fully restart the desktop app so it inherits the environment variable.
  4. Open an existing local conversation whose history uses the newer paginated thread format.
  5. Observe the restore failure: paginated_threads is not supported yet.
  6. Update the executable at CODEX_CLI_PATH to codex-cli 0.149.1 and fully restart the desktop app.
  7. 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

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.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Aug 26, 2026
  2. github-actions commented on Aug 26, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. JulioAmestica commented on Sep 6, 2026

    @JulioAmestica

    Additional Windows Desktop evidence of a stale external CLI override, with a different user-visible symptom.

    Environment:

    • Desktop MSIX package: OpenAI.Codex 26.901.6511.0 (x64).
    • User-level CODEX_CLI_PATH pointed to %LOCALAPPDATA%\OpenAI\Codex\bin\codex.exe.
    • That executable reports codex-cli 0.140.0.
    • A separately updated npm CLI installation reports codex-cli 0.153.4.

    Observed:

    • Process inspection confirmed that Desktop was launching the 0.140.0 executable as its app-server, despite the separate CLI update.
    • The user reported that the Desktop model selector offered only GPT-5.5 and GPT-5.4 Mini, while the VS Code extension offered additional models. We have not independently established that the old backend was the sole cause of this selector discrepancy.
    • Updating the npm installation did not change the user-level override or replace the executable at its target.

    Action and verification:

    • Changed the user-level CODEX_CLI_PATH to the native codex.exe in the verified 0.153.4 npm installation.
    • After restarting Desktop, fresh process inspection confirmed that Desktop now runs that updated executable.
    • The post-restart visual model selector has not yet been independently verified. This is not a claim that model availability or account entitlements have been fixed.

    Limitations:

    • We do not know what originally set the override, so this does not establish an installer bug that created it.
    • Earlier troubleshooting modified local model cache/state metadata, so this was not a clean-room selector reproduction.
    • A local custom model-provider proxy is configured; no evidence currently establishes it as the cause.

    Suggested improvement: expose the actual selected app-server path and version in diagnostics, indicate when CODEX_CLI_PATH overrides the bundled runtime, and detect incompatible backend capabilities with actionable guidance. An explicit user override should not be silently rewritten; the problem is that updating a different installation can leave Desktop using an old backend without making that distinction apparent.

  4. Goudu666 commented on Sep 12, 2026

    @Goudu666

    Confirmed on macOS: stale CODEX_CLI_PATH silently hid GPT-6 Astra

    This is a second, independently verified manifestation of the same Desktop/CLI compatibility gap on macOS. Instead of failing thread restore, Desktop continued to work while its model catalog was silently downgraded.

    Environment

    • macOS 26.5.1, arm64
    • Affected ChatGPT/Codex Desktop build: 26.903.71938
    • Bundled CLI: codex-cli 0.153.4
    • External CLI selected by CODEX_CLI_PATH: codex-cli 0.148.0-alpha.15
    • The Astra catalog entry requires client version 0.153.0 or newer

    Timeline and controlled comparison

    • Sessions created on Sep 9 and Sep 10 recorded cli_version: 0.153.4, and the model picker included GPT-6 Astra.
    • After Desktop updated and fully restarted on Sep 11, new sessions recorded cli_version: 0.148.0-alpha.15, and Astra disappeared.
    • CODEX_CLI_PATH was inherited from a login LaunchAgent and pointed to an older locally built CLI.
    • codex debug models against the bundled CLI returned 8 models, including gpt-6-astra with visibility: list.
    • The same command against the override returned 7 models and no Astra.
    • Unsetting CODEX_CLI_PATH, unloading the LaunchAgent, and fully restarting Desktop immediately restored Astra.
    • No model catalog cache, authentication file, model setting, or service-tier setting was changed.

    This controlled result rules out an account entitlement or staged rollout as the cause. The active external runtime silently determined the picker contents.

    Expected behavior

    At startup, Desktop should expose the selected app-server path and version and validate an external CLI against the capabilities/minimum version required by the Desktop build. If the override is incompatible, it should either fall back to the bundled CLI or show an actionable warning before continuing.

    A stale override should not silently remove newly available models and make the problem look like an account or rollout issue.

    This is also related to #43052, but the stale input here is the selected runtime itself rather than model_catalog_json.

    The app has since auto-updated to 26.908.40834. I did not deliberately re-enable the stale override on that newer build because the machine is back in a working state.

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

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions