1.1 KiB
1.1 KiB
运行中图片输入调研
协议事实
- 本机
codex-cli 0.144.1生成的TurnSteerParamsSchema 定义input: UserInput[]。 UserInput联合类型包含{ type: "localImage", path, detail? }。- cc-web 的普通 Codex App turn 已通过
codexAppInputFromMessage使用这一结构。
代码事实
handleMessage在选择普通 turn 或 steer 之前已经调用resolveMessageAttachments。resolveMessageAttachments只返回元数据记录存在、未过期且真实文件仍存在的附件。sanitizeMessageForPersist对历史附件统一调用normalizeMessageAttachments。- mock app-server 的
textFromInput会把localImage显示为[image:<basename>],适合协议回归断言。 - stale completion 使用用户消息的 timestamp + content 定位插入点,保存附件不会破坏顺序。
工作树约束
public/app.js有其他主题相关改动。scripts/regression.js有大量其他回归新增。server.js现有未提交差异仅涉及 jpg/jpeg 静态 MIME。- 所有修改必须限制在相关函数与测试邻近区域。