Image requests previously sent only the current prompt and attachments, so follow-up edits could lose the previous image and conversation requirements. Reuse the latest successful image from the existing artifact store together with text history, including after reopening the app. Explicit attachments take priority, and configured model IDs remain unchanged. When image editing is explicitly unsupported, continue with text-based image generation and retain a quiet message footer explaining the missing image context. Keep genuine provider errors and cancellation visible. Add focused regressions, persisted footer metadata, and aligned feature documentation. Validated with four real sub-gpt-image-2 image requests and a simulated unsupported-edit response. Image regressions, typecheck and lint passed; the full working-tree run had two unrelated concurrent Runtime-menu failures. Release note: 连续改图会自动带上上一张图片和文字上下文,重开对话后仍可继续修改。上游明确不支持编辑时仍可按文字生图,仅在回复底部轻提示未使用参考图片。
图片生成与连续修改
本目录维护直连图片模型的生成、参考图编辑和会话续接行为。这是已有生图流程的修复, 不增加独立模型、工具审批或服务端会话管理。
产品行为
- 首次无附图时生成新图片。同一桌面对话继续请求时,自动引用最近一次成功回复的图片, 同时发送此前的文字要求;本轮修改要求优先。
- 本轮显式附图优先,不自动混入上一轮生成图。要独立生成不相关图片,使用新对话。
- 已保存会话重新打开后仍可继续改图,引用已有成果,不依赖 Runtime 内存缓存。
- 上游明确不支持编辑时,继续按文字生成,并在该回复底部说明未使用参考图片。 缺失历史成果时使用剩余可用上下文并提示,不禁用发送。
- 网络、鉴权、限流、参数错误和真正的生成失败仍正常报错,不伪装成能力缺失。
- 模型 ID、地址和质量服从用户的模型连接配置,不对特定服务商或模型别名做硬编码。
验证以用户指定的
sub-gpt-image-2实际服务能力为准,不由其他模型的失败推断其能力。
文档导航
| 文档 | 权威职责 |
|---|---|
| 技术设计 | 请求、图片引用、协议与失败处理 |
| UI 设计 | 消息底部提示及交互边界 |
| 功能进度 | 已验证事实和剩余验收 |
本次只补齐已有工作流,产品规则集中于本页,不另建重复的 PRD、User Stories 或状态机文档。
相关功能
- 模型连接:地址、模型 ID、凭据与请求定制。
- 直连文本 Agent:文本模型的工具和上下文压缩, 不等于图片模型支持 Responses 图片工具。
- 远程主机:托管 SSH 当前使用 OpenCode,不运行本直连图片路径。