运行BUG

オープン
#666 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

bug
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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

op7418/CodePilot のほかの issue

op7418/CodePilot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。