Uh oh!
There was an error while loading. Please reload this page.
fix(tui): support middle-click paste from X11 primary selection - #16379
fix(tui): support middle-click paste from X11 primary selection#16379linuxhd0 wants to merge 3 commits into
Conversation
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs Found
These PRs appear to be addressing the same or very similar issue regarding middle-click paste support on Linux systems. |
linuxhd0
commented
Mar 7, 2026
All three open PRs touch Linux clipboard/middle-click paste but they're not really duplicates — each addresses a diiferent issue with pasting. Summary Table
Why They Are Complementary
As of today, all three can be merged independently and without conflict. |
Adds readPrimary() function supporting wl-paste, xclip, and xsel for reading the X11 primary selection buffer. Adds middle-click handler to the prompt textarea. Upstream: anomalyco/opencode#16379https://claude.ai/code/session_01R2NB6YZNAFe57T3uhSCGo9
Adds readPrimary() function supporting wl-paste, xclip, and xsel for reading the X11 primary selection buffer. Adds middle-click handler to the prompt textarea. Upstream: anomalyco/opencode#16379https://claude.ai/code/session_01R2NB6YZNAFe57T3uhSCGo9
9b20581 to
f550caaComparef550caa to
aed4247Compareaed4247 to
a2eaa61Comparerekram1-node
commented
May 15, 2026
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes#8915
Type of change
What does this PR do?
It allows someone on Linux (Xorg, Wayland) to select text in one application and use the middle mouse button to paste into the prompt textbox without have to do ctrl-c + ctrl-v. This is common behaviour on Linux systems.
How did you verify your code works?
I ran bun dev after making the changes, selected some text in another terminal and pasted it into opencode and it worked. Without the fix, you don't get anything indication that anything at all happened in opencode.
I use Xorg, didn't try Wayland though.
Screenshots / recordings
N/A
Checklist
If you do not follow this template your PR will be automatically rejected.