You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Paste into Powershell OpenCode instance not working #6560
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
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.
Reacted by andarcanum, 4kwins, wallfacers, Spectrix, Danny, shiquda, pickyourself, Rafael Oliveira and WTFChuck (Charles Scoville)
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.
For anyone using Windows Terminal - it captures Ctrl+V by default without forwarding it to OpenCode. More details in #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: #8495
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 !
This issue seems to still persist in the latest version of OpenCode.
I'm currently running Windows 10 with the latest OpenCode CLI inside the native PowerShell environment. Whenever the TUI initializes, the clipboard (Ctrl + V and right-click paste) completely stops working, forcing me to manually type everything out.
Could we please re-open this issue? It really ruins the CLI experience for Windows users who aren't using WSL.
Activity
github-actions commentedon Jan 1, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
ultradaoto commentedon Jan 1, 2026
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.
pickyourself commentedon 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.
shiquda commentedon Jan 12, 2026
I found that in Windows, if you open it using the PowerShell terminal from VSCode, pasting images works fine.
sharif-smj commentedon Jan 12, 2026
Is there any work around for this coz pasting is all i do while using clis
mamoreau-devolutions commentedon Jan 14, 2026
For anyone using Windows Terminal - it captures Ctrl+V by default without forwarding it to OpenCode. More details in #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: #8495
TakashiKyoto commentedon Jan 15, 2026
see also my PR #8626 for complementary fix
ultradaoto commentedon 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 !
schrew-pfizer commentedon 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 !
Windows Powershell v 7.5.4
wcpaxx commentedon Feb 25, 2026
Windows Powershell v 7.5.4
npx opencode-ai -v
1.2.4
Reproduce the problem
XuanRanDev commentedon Jun 20, 2026
This issue seems to still persist in the latest version of OpenCode.
I'm currently running Windows 10 with the latest OpenCode CLI inside the native PowerShell environment. Whenever the TUI initializes, the clipboard (
Ctrl + Vand right-click paste) completely stops working, forcing me to manually type everything out.Could we please re-open this issue? It really ruins the CLI experience for Windows users who aren't using WSL.
Environment:
labxwin commentedon Jun 24, 2026
same here
Environment:
snowboly commentedon Aug 7, 2026
same
sharifulgeo commentedon Aug 8, 2026
PowerShell in Windows 10 reproduces the paste error. No way I can paste there.