Skip to content

feat(native-chat): copy chat images from the right-click menu - #24161

Merged
brennanb2025 merged 20 commits into
stablyai:mainfrom
AmoabaKelvin:feat/copy-chat-image
Oct 6, 2026
Merged

brennanb2025 merged 20 commits into
stablyai:mainfrom
AmoabaKelvin:feat/copy-chat-image

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​324 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​322
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​163 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​112

ELI5

Native chat could show an attached image but could not copy its original pixels for reuse elsewhere. You can now right-click a composer or sent-message image, choose Copy image, and paste the full-size image into another app. A successful copy shows Image copied.

What Changed

Copy image is available on composer thumbnails, sent-message images, and their full previews. Copying from a preview keeps it open and uses the original image rather than its thumbnail. Both previews now use the standard dialog padding and spacing; the broader preview framing change remains a separate follow-up.

The action extends the existing chat menu and desktop clipboard path. Readable SVG and other browser-decodable images become PNG at their natural dimensions. Existing PNG bytes pass through after decoding and size checks. Inline and local bytes are captured while their source is available; HTTP images are fetched only when Copy image is selected. Failed reads, decoding, or oversized images show one error. Hiding a chat closes its menu and prevents its preview from starting another image read. The browser client keeps the action hidden because its current image clipboard writer does not write an image.

Why

The existing menu already owns right-click and cleanup, so the image action belongs there. Reusing the original image source, converter, and native clipboard validation preserves resolution and avoids a second image store or retry mechanism.

Linked Issue

Fixes #23904

Visual Proof

Screenshots from a hidden, isolated dev build on macOS: before = main 81a1968bc65, after = this PR at 3ec6a5fd4d4. An 800×600 test image was attached through the composer's paperclip.

Before (main) After (this PR)
Right-clicking the composer image shows the chat menu with no image option. Copy image is the first item in the same menu.
main: composer image menu without Copy image PR: composer image menu with Copy image

After choosing Copy image: the "Image copied" confirmation appears. Reading the clipboard back in the app's main process returned 800×600, the original image rather than the small thumbnail (from the test driver's log; not visible in the screenshot).

PR: Image copied confirmation

Inside the full-size preview: right-clicking the image offers Copy image, and the preview stays open.

PR: Copy image in the preview's menu, preview stays open
Preview before (main) Preview after (this PR)
Tight padding and a boxed close button. Standard dialog padding and close button (the small visible change this PR makes to the preview).
main: preview dialog PR: preview dialog

Not shown: sent-message images, SVG or URL images, copying over SSH, Windows and Linux.

Earlier contributor recording — historical evidence, not verification of the final reviewed head.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

Exact pushed head 3ec6a5fd4d4d30e09d2b8312b0706917155a2734 passed 93 targeted tests in seven explicit files, one queued renderer typecheck, changed-file formatting, and the unchanged quality gate. A fresh reviewer completed all eight readiness categories without a new proven P0–P3 issue.

All 36 CI checks finished: 17 passed, 19 skipped, none failed. Static analysis/typecheck, all five unit-test shards, relay integration, Linux and Windows packaging, the changed end-to-end test job and final verification passed. PR Checks, Node checks, test-line check. The selected Linux Electron test passed: it checked original 800×600 dimensions from the composer thumbnail and full preview, preview persistence, and Close. Its clipboard writer is replaced with a dimensions recorder.

Remote M4Air QA was blocked before app launch: the prescribed driver showed an update prompt, and the next approved driver did not support pinning its model. The first driver terminal was closed and verified gone; the second created no driver or app resources. No same-method current-main control or final-head before/after screenshots, actual OS clipboard write/read-back or decoded pixels/alpha, real SVG conversion, HTTP runtime behavior, Windows/Linux image copying or Linux SSH-backed copy action ran this round. The automated Electron test replaces clipboard delivery with an image-dimensions recorder and does not prove actual OS pixels or SSH copying.

Review

