orphaned [model_providers.*] table:Codex 官方卡切换
Quick fix
切换到 Codex 官方 OAuth 卡后,当前 issue 尚无已确认修复;应仅清理引擎生成且已无引用的 provider 表。
Symptom
Section titled “Symptom”Switching from a third-party Codex provider whose stored config carries `model_provider = "custom"` + a `[model_providers.custom]` table to the **official OAuth card** clears the top-level `model_provider` key but leaves the `[model_providers.custom]` table in `~/.codex/config.toml` with no remaining reference:切换至官方 OAuth 卡时,`model_provider` 顶层键会被清除,但原先第三方 provider 的 `[model_providers.custom]` 表仍留在 `~/.codex/config.toml`。在没有 `model_provider` 指向该表时,Codex 会忽略它。
遗留表可能包含过期的 `base_url`、托管令牌占位符或直接连接的真实凭据。该 issue 建议仅删除写入引擎为受管理 provider 投影、且已无引用的表;用户手写的旧别名等表应保留。该建议尚未被确认或合并。
目前该 open issue 未提供已确认的用户侧修复步骤。切换官方 OAuth 卡后,先检查 `~/.codex/config.toml` 中是否存在未被 `model_provider` 引用的 `[model_providers.*]` 表。
不要仅因表未被引用就删除用户手写的 provider 表;issue 建议的清理范围仅限写入引擎为受管理 provider 生成的投影表。
Affected Versions
Section titled “Affected Versions”ToolCodex
Version未知
PlatformsWindows
Source Issues
Section titled “Source Issues”本页汇总自 1 个真实 issue
(暂无 FAQ)
<thinking> 标签作为正文输出 Claude Code将 provider 的 apiFormat 从 openai_chat 改为 anthropic(若上游支持),可绕过内联 <thinking> 泄露。messages.content.type 参数非法 Claude Code多数相关 issue 仍未解决;升级到包含 #7656 修复的版本,使中文图片拒绝错误触发图片降级重试。Select Model 菜单仍然显示切换前模型列表 - Codex关闭现有 Codex 会话后运行 `codex app-server daemon restart`;升级 CC Switch 至 v4.0.7 以上可获得旧目录检测与重启提示。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。