Skip to content

Mouse click (Right-click paste, Left-click select) regression since v0.0.421 #1823

@bsauvage1

Description

@bsauvage1

Description

Since v0.0.421, right-click paste no longer works inside the Copilot CLI when using PuTTY in "Compromise" mode (Middle extends, Right pastes), or in a local powershell. Left-click drag/highlight text selection is also broken. Both worked before this release.

Likely root cause

v0.0.421 introduced two mouse-related changes: the right-click garbled text fix and the new Linux primary selection feature. Together these likely required enabling a broader terminal mouse tracking mode (ESC[?1000h / ?1003h / ?1006h). Once the CLI enables mouse tracking, PuTTY forwards all mouse events as escape sequences to the app instead of handling them itself — so right-click paste and left-click selection never reach PuTTY. Not sure about the cause for local Powershell, perhaps similar.

Shift+right-click still work because PuTTY/powershell Shift modifier explicitly bypasses mouse tracking passthrough.

Suggested fix: avoid consuming button events when no app-level handler is registered.

Workarounds

  • Shift+Insert to paste
  • Shift+Right-click to paste
  • Shift+Left-click drag/highlight to select/copy

Environment

  • PuTTY (Windows), mouse mode: Compromise (Middle extends, Right pastes), or local copilot inside powershell
  • Copilot CLI v0.0.421

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions