Skip to content

Conversation

@connorads
Copy link
Contributor

@connorads connorads commented Dec 24, 2025

Adds support for macOS clipboard file URL references (furl), which some screenshot tools like Zappy use when copying screenshots. Previously, only direct image data (PNGf) was supported, causing file URL references to fail silently.

Testing

I don't believe there's an easy way to write automated tests here. So here's a video of me manually testing it.

Screen.Cast.2025-12-24.at.8.24.21.PM.mp4

Reproduce the issue (before fix)

  1. Find an image file in Finder and copy it Cmd+C
    Screen Shot 2025-12-24 at 9 01 09 PM
  2. Try to paste into OpenCode with Cmd+V
  3. Result: Nothing happens (silently fails) 🥲
Screen Shot 2025-12-24 at 8 57 29 PM

Workaround (before fix)

  1. Open image in Preview
  2. Select all (Cmd+A), copy (Cmd+C)
  3. Paste into OpenCode
  4. Result: Works as image file ✅
Screen Shot 2025-12-24 at 8 57 45 PM

@connorads connorads marked this pull request as ready for review December 24, 2025 21:05
@connorads connorads changed the title feat(clipboard): support reading furl (file URL) from macOS clipboard fix: support reading furl (file URL) from macOS clipboard Dec 24, 2025
@rekram1-node
Copy link
Collaborator

/review

@rekram1-node
Copy link
Collaborator

I like the video demonstration

@github-actions
Copy link
Contributor

lgtm

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.

2 participants