Skip to content

Paste into Powershell OpenCode instance not working #6560

Closed

Description

@ultradaoto

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 1, 2026
  2. github-actions commented on Jan 1, 2026

    @github-actions
    Contributor

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

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

  3. ultradaoto commented on Jan 1, 2026

    @ultradaoto
    Author

    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.

  4. pickyourself commented on Jan 12, 2026

    @pickyourself

    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.

  5. shiquda commented on Jan 12, 2026

    @shiquda

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

  6. sharif-smj commented on Jan 12, 2026

    @sharif-smj

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

  7. mamoreau-devolutions commented on Jan 14, 2026

    @mamoreau-devolutions

    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

  8. TakashiKyoto commented on Jan 15, 2026

    @TakashiKyoto

    see also my PR #8626 for complementary fix

  9. ultradaoto commented on Jan 27, 2026

    @ultradaoto
    Author

    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 !

  10. schrew-pfizer commented on Feb 12, 2026

    @schrew-pfizer

    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

  11. wcpaxx commented on Feb 25, 2026

    @wcpaxx

    Windows Powershell v 7.5.4
    npx opencode-ai -v
    1.2.4
    Reproduce the problem

  12. XuanRanDev commented on Jun 20, 2026

    @XuanRanDev

    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.

    Environment:

    • OS: Windows 10
    • Shell: PowerShell
    • OpenCode Version: Latest
  13. labxwin commented on Jun 24, 2026

    @labxwin

    same here

    Environment:

    • OS: Windows 11
    • Shell: PowerShell 7.5.5
    • OpenCode Version: 1.17.9
  14. snowboly commented on Aug 7, 2026

    @snowboly

    same

  15. sharifulgeo commented on Aug 8, 2026

    @sharifulgeo

    PowerShell in Windows 10 reproduces the paste error. No way I can paste there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions