opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Images can not be dragged and dropped

Open flatsponge opened this issue 1 month ago • 2 comments

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

flatsponge avatar Nov 23 '25 22:11 flatsponge

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] avatar Nov 23 '25 22:11 github-actions[bot]

+1

khantseithu avatar Dec 29 '25 10:12 khantseithu