Repository navigation
fix(native-chat): open inline images directly in preview dialog - #31620
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e9b84930-f919-43d2-b463-5cc81f2f6895
📒 Files selected for processing: 9
docs/native-chat-inline-image-preview-design.mdsrc/renderer/src/components/editor/PanZoomImageDialog.tsxsrc/renderer/src/components/native-chat/NativeChatMarkdown.image-preview.test.tsxsrc/renderer/src/components/native-chat/NativeChatMarkdown.tsxsrc/renderer/src/components/native-chat/NativeChatMarkdownImage.tsxsrc/renderer/src/components/native-chat/NativeChatView.tsxsrc/renderer/src/components/native-chat/native-chat-markdown-image-owner.tsxsrc/renderer/src/components/sidebar/MarkdownImageLightbox.tsxtests/e2e/native-chat-inline-image-preview.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
ELI5
Clicking an image in chat now opens it directly in the image viewer. File actions are available from the viewer toolbar.
What Changed
docs/native-chat-inline-image-preview-design.md.Why
Rendered images were forwarded to ordinary link routing, so the file-actions popup interrupted image viewing. A chat-specific Markdown renderer reuses the existing viewer and file-action builders.
Linked Issue
Requested directly by the user; no existing linked issue.
Visual Proof
Screenshots come from hidden Electron renderers on macOS. Evidence is stored outside the PR diff.
Testing
pnpm tc:webandpnpm run check:code-quality:changedpassed.native-chat-inline-image-preview.spec.tspassed, including a final assertion that no file-action popup opens on image click.ORCA_BACKGROUND_LAUNCH=1.native-chat-copy-image.spec.tsstopped before image interaction: macOS could not allocate another PTY (posix_openpt, errno 6), leaving its composer disabled. The new preview E2E passed in the same run; no user terminals were stopped.Review
GPT-6.1 Sol high agents authored/reviewed the design, implemented the change, and reviewed/fixed the code. No blocking review findings remain. GPT-5.6 Terra medium performed the rendered visual checks and inspected the screenshots.
Agent skill upstream boundary
Notes
Remote owner/read behavior is covered at the runtime boundary with simulated remote reads. Native Windows/Linux, live SSH, and native mobile were not run locally. Native mobile uses a separate renderer; this change adds no IPC or wire-format requirement.
Checklist