Skip to content

Image pasting broken on Linux in versions after 0.21.0 #2198

Description

@wetw0rks-c0ding

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 fix(clipboard): use .NET Clipboard.GetImage() for Windows raw bitmap paste #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:

npm install -g @gitlawb/openclaude@0.21.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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