Skip to content

X Window (xorg) middle-click paste doesn't work #6072

Closed as not planned
Closed as not planned

Description

@skypher

Description

Using xterm. I can't paste using middle-click. It works fine with other apps, incl. Claude Code, Codex CLI, Gemini CLI. Probably the app is grabbing mouse events.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 23, 2025
  2. github-actions commented on Dec 23, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. skypher commented on Dec 23, 2025

    @skypher
    Author

    Related to #4754 but this is about middle-click paste, not wrong buffer or select to copy.

    Related to #3684 but this is about Xorg not Wayland.

  4. elcorto commented on Feb 9, 2026

    @elcorto

    I do like opencode so far, thanks!

    Just wanted to second what the OP reported and add another data point (using X.Org and alacritty, opencode 1.1.53):

    • middle-mouse paste (from Primary selection) doesn't work, Shift+middle-mouse works
    • Ctrl+Shift+V (paste from Clipboard) works
    • mouse-highlight copies to Clipboard rather than Primary (also mentioned in Copy and Paste behaviour under Linux #4754's "Second issue")
  5. hyder365 commented on Apr 7, 2026

    @hyder365

    I'm hitting this same bug. Thanks for the shift+middle-mouse temporary workaround until it's fixed.

    Also https://old.reddit.com/r/opencodeCLI/comments/1rlg8l7/copy_and_paste_in_linux/

  6. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  7. github-actions commented on Jul 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