Skip to content

Fix image clipboard entries missing from Clipboard History#391

Merged
shobhit99 merged 1 commit into
SuperCmdLabs:mainfrom
denysbutenko:fix/clip-images
May 15, 2026
Merged

Fix image clipboard entries missing from Clipboard History#391
shobhit99 merged 1 commit into
SuperCmdLabs:mainfrom
denysbutenko:fix/clip-images

Conversation

@denysbutenko
Copy link
Copy Markdown
Contributor

What changed

  • Recognize image clipboard formats exposed as MIME types as well as macOS UTIs.
  • Keep raw-buffer fingerprinting for common image formats to preserve the clipboard CPU optimization.
  • Fall back to Electron native image decoding only for unknown image-like formats.

Why

Clipboard History's Image tab only shows entries saved as type image. Some copied screenshots/browser images are exposed by Electron as formats such as image/png or image/jpeg, but the monitor only fingerprinted exact macOS UTI names like public.png/public.tiff. Those images were ignored before they could be saved into history.

Fixes #389

Compatibility impact

No Raycast API shim changes. Existing file-copy handling remains unchanged, and common image formats still use raw-buffer fingerprinting to avoid steady-state PNG re-encoding.

How I tested

  • npm run build
  • npm run dev
  • Manually copied an image and confirmed it appears in Clipboard History > Image tab.

@denysbutenko denysbutenko changed the title Fix image clipboard entries missing from Image tab Fix image clipboard entries missing from Clipboard History May 15, 2026
@shobhit99 shobhit99 merged commit 1349d14 into SuperCmdLabs:main May 15, 2026
@denysbutenko denysbutenko deleted the fix/clip-images branch May 17, 2026 20:02
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.

Fix image clipboard entries missing from Clipboard History

2 participants