Skip to content

Ctrl+V image paste from clipboard broken in 0.14.0 (Linux/Wayland) #2885

@yart

Description

@yart

Bug description

In Qwen Code CLI 0.13.x, pressing Ctrl+V in the TUI input field would paste images from the clipboard (as attachments). After upgrading to 0.14.0, this no longer works -- the Ctrl+V shortcut is either ignored or treated as plain text paste, and images are not attached.

The UI hint still shows Ctrl+V as the paste shortcut, so the feature is intended to work.

Environment

  • Qwen Code: 0.14.0
  • OS: Arch Linux (up-to-date, glibc 2.43)
  • Session: Wayland / Hyprland
  • Node.js: v25.x
  • Clipboard: wl-clipboard (wl-paste / wl-copy)

Steps to reproduce

  1. Copy an image to clipboard (e.g. screenshot via grim, or copy from image viewer)
  2. Open Qwen Code CLI (qwen)
  3. Focus the input field
  4. Press Ctrl+V

Expected: Image is attached as an attachment to the message.
Actual: Nothing happens, or only text content of clipboard is pasted.

Additional context

  • This worked in 0.13.x (exact sub-version unclear, but was functional before upgrade).
  • The changelog for 0.14.0 includes: "Improved KeypressProvider with kitty sequence timeout management" -- this likely affected clipboard paste handling.
  • Related issue: Support pasting clipboard images using command + v on mac systems #2046 (image paste support request, closed).
  • Tested with both PNG screenshots and copied image files.

Workaround

Currently the only workaround is saving the image to a file first (wl-paste --type image/png > /tmp/image.png) and then referencing the file path in the prompt.

Metadata

Metadata

Assignees

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