Codex Desktop UI 的项目列表完全为空 - Codex
Quick fix
升级 CC Switch 后 model_provider 键名变更,统一改回 custom 或升到修复版本;官方登录态丢失、推理档位变少等情形仍未解决。
Symptom
Section titled “Symptom”Codex Desktop UI 的项目列表完全为空CC Switch 在切换部分 profile(如 GPT)时,将 ~/.codex/config.toml 中的 model_provider 键名写为 packycode 等非 custom 值。Codex Desktop 使用此字段作为 SQLite 数据库的命名空间过滤键,导致查询历史 thread 时命中 0 条。此外,CC Switch 重写配置还会引发其他变体异常:生成 cc-switch-model-catalog.json 时未完整保留 supported_reasoning_levels 导致推理档位退化;本地路由配置未生效导致请求直达官方触发 high demand 报错;以及无法修改 auth.json 导致官方登录入口消失。
升级 CC Switch 至包含 b44f83f7 提交的版本,该版本已修复此问题,所有第三方 provider 统一使用 custom 作为 history bucket。
若无法升级,可在启动 Codex 前手动或通过脚本修改配置文件,将 provider key 强制改回 custom。
~/.codex/config.toml model_provider = "packycode"model_provider = "custom"[model_providers.packycode][model_providers.custom]
Affected Versions
Section titled “Affected Versions”ToolCodex
Version未知
PlatformsWindowsmacOS
Source Issues
Section titled “Source Issues”本页汇总自 4 个真实 issue
- #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 只显示两个)
- 为什么切回 DeepSeek 后项目列表立刻恢复?
- 因为 DeepSeek profile 写入的 model_provider 值为 custom,与历史数据落库时的命名空间一致,因此 UI 能正常查询到历史 thread。
- 手动修改 config.toml 会影响实际使用的模型吗?
- 不会。只要 [model_providers.custom] 下的 name 和 base_url 等实际配置保持不变,Codex 仍会正常调用对应的模型。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。