feat: 文件浏览器支持图片预览并更新发布包
This commit is contained in:
26
.planning/codex-native-update-plan/findings.md
Normal file
26
.planning/codex-native-update-plan/findings.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# 调查证据
|
||||
|
||||
## 官方版本与默认值
|
||||
|
||||
- 官方变更:2026-08-31,PR #41744「Make the update_plan tool opt-in」:https://github.com/openai/codex/pull/41744 。提交 a9519cbcdd2d664530edb2469224ee03c1056799 明确将开关缺省改为 false,并在关闭时移除内置提示词中的调用指导。
|
||||
- 本机版本:codex-cli 0.157.1。
|
||||
- 官方对应发布:https://github.com/openai/codex/releases/tag/rust-v0.157.1 ,发布时间 2026-09-26。
|
||||
- https://github.com/openai/codex/blob/rust-v0.157.1/codex-rs/core/src/config/mod.rs#L2689 :resolve_update_plan_enabled 使用 tools.update_plan.as_ref().is_some_and(|config| config.enabled),缺省为 false。
|
||||
- https://github.com/openai/codex/blob/rust-v0.157.1/codex-rs/core/src/tools/spec_plan.rs#L1104 :仅在 config.update_plan_enabled 为 true 时注册 PlanHandler。
|
||||
- 主分支仍定义名为 update_plan 的原生工具,未发现工具被改名的证据。
|
||||
- https://developers.openai.com/codex/app-server/ 仍说明 turn/plan/updated 事件。
|
||||
|
||||
## 本机实际链路
|
||||
|
||||
- 当前会话 agent=codexapp、permissionMode=yolo、model=gpt-6-astra(xhigh)。
|
||||
- app-server 使用 HOME=/home/hdzx,未设置 CODEX_HOME。
|
||||
- 用户全局配置和项目 .codex/config.toml 均未设置 tools.update_plan.enabled。
|
||||
- server.js 中 codexAppThreadConfig 未设置计划工具开关,buildCodexAppClientSpec 启动参数也未设置。
|
||||
- lib/agent-runtime.js 的 CLI 参数路径同样未设置。
|
||||
- YOLO 仅影响权限和 collaborationMode.default;没有过滤原生计划工具。
|
||||
|
||||
## 修复方向
|
||||
|
||||
- 线程配置显式设置 tools.update_plan.enabled=true,覆盖启动、恢复和分叉链路。
|
||||
- CLI 参数路径使用同一原生配置开关。
|
||||
- 在已有项目回归中核对线程和 CLI 确实传入配置开关。
|
||||
11
.planning/codex-native-update-plan/progress.md
Normal file
11
.planning/codex-native-update-plan/progress.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# 执行记录
|
||||
|
||||
## 2026-09-30
|
||||
|
||||
- 读取 OpenAI Docs、项目工作流和规划技能。
|
||||
- 通过 11.144.144.9:7890 成功获取官方 App Server 文档、0.157.1 源码和发布信息。
|
||||
- 并行只读核查本机实际进程、会话、全局及线程配置。
|
||||
- 确认原生 update_plan 需要显式启用,ccweb 缺少该配置。
|
||||
- 开始修复原生配置。
|
||||
- 曾尝试本地官方二进制探针,但本机独立测试上下文未暴露工具,请求断言失败,不能当作修复验收结果。
|
||||
- 用户要求停止扩大的二进制测试;已删除该探针,收敛到配置修复和已有必要回归。
|
||||
28
.planning/codex-native-update-plan/task_plan.md
Normal file
28
.planning/codex-native-update-plan/task_plan.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 恢复 Codex 原生 update_plan
|
||||
|
||||
## 目标
|
||||
|
||||
查明官方工具缺席原因,通过原生配置恢复 PlanList,并完成必要回归、发布和安全重启。
|
||||
|
||||
## 状态
|
||||
|
||||
1. 查证官方版本与工具注册条件:completed
|
||||
2. 核对 ccweb 实际进程和会话配置:completed
|
||||
3. 显式启用原生计划工具:in_progress
|
||||
4. 验证配置开关和现有协议回归:pending
|
||||
5. 重新打包并提交推送:pending
|
||||
6. 检查运行会话并重启服务:pending
|
||||
|
||||
## 约束
|
||||
|
||||
- 不修改用户全局 Codex 配置或敏感配置。
|
||||
- 按用户要求不安排额外审计。
|
||||
- 用户要求收敛到配置修复;已停止二进制探针测试。
|
||||
- 当前会话没有原生 update_plan,不能假定本轮会立即获得新工具。
|
||||
- 重启前必须确认除当前会话外没有 running 会话。
|
||||
- 保留既有 PlanList 事件渲染路径;原生工具恢复不能仅依赖 MCP 兜底。
|
||||
|
||||
## 已遇问题
|
||||
|
||||
- 官方文档直连返回 403;使用项目提供的 HTTP 代理后访问成功。
|
||||
- 主分支工具注册文件已从 spec.rs 拆为 spec_plan.rs,旧路径返回 404。
|
||||
Reference in New Issue
Block a user