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
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.ts is identical between versions - only Windows-specific clipboard handling was changed (PR fix(clipboard): use .NET Clipboard.GetImage() for Windows raw bitmap paste #1855 )
The paste handler hooks (src/hooks/usePasteHandler.ts) are identical
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:
npm install -g @gitlawb/openclaude@0.21.0
Bug Description
Image pasting is completely broken on Linux in any version after 0.21.0. All paste methods fail:
Version 0.21.0 works perfectly. Any version 0.22.0+ does not work.
Environment
wl-pasteworks manually)Steps to Reproduce
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 fix(clipboard): use .NET Clipboard.GetImage() for Windows raw bitmap paste #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:
Workaround
Downgrade to 0.21.0: