#2198·openclaude

Image pasting broken on Linux in versions after 0.21.0

Author: wetw0rks-c0dingCreated Sep 3, 2026Updated Sep 11, 2026

Bug Description

Image pasting is completely broken on Linux in any version after 0.21.0. All paste methods fail:

  • Copying from image viewer + Ctrl+V
  • Taking screenshot + pasting
  • Dragging and dropping image files

Version 0.21.0 works perfectly. Any version 0.22.0+ does not work.

Environment

  • OS: Arch Linux
  • Terminal: Wayland (XDG_SESSION_TYPE=wayland)
  • wl-clipboard is installed and functional (wl-paste works manually)

Steps to Reproduce

  1. Install openclaude 0.21.0 - image pasting works fine
  2. Upgrade to any version > 0.21.0 (tested 0.22.0, 0.23.0)
  3. Copy an image from any source (image viewer, screenshot, etc.)
  4. Press Ctrl+V to paste
  5. Observe: "pasting text" appears in corner but nothing else happens
  6. The terminal becomes unresponsive - cannot type anything
  7. Full terminal shutdown required to resume work

Expected Behavior

Image pasting should work the same as in 0.21.0

Investigation Notes

After reviewing the git history between v0.21.0 and v0.22.0:

  1. The Linux clipboard code in src/utils/imagePaste.ts is identical between versions - only Windows-specific clipboard handling was changed (PR #1855)

  2. The paste handler hooks (src/hooks/usePasteHandler.ts) are identical

  3. No changes to stdin handling, paste detection, or REPL that would affect Linux

This suggests the bug may be:

  • A build configuration issue
  • An environmental change in the bundled Node.js runtime
  • Something specific to how npm packages are built vs git tags

Workaround

Downgrade to 0.21.0:

bash
npm install -g @gitlawb/[email protected]