bug: ctrl+v / ctrl+c does not work with WSL ubuntu #3312

Closed
opened 2026-02-16 17:39:37 -05:00 by yindo · 3 comments
Owner

Originally created by @baccaraaa on GitHub (Dec 4, 2025).

Description

My Windows VDS runs WSL, which runs Ubuntu, and Opencode already runs on it. Copying and pasting text does not work within Opencode.

OpenCode version

1.0.133

Steps to reproduce

  1. Install WSL on Windows Server
  2. Install Ubuntu there
  3. Try copying or pasting text within Opencode

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

CMD

Originally created by @baccaraaa on GitHub (Dec 4, 2025). ### Description My Windows VDS runs WSL, which runs Ubuntu, and Opencode already runs on it. Copying and pasting text does not work within Opencode. ### OpenCode version 1.0.133 ### Steps to reproduce 1. Install WSL on Windows Server 2. Install Ubuntu there 3. Try copying or pasting text within Opencode ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 22.04 ### Terminal CMD
yindo added the windowsopentuibug labels 2026-02-16 17:39:37 -05:00
yindo closed this issue 2026-02-16 17:39:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 4, 2025):

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

  • #3081: I can't paste text with CTRL+V or right mouse click when running inside WSL - This appears to be the exact same issue on WSL
  • #4754: Copy and Paste behaviour under Linux - Related copy/paste issues on Linux systems
  • #3538: Unable to copy using shortcut from TUI (opentui & current) - Copy/paste shortcut issues with opentui
  • #4283: Copy To Clipboard is not working - General copy/paste functionality issues

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

@github-actions[bot] commented on GitHub (Dec 4, 2025): This issue might be a duplicate of existing issues. Please check: - #3081: I can't paste text with CTRL+V or right mouse click when running inside WSL - This appears to be the exact same issue on WSL - #4754: Copy and Paste behaviour under Linux - Related copy/paste issues on Linux systems - #3538: Unable to copy using shortcut from TUI (opentui & current) - Copy/paste shortcut issues with opentui - #4283: Copy To Clipboard is not working - General copy/paste functionality issues Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

we will fix

@rekram1-node commented on GitHub (Dec 4, 2025): we will fix
Author
Owner

@vincentauger commented on GitHub (Dec 9, 2025):

Installing xclip on my WSL Ubuntu 24.04 and restarted OpenCode allowed me to get this working. I didn't have issues with paste Ctrl+V but couldn't copy anything.

sudo apt install xclip

@vincentauger commented on GitHub (Dec 9, 2025): Installing `xclip` on my WSL Ubuntu 24.04 and restarted OpenCode allowed me to get this working. I didn't have issues with paste Ctrl+V but couldn't copy anything. `sudo apt install xclip`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3312