You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: Copy/Paste Issues in OpenCode CLI #15604
Description:
Copy/paste functionality is broken in the OpenCode CLI terminal interface.
Issue 1 - Ctrl+Shift+V:
When pressing Ctrl+Shift+V to paste, instead of pasting text, OpenCode throws an error:
"ERROR: Cannot read "clipboard" (this model does not support image input). Inform the user."
The clipboard contains plain text (verified with xclip - shows UTF8_STRING), but OpenCode incorrectly tries to read it as an image.
Issue 2 - Right-click menu:
Right-click in the terminal does nothing at all (no context menu appears)
This prevents using right-click → Paste as an alternative
Expected behavior:
Ctrl+Shift+V should paste text from the system clipboard
Right-click should show a context menu with Paste option
Workaround that partially works:
None fully works. Typing directly in the input area works but is not ideal.
Additional notes:
System clipboard works perfectly fine in other terminal applications (e.g., ollama commands)
After installing xclip, the clipboard became accessible but content type is misidentified
This prevents users who rely on paste (e.g., for transcription from audio apps) from using OpenCode effectively
Plugins
none
OpenCode version
terminal
Steps to reproduce
Copy some text from anywhere (another app or within OpenCode chat)
Press Ctrl+Shift+V in the OpenCode prompt area
Error occurs instead of pasting text
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04.4 LTS (Noble)
Terminal
gnome terminal
Reacted by Joe Muller, drewavos, Stanislav German-Evtushenko, Daniel Fernandes, Abdul Moiz, Daniel Feldmann, mohammad13467 and alkunit
it used to work , they just have to re enable it , its works for opencode desktop tho just fine , but its anyyoing as heck , but sometimes opencode desktop app feel or seems like a dumber verison seems recent updates, also this seemed to work for me , The Double-Modifier: Hold Ctrl + Shift and then Right-Click your mouse inside the terminal.
Activity
github-actions commentedon Mar 1, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these, please add details explaining how it differs.
For keybind-related issues, please also check our pinned keybinds documentation: #4997
github-actions commentedon May 1, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
danielpsf commentedon May 11, 2026
Any new solution for this? I'm still with this issue.
payrequestio commentedon May 14, 2026
I solved this problem with: set "mouse": false in ~/.config/opencode/tui.json.
psychochaingang commentedon Jun 14, 2026
it used to work , they just have to re enable it , its works for opencode desktop tho just fine , but its anyyoing as heck , but sometimes opencode desktop app feel or seems like a dumber verison seems recent updates, also this seemed to work for me , The Double-Modifier: Hold Ctrl + Shift and then Right-Click your mouse inside the terminal.