帖子讨论 Codex 中 Sol/Terra 的 Multi-Agent V2 与 Luna V1 兼容问题。原文给出一段“先检查、备份、修改、验证、报告”的完整提示词,要求不要只描述方案,而是检查实际版本和模型目录。评论区后来有人指出,Codex CLI 0.147.0 已修复 leaf model 支持,因此这段配置补丁可能只适用于旧版或桌面端。
Fix the Codex Sol-V2/Luna-V1 subagent incompatibility on this machine using a
reversible V1 model-catalog override.
Do the work, do not merely describe it.
Requirements:
1. Inspect the current state first:
- Run `codex --version`.
- Run `codex debug models`.
- Inspect the active global `~/.codex/config.toml`.
- Determine the real absolute Codex home path.
- Confirm whether Sol and Terra have `multi_agent_version = "v2"` while
Luna has `"v1"`.
- Preserve all unrelated configuration and user files.
2. Before editing anything, create a timestamped backup directory under
`~/.codex/backups/` and copy the active config there.
3. Generate a new model catalog from the COMPLETE output of
`codex debug models`, not a hand-written or partial catalog.
4. Validate the result:
- Parse config.toml as TOML.
- Parse the model catalog as JSON.
- Run `codex features list`.
- Run `codex debug models` and confirm the effective model versions.
- Run `codex doctor --summary`.
- Report exact files, backups, validation results, and warnings.这段提示词会修改用户配置,不应直接在生产环境执行。原帖后来出现“CLI 0.147.0 已修复”的更新信息;使用前必须先查看当前 Codex 版本、备份并验证,不要盲目修改模型目录。
GPT-5.6 Luna