运行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
-
code-quality good-first-issue
難度 2/5 1-3 小時 新手友好度 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
維護者通常 1 天內回覆
-
bug implicit-state
難度 2/5 1-3 小時 新手友好度 74/100
-
area:models enhancement
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug frontend ui
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
Recording drops clicks on links, filters and checkboxes that share a form with a search field可能已有人在做 @columbia11 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
Tencent/BrowserSkill#657 ·
維護者通常 1 天內回覆