Copy to clipboard stopped working on WSL 2 #9065

Closed
opened 2026-02-16 18:11:33 -05:00 by yindo · 6 comments
Owner

Originally created by @aeiplatform on GitHub (Feb 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I'm not sure, but sometime in the latest version, copying to the clipboard stopped working in WSL 2.

Plugins

No response

OpenCode version

1.1.50

Steps to reproduce

Copying some text
I see copied to clipboard
It wasn't copied

Screenshot and/or share link

Linux version 6.6.87.2-microsoft-standard-WSL2 (root@439a258ad544) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025

Operating System

Windows 11, WSL 2, Ubuntu 24.04.4 LTS

Terminal

xterm-256color

Originally created by @aeiplatform on GitHub (Feb 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I'm not sure, but sometime in the latest version, copying to the clipboard stopped working in WSL 2. ### Plugins _No response_ ### OpenCode version 1.1.50 ### Steps to reproduce Copying some text I see copied to clipboard It wasn't copied ### Screenshot and/or share link Linux version 6.6.87.2-microsoft-standard-WSL2 (root@439a258ad544) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 ### Operating System Windows 11, WSL 2, Ubuntu 24.04.4 LTS ### Terminal xterm-256color
yindo added the windowsbugneeds:compliance labels 2026-02-16 18:11:33 -05:00
yindo closed this issue 2026-02-16 18:11:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • The "Steps to reproduce" section is empty. Please provide specific steps to reproduce the issue (e.g., what action triggers the clipboard to fail, are you using certain plugins, etc.)

Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

  • #5879: Clipboard copy in WSL
  • #9999: Clipboard functionality fails in WSL environment due to missing Windows executable paths (includes detailed analysis and proposed solution)
  • #13101: WSL2 paste/clipboard issue (very recent, 2026-02-11)

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 11, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - The "Steps to reproduce" section is empty. Please provide specific steps to reproduce the issue (e.g., what action triggers the clipboard to fail, are you using certain plugins, etc.) Please edit this issue to address the above within **2 hours**, or it will be automatically closed. --- This issue might be a duplicate of existing issues. Please check: - #5879: Clipboard copy in WSL - #9999: Clipboard functionality fails in WSL environment due to missing Windows executable paths (includes detailed analysis and proposed solution) - #13101: WSL2 paste/clipboard issue (very recent, 2026-02-11) If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@aeiplatform commented on GitHub (Feb 11, 2026):

Environment: WSL 2 (Ubuntu)
Kernel: 6.6.87.2-microsoft-standard-WSL2 (Build: June 2025)
Terminal: VS Code Terminal Relay
Color Support: xterm-256color (8-bit)

@aeiplatform commented on GitHub (Feb 11, 2026): **Environment:** WSL 2 (Ubuntu) **Kernel:** 6.6.87.2-microsoft-standard-WSL2 (Build: June 2025) **Terminal:** VS Code Terminal Relay **Color Support:** xterm-256color (8-bit)
Author
Owner

@aeiplatform commented on GitHub (Feb 11, 2026):

Opencode is run inside of WSL2

@aeiplatform commented on GitHub (Feb 11, 2026): Opencode is run inside of WSL2
Author
Owner

@aeiplatform commented on GitHub (Feb 11, 2026):

A month ago, this worked.

@aeiplatform commented on GitHub (Feb 11, 2026): A month ago, this worked.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 11, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Author
Owner

@aeiplatform commented on GitHub (Feb 11, 2026):

I have updated those steps to reproduce ***

@aeiplatform commented on GitHub (Feb 11, 2026): I have updated those steps to reproduce ***
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9065