Skip to content

[Bug][Windows/WSL] Windows-absolute model_catalog_json breaks Codex Desktop WSL configuration loading #8865

Closed

Description

@ZhenyuXiao

Client or integration

Codex App

Area

Catalog / models

Summary

When Windows OpenCodex is used with Codex Desktop's WSL agent environment, a Windows-absolute model_catalog_json in the shared Codex configuration breaks configuration loading in the Linux app-server. Desktop reports that it cannot load ChatGPT configuration, with No such file or directory.

Changing only this value from a Windows absolute path to "opencodex-catalog.json" makes Desktop work again on my installation. An isolated test with the installed Desktop WSL engine independently reproduced the configuration failure and verified that the relative path actually loads the catalog, rather than merely hiding the error.

Expected: OpenCodex's generated catalog binding should be usable by the selected Codex runtime. For a catalog beside the shared user config, a config-relative path would avoid embedding the generating OS's path syntax and would support switching between Windows-native and WSL agent environments.

Reproduction

Observed Desktop workflow:

  1. Run OpenCodex on Windows and use Codex Desktop with the agent environment set to WSL. The shared user config/catalog are on the Windows drive, accessible inside WSL under /mnt/c/Users/<user>/.codex/.
  2. With model_catalog_json = "C:\\Users\\<user>\\.codex\\opencodex-catalog.json", open Codex Desktop in WSL mode.
  3. Observe the configuration loading failure / No such file or directory.
  4. Change only that setting to model_catalog_json = "opencodex-catalog.json" and reopen Desktop: it works.

Independent isolated A/B/C test on 2026-11-17:

  • Engine: the Desktop-provided Linux codex under the Windows Codex home's bin/wsl/<hash>/codex, reporting codex-cli 0.169.0-alpha.11.1.
  • Create three separate temporary CODEX_HOME directories in WSL, each containing an identical copy of the existing OpenCodex catalog and a minimal config.toml with only model_catalog_json. Set CODEX_SQLITE_HOME to a private subdirectory for each case.
  • Use a working directory different from all three homes. Do not copy authentication credentials.
  • Start codex app-server; sequentially send initialize, initialized, config/read with includeLayers: false, and model/list, waiting for the responses before closing stdin. No inference request is sent.
Value config/read model/list
Windows absolute path to the existing Windows catalog Error -32603; file not found 9 models after fallback to defaults
opencodex-catalog.json (copy beside temporary config) Success 26 models
/mnt/c/Users/<user>/.codex/opencodex-catalog.json Success 26 models

The original catalog exists and is readable using the /mnt/c/... spelling. The relative case works even though the process working directory differs from CODEX_HOME.

Scope limitation: the Desktop UI behavior is the operator's observed A/B result; the independent automated test exercises the configuration/model RPCs, not the entire GUI. I have previously observed OpenCodex writing back the Windows-absolute binding, but have not re-run a live start/sync reinjection during this latest isolated test. Please verify which current injection paths rewrite the setting; this report does not claim every sync does so.

Version

@bitkyc08/opencodex 2.100.4 (Windows npm installation). Tested Desktop WSL engine: codex-cli 0.169.0-alpha.11.1. Exact Desktop shell version was not collected for this test.

Operating system

Windows, version 26H2, build 26300.9711 (registry ProductName reports Windows 10 Pro); WSL2 with NixOS. Exact NixOS release was not collected. OpenCodex runs on Windows; the Codex app-server runs on Linux inside WSL.

Provider and model

Not provider-specific. Failure occurs during configuration loading, before model inference.

Logs or error output

Windows-absolute case:

configWarning:
  summary: Invalid configuration; using defaults.
  details: No such file or directory (os error 2)

config/read:
  code: -32603
  message: failed to resolve feature override precedence: No such file or directory (os error 2)

Relative and Linux-absolute cases: config/read succeeded and model/list returned 26 entries. All three test app-server processes exited 0 after stdin was closed; exit status alone would therefore miss the configuration failure.

Screenshots and supporting files

No screenshots or private catalog attached. The table above records the isolated test results.

Related, but not duplicates:

Codex's public configuration implementation (codex-rs/core/src/config/mod.rs) uses a base directory when deserializing relative AbsolutePathBuf values (deserialize_config_toml_with_base) and reads the catalog through std::fs::read_to_string (load_catalog_json). This is consistent with the isolated test: relative catalog paths are supported, while a Windows path string does not identify the corresponding file to a Linux process. Translating CODEX_HOME does not automatically translate strings stored inside TOML.

Suggested direction: preserve/generate a config-relative binding when the generated catalog is beside the config; test both Windows-native and WSL consumers and ensure subsequent injections do not replace the portable binding with a host-specific absolute path. This is a proposed direction, not a tested OpenCodex patch.

Redacted configuration

TOML, failing in WSL:

model_catalog_json = "C:\\Users\\<user>\\.codex\\opencodex-catalog.json"

Working workaround:

model_catalog_json = "opencodex-catalog.json"

The other routing/account settings remain unchanged in the Desktop A/B comparison. The isolated RPC test uses only the catalog setting.

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    catalog
    platform
    on Nov 17, 2026
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

    bugcatalogplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions