Files
mesalogo c0ad27ab44 fix: preserve image context across follow-up requests
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: 连续改图会自动带上上一张图片和文字上下文,重开对话后仍可继续修改。上游明确不支持编辑时仍可按文字生图,仅在回复底部轻提示未使用参考图片。
2026-09-10 22:39:41 +08:00

14 lines
969 B
Markdown

# 图片上下文提示
遵循根目录 [UI-DESIGN.md](../../../UI-DESIGN.md)。
- 仅在某次成功生成确实缺少部分上下文时,在对应助手回复底部显示低强调文字。
正常使用上下文不显示警告,也不声称上游“不支持上下文”。
- `reference-unavailable`:部分历史图片无法读取,本次仅使用可用的图片与文字上下文。
- `editing-unavailable`:上游不支持图片编辑,本次按文字要求生成,未使用参考图片。
- 使用共享 `--text-muted`、`--font-caption` 和间距令牌。不加警告卡片、闪烁、
`alert`、`aria-live`、弹窗或应用通知。文本保留在消息中并随会话恢复。
- 发送和生成继续可用;真实请求失败仍采用原来的错误及重试交互,不生成成功提示。
- 文案具备简体中文、英文两套翻译。本轮显式附图和新对话继续使用现有入口,
不增加模式开关或第二次确认。