Review fixed menus surviving a hidden chat, missing image actions for displayed inline/URL sources, readable SVG being excluded by its filename, and hidden previews starting another image read. The larger preview framing and visible-title alignment remains deferred as F04, outside this copy change; no follow-up ticket was supplied. The approved standard dialog padding and spacing are included here.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material is copied or translated.

Notes

The image-copy feature makes no main-process, remote protocol, mobile, or platform-specific change. SSH image reads retain existing execution-host routing. The shared converter is also exercised through the browser clipboard consumer. Source validation and real runtime coverage are recorded separately.

Checklist

  • This PR is focused on image copying
  • Problem, before/after, mechanism, and approach explained
  • Before/after visual evidence attached
  • Correctness, security, performance, and compatibility reviewed
  • Platform and SSH impact considered; actual runtime coverage listed separately
  • Source validation and current CI complete; manual runtime and visual gaps listed above

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds copy-image feature to the chat interface.

The PR appears safe to merge, with a non-blocking success notification that should be removed to match the stated interaction.

Findings

  1. P2 Unexpected copy confirmation ▶

Summary

The PR adds Copy image to native-chat right-click menus, copies full-size image data through the existing clipboard path, and adds unit and Electron coverage. Since the previous review, it changed preview dismissal to check the interaction target and added PNG passthrough. One new user-facing issue remains: successful copies now show a toast despite the stated no-confirmation behavior.

Reviews (5) · Last reviewed commit: "merge: origin/main into feat/copy-chat-i..."

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Copy image menu item — use-native-chat-context-menu.tsx reads the right-clicked image when the menu opens and renders a Copy image item above the text Copy whenever an image is present under the pointer.
  • Full-size source, not the thumbnail — both preview surfaces stamp data-native-chat-copy-image-src with the on-disk blob URL (never the pasted data: thumbnail), and withhold it for .svg paths and the web client.
  • Preview stays open — keepPreviewOpenForChatMenu in the new native-chat-image-copy.ts suppresses the Radix Dialog close that a click on the portaled chat menu triggers, so the full-size preview survives a copy.
  • Clipboard write path — copyNativeChatImage converts to PNG via the shared converter (moved unchanged to lib/image-blob-png.ts), writes through writeClipboardImage, and toasts on failure with a distinct too-large description.
  • i18n — copyImage / copyImageFailed / copyImageTooLarge added to all six catalogs.
  • Tests — new unit coverage for the full-size source, SVG/web-client gating, copying after a blob revoke, the too-large toast, and the preview-stays-open guard.

I read the whole diff, traced the moved-image path, and checked the seams: rg confirms the relocated blobToBase64 / convertImageBlobToPng have no other consumers, the localized keys sit under components.native-chat.composer, and the three touched test files (20 tests), pnpm tc:web, and pnpm run verify:localization-catalogs all pass. A couple of notes worth keeping in mind rather than acting on: the preview-close guard keys off document.activeElement being inside the menu at close time, and while the X-close path is unit-tested, the backdrop-close path the PR body mentions is not; and the PNG-only conversion means animated GIF/WebP frames are flattened and large photos can hit the size limit (both called out in the PR).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Native chat image previews expose eligible full-size image sources for copying. The context menu adds a Copy image action that converts the image to PNG and writes it to the clipboard. Copy failures and oversized images display translated messages. Shared image conversion and base64 utilities are now used by the web clipboard API.

Priority: ➖ Normal

Severity of issue fixed: Low

Merge Risk: 🔵 Low · up to a6b65

Copy image is unavailable for sent images that have both a displayable URL and a local file. The PR remains mergeable with this bounded limitation acknowledged or fixed.

Security Architecture Review

Security architecture risk: 🔵 Low · up to a6b65

Existing clipboard access controls and image limits remain in place. The principal concern is that overlapping copy operations can leave the clipboard holding an earlier selection. Platform-specific failure behavior remains unverified.

Retained concerns

  • Low · reliability · inferred: Image-copy operations commit to the shared system clipboard when asynchronous fetch and conversion finish, without serialization or a latest-operation check. An earlier copy can therefore overwrite a later clipboard choice after the menu has closed. This weakens clipboard state ownership and can leave an earlier image available for an unintended subsequent paste; both image selections remain user-authorized.
