[PR #6127] fix: support reading furl (file URL) from macOS clipboard #11744

Open
opened 2026-02-16 18:16:41 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6127

State: open
Merged: No


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.

https://github.com/user-attachments/assets/94bf54f5-57a6-4ea9-b38a-a9edcb1afd83

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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6127 **State:** open **Merged:** No --- Adds support for macOS clipboard file URL references (`furl`), which some screenshot tools like [Zappy](https://zapier.com/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. https://github.com/user-attachments/assets/94bf54f5-57a6-4ea9-b38a-a9edcb1afd83 ### Reproduce the issue (before fix) 1. Find an image file in Finder and copy it Cmd+C <img width="303" height="400" alt="Screen Shot 2025-12-24 at 9 01 09 PM" src="https://github.com/user-attachments/assets/6f6132e8-8635-4ef6-a7ea-d67987eb902c" /> 2. Try to paste into OpenCode with Cmd+V 3. Result: Nothing happens (silently fails) 🥲 <img width="596" height="239" alt="Screen Shot 2025-12-24 at 8 57 29 PM" src="https://github.com/user-attachments/assets/dfb7761e-14c7-4b3b-8649-7de02f581647" /> ### Workaround (before fix) 1. Open image in Preview 2. Select all (Cmd+A), copy (Cmd+C) 3. Paste into OpenCode 5. Result: Works as image file ✅ <img width="589" height="259" alt="Screen Shot 2025-12-24 at 8 57 45 PM" src="https://github.com/user-attachments/assets/d19d6311-c88a-47d1-b3cf-2d53d7d0bd2d" />
yindo added the pull-request label 2026-02-16 18:16:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11744