-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows
Description
Description
Bug Description
On Windows 11, Ctrl+V does not paste text in the TUI prompt. The issue occurs in Windows Terminal, cmd, and PowerShell.
Plugins Used
None
OpenCode Version
1.1.53
Steps to Reproduce
- Install opencode on Windows 11
- Start TUI:
opencode - Copy some text to clipboard
- Press Ctrl+V in the prompt
- Expected text to be pasted, but nothing happens
Root Cause
The current implementation only handles image paste via Ctrl+V and relies on terminal bracketed paste for text content. However, Windows terminals may not properly send bracketed paste sequences.
Environment
- OS: Windows 11
- Terminal: Windows Terminal / cmd / PowerShell
Proposed Fix
Directly read clipboard and insert text when Ctrl+V is pressed, instead of relying on terminal bracketed paste.
Plugins
None
OpenCode version
1.1.53
Steps to reproduce
- Install opencode on Windows 11
- Start TUI:
opencode - Copy some text to clipboard
- Press Ctrl+V in the prompt
- Expected text to be pasted, but nothing happens
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal / cmd / PowerShell
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows