GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #13800

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Ctrl+V paste not working on Windows 11 TUI#13800
Copy link
Assignees
kommander

Description

@shutu-ai
shutu-ai
opened on Feb 16, 2026
Issue body actions

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

  1. Install opencode on Windows 11
  2. Start TUI: opencode
  3. Copy some text to clipboard
  4. Press Ctrl+V in the prompt
  5. 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

  1. Install opencode on Windows 11
  2. Start TUI: opencode
  3. Copy some text to clipboard
  4. Press Ctrl+V in the prompt
  5. 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

Activity

  1. shutu-ai
    added
    bugSomething isn't working
    on Feb 16, 2026
  2. github-actions
    assigned
    kommander
    on Feb 16, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    windows
    on Feb 16, 2026
  4. github-actions commented on Feb 16, 2026

    @github-actions
    github-actionsBot
    on Feb 16, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Windows & Ubuntu: impossible to paste API key after /connect (Ctrl-V / Ctrl-Shift-V / right-click all fail, no hints) #9922: Windows & Ubuntu: impossible to paste API key after /connect (Ctrl-V / Ctrl-Shift-V / right-click all fail, no hints)
    • window10,无法使用ctrl+c,ctrl+v 复制粘贴 #12595: window10,无法使用ctrl+c,ctrl+v 复制粘贴 (Ctrl+V paste not working on Windows 10)
    • Cannot paste multiple lines in Windows Terminal and VSCode+Powershell #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell

    If you have additional details or information not covered in these issues, please mention them here.

  5. yxshee commented on Feb 16, 2026

    @yxshee
    yxshee
    on Feb 16, 2026
    More actions

    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.

  6. GitHub-lcb commented on Mar 16, 2026

    @GitHub-lcb
    GitHub-lcb
    on Mar 16, 2026
    More actions

    Has it been fixed? Is the problem still there?

  7. shutu-ai commented on Mar 17, 2026

    @shutu-ai
    shutu-ai
    on Mar 17, 2026 via email
    Author
    More actions
    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: ***@***.***>
  8. thdxr
    removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    windows
    on May 3, 2026
  9. github-actions commented on Jul 3, 2026

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  10. github-actions
    closed this as not plannedon Jul 3, 2026
  11. honglei commented on Aug 22, 2026

    @honglei
    honglei
    on Aug 22, 2026
    More actions

    Not fixed yet for latest version !!! use cc cli or codex cli for wsl/win11. @GitHub-lcb

    Reacted by Matt Parker
  12. marmouille commented on Sep 18, 2026

    @marmouille
    marmouille
    on Sep 18, 2026
    More actions

    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

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

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.