AbsolutePathBuf deserialized without a base path,Codex
Quick fix
macOS Codex Desktop 用户可将 config.toml 中的 model_catalog_json 改为模型目录文件的绝对路径。
Symptom
Section titled “Symptom”创建任务时出错
invalid configuration: AbsolutePathBuf deserialized without a base path
in `model_catalog_json`CC Switch 自 v3.16.2 起将 `model_catalog_json` 写成相对路径。issue 记录称,macOS Codex Desktop 启动时无法解析这个相对路径;改成绝对路径后正常。问题在 CC Switch 每次写入配置时可能复现,并非本地数据库残留问题。
#5731 的评论还报告了 Windows 和 Linux,但没有提供相应复现细节。#5962 中另有 MCP Server 的 stdio 与 HTTP 字段冲突问题,属于不同故障,不纳入本页。
打开 `~/.codex/config.toml`,将 `model_catalog_json` 的值改为模型目录文件的绝对路径;issue 给出的示例路径如下。
~/.codex/config.toml model_catalog_json = "cc-switch-model-catalog.json"model_catalog_json = "/Users/<user>/.codex/cc-switch-model-catalog.json"保存配置后重新启动 Codex。issue 报告称改为绝对路径后可以正常启动。
Affected Versions
Section titled “Affected Versions”ToolCodex Desktop
Version3.16.2 起报告;issue 提及 3.18.0 和 3.19.0,未注明修复版本
PlatformsmacOSWindowsLinux
Source Issues
Section titled “Source Issues”本页汇总自 2 个真实 issue
- 恢复 CC Switch 最新一条数据库备份能解决吗?
- #5731 有用户报告,使用 CC Switch「设置 → 高级 → 恢复与备份」恢复最新一条数据库备份并重新打开 Codex 后恢复正常;该用户不确定是否由此操作导致。#5962 则称问题不是本地数据库残留,并建议将路径改为绝对路径。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。