Images can not be dragged and dropped #3075

Open
opened 2026-02-16 17:38:29 -05:00 by yindo · 2 comments
Owner

Originally created by @flatsponge on GitHub (Nov 23, 2025).

Description

Drag and drop is not importing images correctly. it displays the file path instead of the image. I ruled out permission issues by testing a file from the directory OC is running, but the issue persists. Note that pasting a screenshot from the clipboard works as expected.

OpenCode version

v1.0.106

Steps to reproduce

  1. Take a screenshot
  2. Drag and drop into the terminal
  3. The path is imported and not the image

Screenshot and/or share link

Image

Operating System

Mac 26.1

Terminal

warp

Originally created by @flatsponge on GitHub (Nov 23, 2025). ### Description Drag and drop is not importing images correctly. it displays the file path instead of the image. I ruled out permission issues by testing a file from the directory OC is running, but the issue persists. Note that pasting a screenshot from the clipboard works as expected. ### OpenCode version v1.0.106 ### Steps to reproduce 1. Take a screenshot 2. Drag and drop into the terminal 3. The path is imported and not the image ### Screenshot and/or share link <img width="817" height="317" alt="Image" src="https://github.com/user-attachments/assets/37ca9d90-51df-4b52-bb1f-6e69450a4a56" /> ### Operating System Mac 26.1 ### Terminal warp
yindo added the opentuibug labels 2026-02-16 17:38:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 23, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3747: Image drag/drop no longer works (similar functionality broken after OpenTUI change)
  • #4004: On macOS, copying an image file from Finder results in pasting a generic image icon, instead of the image data (related to macOS image handling)
  • #4077: In Memory Image can't be Pasted in Opencode After TUI Upgrade (related clipboard/image pasting issue)
  • #906: Feature request: Paste to attach image (related feature request for image pasting)
  • #1429: feat: support pasting images from the clipboard (related feature request)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 23, 2025): This issue might be a duplicate of existing issues. Please check: - #3747: Image drag/drop no longer works (similar functionality broken after OpenTUI change) - #4004: On macOS, copying an image file from Finder results in pasting a generic image icon, instead of the image data (related to macOS image handling) - #4077: In Memory Image can't be Pasted in Opencode After TUI Upgrade (related clipboard/image pasting issue) - #906: Feature request: Paste to attach image (related feature request for image pasting) - #1429: feat: support pasting images from the clipboard (related feature request) Feel free to ignore if none of these address your specific case.
Author
Owner

@khantseithu commented on GitHub (Dec 29, 2025):

+1

@khantseithu commented on GitHub (Dec 29, 2025): +1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3075