运行BUG
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- electron, typescript
- Domain
- desktop
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 6.5k
- Forks
- 697
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from op7418/CodePilot
-
发生错误时提醒Error:successOpenbug P0-crash-or-interrupt
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Effort selector dropdown hidden for GLM models — blocks access to GLM-5.2 High/Max effort tiersOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug P0-crash-or-interrupt
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in op7418/CodePilot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
backnotprop/plannotator#2914 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/vscode-containers#655 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 comment ·