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.
Symptom
Section titled “Symptom”Codex Desktop UI 的项目列表完全为空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.
Upgrade CC Switch to a version containing commit b44f83f7, which fixed this so every third-party provider uses custom as the history bucket.
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]
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 4 real issues
- #3628CCS切换AI模型供应商后会导致codex项目无法显示
- #3779codex无法使用 后面是报错 claude去解决三个小时还是不行 We're currently experiencing high demand, which may cause temporary errors.
- #5902切换第三方时未保留官方登录,启用过后,选择OpenAI Official渠道启动,没有到登录页面直接到了对话页面,左下角无登录按钮
- #6058Codex Desktop:CC Switch 重写配置后 DeepSeek V4 Flash 推理档位从多档变成只剩两档(catalog 声明 low/high/max 但 UI 只显示两个)
- 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.
Related problems
Section titled “Related problems”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.