Skip to content

Right-click paste in Windows Terminal produces garbled unicode instead of clipboard content #1768

@WillEhrendreich

Description

@WillEhrendreich

Describe the bug

Right-click paste in Windows Terminal (PowerShell) while in the Copilot CLI input prompt produces garbled/corrupted unicode characters instead of the actual clipboard content.

For example, pasting a normal English text string via right-click produces:

�J뢰��z-~)ݱ����ॡƥ�֭y�)�Z-�H.�+ޮƥ�N6��������Z�ׯ ""

Ctrl+Shift+V works correctly and pastes the expected text. Only right-click paste is broken.

Affected version

0.0.420

Steps to reproduce the behavior

  1. Open Windows Terminal with PowerShell
  2. Run copilot
  3. Copy any text to the clipboard (e.g., "hello world")
  4. Right-click in the Copilot CLI prompt area to paste
  5. Observe garbled unicode characters instead of the clipboard content
  6. Try Ctrl+Shift+V instead — this works correctly

Expected behavior

Right-click paste should insert the clipboard text verbatim, same as Ctrl+Shift+V does.

Additional context

  • OS: Windows 11
  • Terminal: Windows Terminal (PowerShell 7)
  • Copilot CLI version: 0.0.420
  • Right-click paste works correctly in every other CLI application in the same terminal session — the issue is specific to Copilot CLI's input handler
  • Likely related to how Copilot CLI handles bracketed paste mode or raw terminal input encoding

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions