Skip to content

Bug Report: Copy/Paste Issues in OpenCode CLI #15604

@odysseusbowofithaka-lang

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

  1. Copy some text from anywhere (another app or within OpenCode chat)
  2. Press Ctrl+Shift+V in the OpenCode prompt area
  3. Error occurs instead of pasting text

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.4 LTS (Noble)

Terminal

gnome terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions