Files
cc-web/.trellis/tasks/09-30-codex-native-update-plan/prd.md

24 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 恢复 Codex 原生计划工具
用户发现 PlanList 不显示,要求查清官方 update_plan 是否被取消或替换,修复后重新打包提交推送并重启服务;不要安排额外审计。
## 已确认原因
官方 Codex 0.157.1 的 tools.update_plan.enabled 缺省为 false;当前 ccweb 没有显式开启。YOLO 不控制该工具的注册。
## 实现要求
1. 在 server.js 的 codexAppThreadConfig 中显式开启原生计划工具,覆盖 thread/start、thread/resume 和 thread/fork。
2. 在 lib/agent-runtime.js 的 Codex CLI 参数路径加入 -c tools.update_plan.enabled=true。
3. 在现有回归中断言发送的配置确实包含开关;验证正常 YOLO 和恢复路径。
4. 不更改用户全局配置,不把 MCP 兜底是否调用作为原生修复验收标准。
5. 保留既有 PlanList 事件处理,修改范围保持在相关启动配置和回归断言。
## 验收
- 现有回归断言线程配置和 CLI 参数显式开启 update_plan。
- 项目回归通过,发布包重新生成并提交推送。
- 重启符合项目会话状态限制并检查服务可用性。
用户最新要求收敛到配置修复,停止二进制探针测试。