-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
When using opencode in Wayland environments with wl-clipboard, copying text via highlight selection or Ctrl+Y only populates the regular clipboard but not the primary clipboard. This prevents pasting to the host OS when using VMware Workstation, which only syncs the primary clipboard between guest and host.
Additional context:
- wl-clipboard version: 2.2.1
- In VMware Workstation, only the primary clipboard gets synced between guest and host OS
- The issue affects both the highlight-to-copy functionality and the Ctrl+Y explicit copy command
Proposed solution:
Add a configuration option to control clipboard behavior in Wayland environments:
{
"clipboard": {
"linux": {
"enablePrimaryCopy": true
}
}
}When enablePrimaryCopy is true, the Wayland copy method should execute both wl-copy and wl-copy --primary.
OpenCode version
v1.0.195
Steps to reproduce
- Run opencode TUI in a Wayland environment (Ubuntu 24.04)
- Highlight text and copy using Ctrl+Y or text selection
- In a terminal, check clipboard contents:
wl-paste(regular clipboard) - should show the copied text ✓wl-paste --primary(primary clipboard) - should show the copied text ✗
- Try to paste using middle-click (primary clipboard) - fails
- Try to paste using Ctrl+V (regular clipboard) - works
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04 (Gnome Wayland)
Terminal
ghostty v1.2.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui