Repository navigation
Description
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:
- 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/. - With
model_catalog_json = "C:\\Users\\<user>\\.codex\\opencodex-catalog.json", open Codex Desktop in WSL mode. - Observe the configuration loading failure /
No such file or directory. - 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
codexunder the Windows Codex home'sbin/wsl/<hash>/codex, reportingcodex-cli 0.169.0-alpha.11.1. - Create three separate temporary
CODEX_HOMEdirectories in WSL, each containing an identical copy of the existing OpenCodex catalog and a minimalconfig.tomlwith onlymodel_catalog_json. SetCODEX_SQLITE_HOMEto 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 sendinitialize,initialized,config/readwithincludeLayers: false, andmodel/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:
- Support Codex Desktop on Windows with WSL app-server mode #63: Windows Desktop + WSL app-server layout/home discovery.
- [Bug]: WSL Desktop runtime discovery misses CODEX_HOME/bin/wsl/<hash>/codex when service PATH has no codex #5635: discovering the Desktop-provided Linux Codex executable.
- WSL mode: runtime installer passes Windows-style path to tar inside WSL (extraction always fails); plugin RPCs all hit 30s timeouts causing "Reconnecting / request timed out" openai/codex#35133: passing Windows paths to
tarinside WSL, not this catalog configuration field.
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