Image paste from clipboard not working in some terminal emulators (Terminator, PhpStorm integrated terminal)

Resolved 💬 16 comments Opened Dec 14, 2025 by atournayre Closed Mar 13, 2026

Description

Image paste from clipboard stopped working in some terminal emulators. This is a regression - it was working a few weeks ago.

Environment

  • OS: Ubuntu (Linux 6.14.0)
  • Session type: X11
  • Desktop: GNOME

Affected terminals

  • Terminator
  • PhpStorm integrated terminal

Working terminals

  • gnome-terminal (native Ubuntu terminal)

Diagnostic

The clipboard does contain the image correctly:

$ xclip -selection clipboard -t TARGETS -o
image/png
TARGETS
TIMESTAMP

$ xclip -selection clipboard -t image/png -o > /tmp/test.png
$ file /tmp/test.png
/tmp/test.png: PNG image data, 2542 x 1421, 8-bit/color RGBA, non-interlaced

The image is present in the X11 clipboard, but Claude Code reports "no image in clipboard" when pasting with Ctrl+V in the affected terminals.

Workaround

Save the image from clipboard manually and provide the file path:

xclip -selection clipboard -t image/png -o > /tmp/clipboard.png

Then reference /tmp/clipboard.png in the conversation.

Expected behavior

Ctrl+V should detect and paste the image from clipboard in all terminal emulators, as it did before.

View original on GitHub ↗

16 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8324
  2. https://github.com/anthropics/claude-code/issues/8693
  3. https://github.com/anthropics/claude-code/issues/12486

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

atournayre · 7 months ago

Not a duplicate

After analyzing the suggested duplicates:

| Issue | Why it's different |
|-------|-------------------|
| #8324 | Wayland + KDE environment. My issue is X11 + GNOME |
| #8693 | Closed/resolved |
| #12486 | Feature request to add Linux support. My issue is a regression - it was working before |

Key differentiator

This issue is terminal-specific on X11:

  • gnome-terminal works
  • Terminator doesn't work
  • ❌ PhpStorm integrated terminal doesn't work

The clipboard contains the image correctly (verified with xclip), but Claude Code doesn't detect it in certain terminal emulators. This suggests an issue with how clipboard detection works across different terminal implementations on X11.

JGKle · 6 months ago

Pasting images also not working for me in:

Claude 2.0.75
KDE Neon 6.2
X11
Konsole

(Note: tried installing xclip, the workaround given in https://github.com/anthropics/claude-code/issues/8324, but it still doesn't work properly)

mathiasesn · 6 months ago

I'm also experiencing this issue.

Environment:

  • OS: Ubuntu 25.10
  • Claude Code: v2.0.76
  • Terminal: warp v0.2025.11.19.08.12.stable_03

Ctrl+V doesn't paste clipboard images — nothing happens. Images paste fine in other applications (browser, GIMP, etc.), confirming the clipboard content is valid.

Currently working around this by saving screenshots to disk and referencing the file path directly.

dmwyatt · 6 months ago

At least on Ubuntu Desktop you have to install xclip for pasting images to work, which worked for me...

JGKle · 6 months ago
At least on Ubuntu Desktop you have to install xclip for pasting images to work, which worked for me...

Wayland or X11

mathiasesn · 6 months ago
At least on Ubuntu Desktop, you have to install xclip for pasting images to work, which worked for me...

@dmwyatt, you are right. It seems to work now, thanks! 👍

dmwyatt · 6 months ago
> At least on Ubuntu Desktop you have to install xclip for pasting images to work, which worked for me... Wayland or X11

I had claude read this thread and prepare this response 😄:

---

Wayland - I'm running on Wayland, not X11.

Full system details:

  • Session Type: Wayland
  • Desktop Environment: ubuntu:GNOME
  • OS: Ubuntu 24.04.3 LTS (Noble)
  • Claude Code: 2.0.76
  • Clipboard tools installed: xclip 0.13-3 (wl-clipboard is NOT installed)

What I did:
Installed xclip via sudo apt install xclip and image pasting started working immediately.

Interesting observation:
xclip is traditionally for X11, but it resolved the issue on my Wayland session. This might suggest:

  1. Claude Code may have better Wayland support than X11 support for clipboard operations
  2. Or GNOME's XWayland compatibility layer is successfully bridging xclip's X11 clipboard operations to Wayland

This could explain why xclip didn't help you on KDE + X11 + Konsole but did help me on GNOME + Wayland - the issue might not be just about xclip availability, but also about the desktop environment's clipboard handling.

JGKle · 6 months ago

Yeah, so the problem persists on X11 (this issue #13966). The workaround does not apply to this issue, it applies to #8324 (which is the thread for Wayland)

zuuxuux · 6 months ago
At least on Ubuntu Desktop you have to install xclip for pasting images to work, which worked for me...

This worked for me

github-actions[bot] · 5 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

atournayre · 5 months ago

Still occurring

matthewadams · 5 months ago

FWIW, I have the same problem using Flameshot on Linux Mint & Terminator.

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

DaturaSleep · 3 months ago

can we re-open it? issue still persists

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.