opencode icon indicating copy to clipboard operation
opencode copied to clipboard

In Memory Image can't be Pasted in Opencode After TUI Upgrade.

Open amanhigh opened this issue 2 months ago • 5 comments

Description

In Memory Image (Clipboard) can't be pasted to Opencode while Image Paste from File Works.

It causes trouble in chat when screenshot of UI etc has to be Shared.

OpenCode version

1.0.45

Steps to reproduce

  1. Screenshot Monitor or Region (Not Saving to File) to Clipboard. Eg. hyprshot -s -m output -m active --clipboard

  2. Try Pasting to Opencode not Working Keys Tried (Windows): Ctrl + v , Ctrl + Shift + V, Windows/Meta + V (Working before TUI Upgrade)

Pasting a File Works when Copied from File Browser.

Image

Expected Behaviour Image as Binary Should be Pastable to Opencode as well as it worked Before.

Screenshot and/or share link

No response

Operating System

Arch Linux Latest

Terminal

Kitty

amanhigh avatar Nov 08 '25 13:11 amanhigh

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

  • #1429: feat: support pasting images from the clipboard - Original feature request for clipboard image pasting support
  • #2878: Pasting images doesn't work on WSL2 Wezterm - Similar issue with image pasting not working
  • #906: Feature request: Paste to attach image - Request for paste functionality to add images from clipboard
  • #4004: On macOS, copying an image file from Finder results in pasting a generic image icon, instead of the image data - Related clipboard image handling issue

Your specific issue about in-memory images not being pasteable after the TUI upgrade appears to be a regression of previously working functionality, which may be distinct from the other issues that were requesting the feature from scratch.

Feel free to ignore if none of these address your specific case of the regression after TUI upgrade.

github-actions[bot] avatar Nov 08 '25 13:11 github-actions[bot]

This is still an active issue? There was no fix in the meantime I missed right?

agentic-ai-forge avatar Dec 31 '25 09:12 agentic-ai-forge

Yes Still facing issue in Latest Version.

amanhigh avatar Dec 31 '25 15:12 amanhigh