[PR #6370] fix: enable primary clipboard copy for Wayland/X11 to fix Linux middle-click paste #11863

Open
opened 2026-02-16 18:16:48 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6370

State: open
Merged: No


Summary

Fixes #6110: Adds optional config clipboard.linux.enablePrimaryCopy to enable primary clipboard copying in Wayland/X11, fixing Linux middle-click paste by populating both regular and primary selections without changing default behavior.

Changes

  • Added config schema in config.ts.
  • Updated clipboard.ts for conditional primary copying.

To enable primary clipboard copy add to opencode config (default is false):

{
  "clipboard": {
    "linux": {
      "enablePrimaryCopy": true
    }
  }
}

Labels: bug, opentui

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6370 **State:** open **Merged:** No --- ## Summary Fixes #6110: Adds optional config `clipboard.linux.enablePrimaryCopy` to enable primary clipboard copying in Wayland/X11, fixing Linux middle-click paste by populating both regular and primary selections without changing default behavior. ## Changes - Added config schema in `config.ts`. - Updated `clipboard.ts` for conditional primary copying. To enable primary clipboard copy add to opencode config (default is false): ```json { "clipboard": { "linux": { "enablePrimaryCopy": true } } } ``` Labels: bug, opentui
yindo added the pull-request label 2026-02-16 18:16:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11863