feat: 文件浏览器支持图片预览并更新发布包

This commit is contained in:
shiyue
2026-10-06 12:01:44 +08:00
parent 75989cb4de
commit caf8947cd9
16 changed files with 558 additions and 17 deletions

View File

@@ -0,0 +1,2 @@
{"file":".trellis/spec/backend/quality-guidelines.md","reason":"遵循现有后端配置和回归约定"}
{"file":".planning/codex-native-update-plan/findings.md","reason":"官方默认开关与实际链路证据"}

View File

@@ -0,0 +1,23 @@
# 恢复 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。
- 项目回归通过,发布包重新生成并提交推送。
- 重启符合项目会话状态限制并检查服务可用性。
用户最新要求收敛到配置修复,停止二进制探针测试。

View File

@@ -0,0 +1,14 @@
{
"id": "codex-native-update-plan",
"name": "codex-native-update-plan",
"title": "恢复 Codex 原生 update_plan",
"status": "in_progress",
"priority": "P1",
"creator": "codex",
"assignee": "codex",
"createdAt": "2026-09-30",
"completedAt": null,
"base_branch": "main",
"relatedFiles": ["server.js", "lib/agent-runtime.js", "scripts/regression.js"],
"notes": "官方0.157.1缺省关闭原生计划工具;修复配置并验证实际请求。用户要求不安排额外审计。"
}