In Memory Image can't be Pasted in Opencode After TUI Upgrade.
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
-
Screenshot Monitor or Region (Not Saving to File) to Clipboard. Eg. hyprshot -s -m output -m active --clipboard
-
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.
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
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.
This is still an active issue? There was no fix in the meantime I missed right?
Yes Still facing issue in Latest Version.