Skip to content

The Codex Desktop UI project list is completely empty - Codex

Quick fix

CC Switch changed the model_provider key name. Set it back to custom, or upgrade. Lost official login and fewer reasoning tiers remain unresolved.

Error output
Codex Desktop UI 的项目列表完全为空
English translation

The Codex Desktop UI project list is completely empty

When switching some profiles (GPT, for example), CC Switch writes a non-custom value such as packycode into model_provider in ~/.codex/config.toml. Codex Desktop uses that field as the namespace filter key for its SQLite database, so a query for history threads matches 0 rows. Rewriting the config also causes other anomalies: supported_reasoning_levels not being fully preserved when generating cc-switch-model-catalog.json, degrading the reasoning tiers; local routing config not applying so requests reach the official endpoint directly and trigger a high demand error; and auth.json being unmodifiable so the official login entry point disappears.

  1. Upgrade CC Switch to a version containing commit b44f83f7, which fixed this so every third-party provider uses custom as the history bucket.

  2. If you cannot upgrade, change the provider key back to custom in the config file by hand or with a script before starting Codex.

    ~/.codex/config.toml
    model_provider = "packycode"
    model_provider = "custom"
    [model_providers.packycode]
    [model_providers.custom]
ToolCodex
VersionUnknown
PlatformsWindowsmacOS
Why does the project list come back immediately after switching to DeepSeek?
Because the DeepSeek profile writes custom as the model_provider value, matching the namespace the history was stored under, so the UI can query the history threads.
Does editing config.toml by hand affect which model is actually used?
No. As long as name, base_url, and the other real settings under [model_providers.custom] stay unchanged, Codex still calls the right model.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.