GeezerVison is showing github.com — Ctrl+V paste not working on Windows 11 TUI · Issue #13800 · anomalyco/opencode
Ctrl+V paste not working on Windows 11 TUI #13800DescriptionDescription
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 Reacted by ovidiuiliescu and DaydayuPeng Activitygithub-actions commented on Feb 16, 2026 This issue might be a duplicate of existing issues. Please check:
If you have additional details or information not covered in these issues, please mention them here. yxshee commented on Feb 16, 2026 Fixed in this pr #13871
Root Cause
The onKeyDown handler for input_paste (Ctrl+V) in prompt/index.tsx calls Clipboard.read(), which successfully reads both images and text from the clipboard. However, only the image/* case was handled — for text content, the handler fell through expecting the terminal to emit a bracketed paste sequence. Windows Terminal, cmd, and PowerShell do not reliably send bracketed paste sequences for Ctrl+V key presses, causing text paste to silently fail.
Fix
clipboard.ts: Added Clipboard.readText() — a dedicated text reader that uses clipboardy.read() and normalizes CRLF/CR line endings to LF. GitHub-lcb commented on Mar 16, 2026 Has it been fixed? Is the problem still there? shutu-ai commented on Mar 17, 2026 Fixed, thanks
Terence Jiang
13828853622
…
---Original---
From: ***@***.***>
Date: Mon, Mar 16, 2026 04:21 AM
To: ***@***.***>;
Cc: "Terence ***@***.******@***.***>;
Subject: Re: [anomalyco/opencode] Ctrl+V paste not working on Windows 11 TUI(Issue #13800)
GitHub-lcb left a comment ( anomalyco/opencode#13800)
Has it been fixed? Is the problem still there?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
removed bugSomething isn't working opentuiThis relates to changes in v1.0, now that opencode uses opentui on May 3, 2026github-actions commented on Jul 3, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one. honglei commented on Aug 22, 2026 Not fixed yet for latest version !!! use cc cli or codex cli for wsl/win11. @GitHub-lcb marmouille commented on Sep 18, 2026 Got the same problem and it modifies the apparence of Mammouth. Some caracters are replaced by ????
About pasting : shift + right click works instead of Ctr+V
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|