opencode
opencode copied to clipboard
bug: ctrl+v / ctrl+c does not work with WSL ubuntu
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
- Install WSL on Windows Server
- Install Ubuntu there
- Try copying or pasting text within Opencode
Screenshot and/or share link
No response
Operating System
Ubuntu 22.04
Terminal
CMD
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.
we will fix
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