Skip to content

Clipboard image paste does nothing in coder on Wayland/Sway #560

@Talanor

Description

@Talanor

What version of Code is running?

code 0.6.79

Which model were you using?

(GPT-5.4) N/A - the failure happens before any model request is sent, at the paste/attach step (

What platform is your computer?

Linux 6.19.6-2-cachyos x86_64 unknown

What terminal emulator and version are you using (if applicable)?

Alacritty on Wayland/Sway; repros both inside tmux 3.6a and outside tmux. Tested with xterm & terminator as well

What steps can reproduce the bug?

  1. Take a fresh screenshot with Satty.
  2. Confirm the clipboard offers a PNG image:
wl-paste --list-types

Observed output:

image/png
  1. Confirm the clipboard image is valid:
 wl-paste --type image/png > /tmp/clip.png
file /tmp/clip.png

Observed output:

/tmp/clip.png: PNG image data, 3440 x 1440, 8-bit/color RGBA, non-interlaced
  1. Confirm arboard can decode the same clipboard image.
    Observed output:
   file_list unavailable: The clipboard contents were not available in the requested format or the clipboard is empty.
   image ok: 3440x1440 (19814400 bytes)
  1. Run
coder --debug
  1. Focus the composer and press Ctrl+V or Alt+V.

What is the expected behavior?

The clipboard image should attach to the composer.

What do you see instead?

Nothing is attached, and coder --debug shows no extra log lines when the paste shortcut is pressed.

Additional information

  • OS: EndeavourOS
  • Session: Wayland
  • Compositor/Desktop: Sway 1.11
  • Shell: Bash
  • tmux: 3.6a
  • Satty: 0.20.1
  • wl-clipboard: 2.2.1
  • Repros both inside tmux and outside tmux
  • Filepath-based image attachment works in coder
  • Clipboard image paste works in Claude Code in the same environment
  • Since the clipboard image is valid and decodable by arboard, this looks like a Code-side paste shortcut / event handling bug rather than a bad clipboard payload

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions