Skip to content

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

Closed as not planned
Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 1, 2026
  2. github-actions commented on Mar 1, 2026

    @github-actions
    Contributor

    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

  3. github-actions commented on May 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  4. danielpsf commented on May 11, 2026

    @danielpsf

    Any new solution for this? I'm still with this issue.

  5. payrequestio commented on May 14, 2026

    @payrequestio

    I solved this problem with: set "mouse": false in ~/.config/opencode/tui.json.

  6. psychochaingang commented on Jun 14, 2026

    @psychochaingang

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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