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-pasteworks manually)
Steps to Reproduce
- Install openclaude 0.21.0 - image pasting works fine
- Upgrade to any version > 0.21.0 (tested 0.22.0, 0.23.0)
- Copy an image from any source (image viewer, screenshot, etc.)
- Press Ctrl+V to paste
- Observe: "pasting text" appears in corner but nothing else happens
- The terminal becomes unresponsive - cannot type anything
- 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:
The Linux clipboard code in
src/utils/imagePaste.tsis identical between versions - only Windows-specific clipboard handling was changed (PR #1855)The paste handler hooks (
src/hooks/usePasteHandler.ts) are identicalNo 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:
npm install -g @gitlawb/[email protected]Source: Gitlawb/openclaude