运行BUG
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- electron, typescript
- 领域
- desktop
调研方向
Start by comparing the referenced ~/.codex/config.toml with the managed ~/.codepilot/codex-home and reviewing the Codex app-server errors described in the report. Investigate both the missing referenced model-catalog file and the later function_call_output error; the issue does not name source files or tests. Done means Codex with DeepSeek works after updating without either error.
由索引模型根据 Issue 内容生成。
描述
CodePilot 版本 / Version
0.65.0
操作系统与架构 / OS & arch
mac os 15.6.1
Runtime
Codex
Provider / Model
deepseek-v4-flash
是否可复现 / Reproducible?
每次都能复现 / always
复现步骤 / Steps to reproduce
1、中午正常使用中,使用的codex + DeepSeek ,系统提示更新
2、更新到0.65.0后,codex + DeepSeek无法使用,提示:Error: failed to load configuration: No such file or directory (os error 2)
3、claude code正常可用,告知原因:报错原因
这个错误不是 Claude Code 或工作区的问题,而是 CodePilot 的 Codex 运行时加载配置失败——你最初那次对话在 Codex 运行时里,它的回复就变成了这个错误。
证据链:
错误源头:CodePilot 启动的 Codex app-server(进程 codex app-server -c sqlite_home="...codex-home")日志里,从今天 13:00:37 起持续报:
code
ERROR codex_app_server: Invalid configuration; using defaults. No such file or directory (os error 2)
WARN: failed to reload config, using startup config: No such file or directory (os error 2)
环境变量确认:该进程的 CODEX_HOME=/Users/lichaofeng/.codepilot/codex-home(CodePilot 管理的目录)
缺失的文件:~/.codex/config.toml 第 5 行引用 model_catalog_json = "cc-switch-model-catalog.json"(相对路径),但这个文件只存在于真实的 ~/.codex/ 里,CodePilot 的 codex-home 里没有(它只镜像了 config.toml、auth.json 等,漏掉了 config 引用的目录文件)
为什么以前正常:昨天和今早 12:51 的日志里 codex 运行时请求都成功、无此错误——当时 app-server 用的还是真实 CODEX_HOME。今天 13:00 起 CodePilot 改用了托管目录,问题就出现了
已执行的修复
bash
ln -s /Users/lichaofeng/.codex/cc-switch-model-catalog.json /Users/lichaofeng/.codepilot/codex-home/cc-switch-model-catalog.json
软链指向真实文件,cc-switch 以后更新模型目录时会自动跟随,不需要额外维护。app-server 每 5-7 分钟会重试加载配置,下一次重载就会成功。
两点提醒
这本质上是 CodePilot 的一个 bug:镜像 CODEX_HOME 时没有把 config.toml 引用的文件一起镜像。如果 CodePilot 之后重建 codex-home 目录导致软链丢失,重新执行上面的 ln 命令即可,也建议反馈给 CodePilot 开发者
现在这个 Claude Code 会话不受影响,它的影子目录配置是完整的(这也是切换后能正常工作的原因)
4、修复完成后,使用时,会报错:Error: {"error":{"code":"invalid_request","message":"function_call_output item 242 output must be a string.","context":{"field":"input[242].output"}}} (other)
期望 vs 实际 / Expected vs actual
希望跟0.64版本一样正常使用
日志 / 截图 / session id
No response
影响面 / Impact
- 涉及文件写入或可能误改/丢失数据 / involves file write or possible data loss
- 导致崩溃、闪退或对话被自动中断 / causes crash / quit / auto-interrupt
- 主要语言
- TypeScript
- 星标
- 6.5k
- 派生
- 697
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
op7418/CodePilot 的其他 Issue
-
bug P0-crash-or-interrupt
难度 2/5 1-3 小时 新手友好度 68/100
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
bug P0-crash-or-interrupt
难度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
backnotprop/plannotator#2914 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/vscode-containers#655 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 条评论 ·