Security review details

Security Blast Radius

  • inferred — The checked new flow exposes eligible preview image content to the desktop clipboard and consequently to applications where the user pastes it. It reuses existing image reads and clipboard authority rather than introducing a new raw filesystem-path request or privileged IPC channel.

Trust Boundaries and Controls

  • observed — Transcript previews derive copying from localSrc rather than their renderable external URL. SVG paths and web-client locations suppress the copy source. These are producer-side controls; the DOM-reading helper itself accepts any nonempty source attribute.
  • observed — The image IPC handler applies the existing trusted-renderer gate before validation and writing. That gate checks the pinned renderer identity when configured; otherwise it uses the existing development-origin or file-URL fallback. The broader dashboard-popout text exception does not apply to image writes.

Resilience and Maintainability Implications

  • inferred — Pre-write conversion failures leave the clipboard untouched by that operation. Renderer validation reduces reachable native rejection cases, but silent native rejection can still resolve without a write if native decoding disagrees with browser decoding. This existing contract mismatch is not a demonstrated newly introduced security failure.

Hardening Proposals

  • proposed — Define a clipboard operation-ordering policy across image and text copies, then enforce it at the asynchronous commit boundary so an older operation cannot overwrite a newer user choice.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 23.81% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 11 files. (6 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR satisfies the coding requirements in #23904. The native chat menu exposes Copy image for readable composer images. The thumbnail and full-size preview expose the full-size source through `dat…
Out of Scope Changes check ✅ Passed The changes remain connected to #23904. Sent-image support and full-size preview support extend the same image-copy action. Shared PNG conversion, clipboard helper extraction, localization, preview in…
Title check ✅ Passed The title clearly and concisely identifies the main change: adding image copying to the native-chat right-click menu.
Description check ✅ Passed The description covers the required sections, links issue #23904, explains the user-facing change and approach, provides visual evidence, and details testing and known gaps. The unchecked manual-testi…
Full details: Docstring Coverage

Explanation

Docstring coverage is 23.81% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 11 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one minor note on the new e2e coverage.

Reviewed changes

  • New Electron e2e — tests/e2e/native-chat-copy-image.spec.ts launches the app, pastes an 800×600 PNG, and asserts Copy image from both the composer thumbnail and the full-size preview writes an 800×600 image to the (stubbed) clipboard while the preview stays open, then that X still closes it.

Lint on the new spec is clean and typecheck:e2e reports no errors in it (the pre-existing e2e-project errors elsewhere are unrelated).

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/copy-chat-image branch 2 times, most recently from 9861eaa to 7b5869a Compare September 30, 2026 14:57
@AmoabaKelvin

Copy link
Copy Markdown
Collaborator Author

Follow-up: once this merges I'll open a separate PR that gives chat images their own right-click menu (Copy image, Save image as…, Reveal in Finder) instead of reusing the general chat menu. It will also remove the keep-the-preview-open workaround in this PR.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Discriminating e2e fixture — the Electron spec now pastes a 64×48 PNG while the on-disk fixture stays 800×600, so the 800x600 clipboard assertion fails if Copy image ever reads the composer preview instead of the saved file, closing the prior review's gap.
  • Chat view seeding — the pane agent status is seeded as done so the native-chat composer renders for the paste.

The prior size-assertion thread is replied to and resolved; Greptile's preview-interaction thread was already resolved.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor

Thanks Kelvin. This works well: I checked on a Mac that Copy image puts the full-size file on the clipboard from the thumbnail and from the open preview, and that the preview stays open.

I pushed two small follow-up commits on top, plus a merge of the latest main:

  • A successful copy now shows "Image copied". Before, the menu just closed, so you couldn't tell whether the copy had worked.
  • The preview now decides whether to stay open from what was clicked (the chat menu), not from where focus was, so it no longer depends on the menu's fade-out timing. To do that the two image previews drop their own padding and background and use the standard dialog surface, which the design-system check requires anyway.
  • An image that's already a PNG is copied as-is instead of being decoded and re-encoded, which made copies slower and could push a screenshot over the size limit. The check reads the file's PNG signature rather than trusting the .png extension, so a WebP saved as .png still gets converted.
  • The main merge had one conflict, in the context-menu test's mocks (main added its own toast mock there); both sets of mocks are kept.

Not covered: Windows/Linux and SSH weren't run live. Images that exist only as a URL still can't be copied; that's a fair follow-up.

try {
const png = await convertImageBlobToPng(await image)
await window.api.ui.writeClipboardImage(`data:image/png;base64,${await blobToBase64(png)}`)
toast.success(translate('components.native-chat.composer.imageCopied', 'Image copied'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unexpected copy confirmation

After a successful Copy image action, this shows an “Image copied” toast. The intended behavior is to copy silently, so users now get an unwanted notification every time the action succeeds.

Suggested change
toast.success(translate('components.native-chat.composer.imageCopied', 'Image copied'))

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Load the local source when an image reference has both a URL… · NativeChatTranscriptChrome.tsx:97

src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx:97
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Load the local source when an image reference has both a URL and a path.

NativeChatImageRefBlock can reach this component with both fields. When the URL is renderable, the current guard passes undefined to useLocalImageSrc, so copyableNativeChatImageSrc receives no source and the Copy image attribute is absent. Keep the URL for display, but resolve block.path for copying.

Suggested fix
   const localSrc = useLocalImageSrc(
-    leaseActive && !external && runtimeContext !== undefined ? source : undefined,
+    leaseActive && runtimeContext !== undefined
+      ? external
+        ? block.path
+        : source
+      : undefined,
     filePath,
     runtimeContext?.connectionId,
     runtimeContext

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 148c2d09-dbda-4d8c-8fde-393dc93daf4e

📥 Commits

Reviewing files that changed from the base of the PR and between 7b5869abb6216e1b6cfd02fc0bcb7fcdfe84683c and a6b65a0061527a945b942b0be435ae96f94a4226.

📒 Files selected for processing (14)
  • src/renderer/src/components/native-chat/NativeChatImageAttachmentPreview.test.tsx
  • src/renderer/src/components/native-chat/NativeChatImageAttachmentPreview.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/native-chat-image-copy.ts
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/image-blob-png.test.ts
  • src/renderer/src/lib/image-blob-png.ts
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run re-reviewed the delta since the prior pullfrog review (7b5869a → a6b65a0): two fix commits plus a merge of main.

  • Preview keep-open by click target — keepPreviewOpenForChatMenu is now an onInteractOutside handler on DialogContent that cancels the Radix dismissal when the interaction target sits inside [data-native-chat-context-menu], replacing the earlier predicate that read document.activeElement at close time.
  • PNG passthrough — convertImageBlobToPng returns a PNG-signature blob unchanged after the byte-length and decoded-dimension checks, so re-encoding can no longer inflate a PNG past the clipboard limit.
  • Copy confirmation — copyNativeChatImage now toasts "Image copied" on success, with the imageCopied key added to all six catalogs.
  • Tests — new happy-dom coverage for the PNG passthrough, non-PNG conversion, and oversize-PNG rejection, plus a pointer-driven preview keep-open test.

26 tests across the four touched files pass, pnpm tc:web is clean, and the changed-code design-system gate reports 0 findings across 11 changed files.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

AmoabaKelvin and others added 5 commits October 4, 2026 22:45
…m copies, pass PNGs through

The image preview stayed open through a chat-menu click by reading which
element had focus, which depends on the menu's exit-animation timing.
It now ignores an outside interaction whose target is the chat menu, the
same target check other Orca surfaces use for portaled menus. Both
previews drop their color and padding overrides on the dialog surface,
which the design system reserves to the dialog primitive.

A successful Copy image now shows "Image copied"; before, nothing told
the user the copy had finished.

An image that is already a PNG is copied as-is after the size checks,
instead of being decoded and re-encoded, which cost time and could grow
a screenshot past the clipboard size limit.
…e PNG

Copy image skipped re-encoding any image whose type said PNG, but a chat
image's type comes from its file extension. A WebP or GIF saved under a
.png name was then sent unconverted, the main process could not decode
it, and the user saw "Image copied" with nothing on the clipboard. The
pass-through now checks the PNG file signature instead.
@nwparker
nwparker force-pushed the feat/copy-chat-image branch from a6b65a0 to 3d5ad40 Compare October 5, 2026 05:48

@nwparker nwparker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full-size image copy reuses existing PNG conversion, checks real dimensions/encoded-size, preserves virtualized preview lifetime and releases resources. 47 tests, web typecheck and quality gates pass. Large photos can exceed clipboard cap; SVG/web/URL-only images have no copy action.

Required PR Checks verify passed on this exact commit: 3d5ad40.

brennanb2025 and others added 6 commits October 5, 2026 21:46
Keep image previews open while their chat menu is used, and inherit the standard dialog padding, background and border.

Co-authored-by: Kelvin Amoaba <[email protected]>
Inherit the standard dialog gap together with its padding and surface.

Co-authored-by: Kelvin Amoaba <[email protected]>
@brennanb2025

Copy link
Copy Markdown
Contributor

Native chat could preview an attached image but could not copy its original pixels for reuse elsewhere. This PR adds Copy image to composer and sent-message images and their previews, keeps the original resolution, leaves the preview open during copying, and shows Image copied after the write succeeds. Both previews now use the standard dialog padding and spacing.

Review fixed these proven issues (P2):

  • F01, cause: pr, fixed: Hiding a retained chat left its image action available; the existing chat visibility now closes it. NativeChatResolvedView.tsx:144.
  • F02, cause: pr, fixed: Displayed inline and URL sent images lacked Copy image; the action now uses the full displayed source. NativeChatTranscriptChrome.tsx:123.
  • F03, cause: pr, fixed: Readable SVG was excluded by filename; browser-readable formats now decode at natural dimensions and convert to PNG, with byte/pixel checks and temporary URL cleanup. image-blob-png.ts:33.
  • F05, cause: loop (earlier review fix), fixed: An inactive preview could start another image read and revive an old menu; capture now checks the existing enabled input. use-native-chat-context-menu.tsx:160.

Deferred: F04 (P2, cause: loop). The larger preview framing change remains a separate follow-up: previews still use a filled dialog and visible filename. The approved standard padding/spacing adjustment is included here; it does not complete that broader work. No follow-up ticket was supplied. The existing framing remains in composer preview:184 and sent preview:191.

Verified source: The exact pushed head passed 93 targeted tests in seven explicit files, one queued renderer typecheck, formatting, and the unchanged quality gate. The normal main merge preserved every image-copy feature file. A fresh reviewer completed all eight readiness categories without a new proven P0–P3 issue.

Current CI: All 36 checks finished: 17 passed, 19 were skipped, and none failed. Static analysis/typecheck, all five unit-test shards, relay integration, Linux and Windows packaging, the changed end-to-end test job, and the final verification check passed. PR Checks, Node checks, test-line check. The selected Linux Electron test passed: it checked original 800×600 dimensions from the composer thumbnail and full preview, preview persistence, and Close. Its clipboard writer is replaced with a dimensions recorder.

Not verified: Remote M4Air QA stopped before an app launched: the prescribed driver showed an update prompt, and the next approved driver could not be launched with its model pinned. The first driver terminal was closed and verified gone; the second created no driver or app resources. No matching test on current main or genuine before/after preview screenshots, actual OS clipboard write/read-back or decoded pixels/alpha, real SVG rasterization, HTTP runtime behavior, or Linux SSH-backed image copying ran in this review round. The existing automated Electron test replaces clipboard delivery with an image-dimensions recorder, so it cannot prove those results. Windows/Linux image copying also remains unverified.

Source review is complete; manual runtime QA and fresh visual proof remain blocked. This PR remains unmerged.

@brennanb2025

Copy link
Copy Markdown
Contributor

Will merge once this has a screenshot of the new UI, doing it myself now

@brennanb2025
brennanb2025 merged commit e717ea6 into stablyai:main Oct 6, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Allow copying images attached in the Chat UI composer

3 participants