-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
Description
OS: Ubuntu (GNOME Terminal)
Terminal: GNOME Terminal
OpenCode Version: 1.2.15
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)