Paste into Powershell OpenCode instance not working #4046

Closed
opened 2026-02-16 17:42:24 -05:00 by yindo · 10 comments
Owner

Originally created by @ultradaoto on GitHub (Dec 31, 2025).

Originally assigned to: @kommander on GitHub.

Description

I can paste just fine into normal PowerShell (Windows 11 Pro) but when in convo in OpenCode, no possibility to paste anything from my clipboard.

Right click usually pastes clipboard into Powershell, doesn't work in OpenCode, and ctrl+v also does nothing.

I can type text just fine, the LLM works, responds, etc.

Have only just tried on Windows Powershell and this is very tough to work with.

OpenCode version

1.0.213

Steps to reproduce

Open PowerShell (Admin Mode)
cd to directory of choice (/Development/project/
type opencode, hit enter
Copy text from any source like webpage (highlight text ctrl+c)
In opencode chat box, hit ctrl+v to paste
Not pasting clipboard contents
Right click mouse (alternate paste method)
Does not paste clipboard contents
Can type normally in opencode

Screenshot and/or share link

No response

Operating System

Windows 11 Pro

Terminal

PowerShell

Originally created by @ultradaoto on GitHub (Dec 31, 2025). Originally assigned to: @kommander on GitHub. ### Description I can paste just fine into normal PowerShell (Windows 11 Pro) but when in convo in OpenCode, no possibility to paste anything from my clipboard. Right click usually pastes clipboard into Powershell, doesn't work in OpenCode, and ctrl+v also does nothing. I can type text just fine, the LLM works, responds, etc. Have only just tried on Windows Powershell and this is very tough to work with. ### OpenCode version 1.0.213 ### Steps to reproduce Open PowerShell (Admin Mode) cd to directory of choice (/Development/project/ type opencode, hit enter Copy text from any source like webpage (highlight text ctrl+c) In opencode chat box, hit ctrl+v to paste Not pasting clipboard contents Right click mouse (alternate paste method) Does not paste clipboard contents Can type normally in opencode ### Screenshot and/or share link _No response_ ### Operating System Windows 11 Pro ### Terminal PowerShell
yindo added the windowsopentuibug labels 2026-02-16 17:42:24 -05:00
yindo closed this issue 2026-02-16 17:42:24 -05:00
Author
Owner

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

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

  • #6111: Copy to clipboard broken over SSH (MobaXterm & Windows Terminal) - Similar paste issues on Windows terminals
  • #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell - Exact same terminal and paste problems
  • #5084: ctrl+v / ctrl+c does not work with WSL ubuntu - Paste functionality failing on Windows environments
  • #5046: Can't copy text from opencode through mouse selection in Windows Terminal - Windows Terminal paste/copy issues
  • #909: Can't Paste content from clipboard - General paste issues reported
  • #2999: Provide means to disable Ctrl-C - Ctrl+C conflicts in Windows PowerShell
  • #5476: Bad experience installing OpenCode for Windows - Multiple Windows terminal issues including paste

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

@github-actions[bot] commented on GitHub (Dec 31, 2025): This issue might be a duplicate of existing issues. Please check: - #6111: Copy to clipboard broken over SSH (MobaXterm & Windows Terminal) - Similar paste issues on Windows terminals - #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell - Exact same terminal and paste problems - #5084: ctrl+v / ctrl+c does not work with WSL ubuntu - Paste functionality failing on Windows environments - #5046: Can't copy text from opencode through mouse selection in Windows Terminal - Windows Terminal paste/copy issues - #909: Can't Paste content from clipboard - General paste issues reported - #2999: Provide means to disable Ctrl-C - Ctrl+C conflicts in Windows PowerShell - #5476: Bad experience installing OpenCode for Windows - Multiple Windows terminal issues including paste Feel free to ignore if none of these address your specific case.
Author
Owner

@ultradaoto commented on GitHub (Dec 31, 2025):

Still believe this is a valid report, as it may explain a more fundamental reason paste is broken in other "powershell wrappers" like VSCode, Cursor, and WSL, which works through PowerShell.

This is a baremetal test in a raw powershell window, you can paste into powershell just fine, but as soon as you are running opencode, that ability is lost.

@ultradaoto commented on GitHub (Dec 31, 2025): Still believe this is a valid report, as it may explain a more fundamental reason paste is broken in other "powershell wrappers" like VSCode, Cursor, and WSL, which works through PowerShell. This is a baremetal test in a raw powershell window, you can paste into powershell just fine, but as soon as you are running opencode, that ability is lost.
Author
Owner

@pickyourself commented on GitHub (Jan 12, 2026):

I confirm the bug you have identified. I am currently using version v1.1.14, and when launching OpenCode in the Command Prompt (CMD) on the Windows system, the text pasting function is still unavailable — you can only manually type in text and commands in the dialog box. I have no idea what is causing this issue.

@pickyourself commented on GitHub (Jan 12, 2026): I confirm the bug you have identified. I am currently using version v1.1.14, and when launching OpenCode in the Command Prompt (CMD) on the Windows system, the text pasting function is still unavailable — you can only manually type in text and commands in the dialog box. I have no idea what is causing this issue.
Author
Owner

@shiquda commented on GitHub (Jan 12, 2026):

I found that in Windows, if you open it using the PowerShell terminal from VSCode, pasting images works fine.

@shiquda commented on GitHub (Jan 12, 2026): I found that in Windows, if you open it using the PowerShell terminal from VSCode, pasting images works fine.
Author
Owner

@sharif-smj commented on GitHub (Jan 12, 2026):

Is there any work around for this coz pasting is all i do while using clis

@sharif-smj commented on GitHub (Jan 12, 2026): Is there any work around for this coz pasting is all i do while using clis
Author
Owner

@mamoreau-devolutions commented on GitHub (Jan 14, 2026):

For anyone using Windows Terminal - it captures Ctrl+V by default without forwarding it to OpenCode. More details in https://github.com/anomalyco/opencode/issues/8490 on how to disable that default behavior. I also opened pull request to add Alt+V for image pasting, which aligns it with Claude Code and Copilot CLI, and works with default settings for Windows Terminal: https://github.com/anomalyco/opencode/pull/8495

@mamoreau-devolutions commented on GitHub (Jan 14, 2026): For anyone using Windows Terminal - it captures Ctrl+V by default without forwarding it to OpenCode. More details in https://github.com/anomalyco/opencode/issues/8490 on how to disable that default behavior. I also opened pull request to add Alt+V for image pasting, which aligns it with Claude Code and Copilot CLI, and works with default settings for Windows Terminal: https://github.com/anomalyco/opencode/pull/8495
Author
Owner

@TakashiKyoto commented on GitHub (Jan 15, 2026):

see also my PR #8626 for complementary fix

@TakashiKyoto commented on GitHub (Jan 15, 2026): see also my PR #8626 for complementary fix
Author
Owner

@Tpaidaoke commented on GitHub (Jan 26, 2026):

我也遇到了这个问题,有什么解决办法吗

@Tpaidaoke commented on GitHub (Jan 26, 2026): 我也遇到了这个问题,有什么解决办法吗
Author
Owner

@ultradaoto commented on GitHub (Jan 27, 2026):

I have found since the latest 1.1.36 version of OpenCode and using PowerShell 7.0 (must separately install this) that Paste and Copy functionality works exceptionally well !

@ultradaoto commented on GitHub (Jan 27, 2026): I have found since the latest 1.1.36 version of OpenCode and using PowerShell 7.0 (must separately install this) that Paste and Copy functionality works *exceptionally* well !
Author
Owner

@schrew-pfizer commented on GitHub (Feb 12, 2026):

On newer version right click doesnt work, ctrl-v doesnit work. But just tried
ctrl+shift+v
and that did the trick !

 npx opencode-ai -v
1.1.59

Windows Powershell v 7.5.4

@schrew-pfizer commented on GitHub (Feb 12, 2026): On newer version right click doesnt work, ctrl-v doesnit work. But just tried ctrl+shift+v and that did the trick ! ``` npx opencode-ai -v 1.1.59 ```` Windows Powershell v 7.5.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4046