Skip to content

Clipboard copy not working on Ubuntu 24.04 (GNOME Terminal) #29834

Closed as not planned

Description

@huynhvy199

Description

Hi OpenCode team,

I’m experiencing a clipboard/copy issue with OpenCode CLI on Ubuntu.

Environment:

  • OS: Ubuntu 24.04 LTS
  • Terminal: Default Ubuntu Terminal (GNOME Terminal)
  • OpenCode CLI version: 1.15.12

Issue:
When I highlight/select text inside OpenCode CLI, the terminal shows “Copied to clipboard”, but the copied text is not actually available in the clipboard.

I already tried:

  • Ctrl + Shift + V
  • Right click → Paste
  • Pasting into other applications

The paste action either does nothing or pastes older clipboard content instead of the selected text.

This appears to be related to Linux clipboard integration on Ubuntu. I also noticed other users reporting similar issues on Ubuntu/Linux environments.

Please investigate. Thanks.

Plugins

No response

OpenCode version

1.15.12

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04 LTS

Terminal

GNOME Terminal

Activity

  1. github-actions commented on May 29, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is already covered by one of the above, please add a thumbs-up reaction there rather than opening a new report. If you believe your case is distinct (e.g. specific to GNOME Terminal or Ubuntu 24.04 in a way not covered), please note what makes it different.

  2. icegood commented on Jul 4, 2026

    @icegood

    we investigated this issue with AI and found reasonable workaround: in wayland environment it should be first:

    apt install wl-clipboard

  3. github-actions commented on Sep 3, 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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions