Repository navigation
feat(chat): browse generated image batches in one card - #1035
Merged
Merged
Conversation
Show a selected image beside batch thumbnails and keep its download target in sync. Decode viewer targets before selection so fitted images remain steady, even during rapid navigation.
vastsa
force-pushed
the
feat/image-gallery-viewer-v2
branch
from
September 24, 2026 18:45
24bfe3b to
80b9ca7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Issue #790 已支持批量生图。当前每张结果分别显示:宽窗口并排为小图,窄窗口换行;用户无法在一张主图旁直接切换同批结果。
改动
截图
修改前:Windows 完整应用,d13ff2633 主分支;历史真实模型图片字节在本地重放,宽窗口两张小图并排。

修改后:Windows 完整应用,35d690374 基线上的提交 24bfe3b;同样使用历史真实模型图片字节重放。两张图片分别来自此前生成和编辑,不代表本次实时批量生成成功。



验证
最终 Desktop 构建、typecheck、
pnpm lint、pnpm docs:check、定向单测与pnpm check:pr-base均通过。隔离 Electron E2E 验证选图、下载字节、窄窗口、预览缩放、方向键与焦点恢复;闪屏和尺寸跳动的旧逻辑均被回归测试复现,修复后通过。兼容与限制
未改生图请求协议、IPC 或图片存储。真实服务模型发现成功,但本次完整应用实时生成两次返回
IMAGE_HTTP_504;截图证明最终 UI 对此前真实产出文件的呈现,不证明当前外部服务可用。macOS/Linux 未做原生界面验证。Related to #790