You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clipboard image paste failure in Codex CLI on Arch Linux despite text content #13716
What terminal emulator and version are you using (if applicable)?
kitty
What issue are you seeing?
Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty." But clipboard has text like "div className="hero-actions">". Happens when trying to paste during frontend build checks or similar. Attached screenshot.
Network errors reported elsewhere, so focusing on this clipboard mismatch.
What steps can reproduce the bug?
Copy text to clipboard (anything u want).
Run Codex CLI command that triggers paste in kitty.
Error shows despite non-empty clipboard.
No thread ID, but consistent on Arch setup.
What is the expected behavior?
Should detect text vs image and handle accordingly, or clarify if image-only paste is intended.
Possibly related to #11741 but this is clipboard-specific.
If you're running Codex CLI over SSH on a headless/remote Linux machine (no real X display), this might be relevant — cc-clip v0.3.0 adds Codex CLI support.
It sets up a headless Xvfb with a Go-based X11 clipboard bridge that claims CLIPBOARD ownership and serves image data from your local Mac clipboard through an SSH tunnel. Codex's arboard sees it as a normal X11 clipboard.
cc-clip setup your-server --codex
# Then open a new SSH session and Ctrl+V works in Codex CLI
clipaste fixes this. Tiny background daemon that normalizes the screenshot clipboard — adds a file URL so Cmd+V works, and adds the PNGf type so Ctrl+V works.
Closing as a duplicate of #17103, which tracks the same case: a text clipboard is sent to the image-paste handler when Ctrl+V reaches Codex as a key event. The problem is not being marked fixed; please follow or add current repro details there.
Activity
github-actions commentedon Mar 6, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ShunmeiCho commentedon Mar 12, 2026
If you're running Codex CLI over SSH on a headless/remote Linux machine (no real X display), this might be relevant — cc-clip v0.3.0 adds Codex CLI support.
It sets up a headless Xvfb with a Go-based X11 clipboard bridge that claims CLIPBOARD ownership and serves image data from your local Mac clipboard through an SSH tunnel. Codex's arboard sees it as a normal X11 clipboard.
cc-clip setup your-server --codex # Then open a new SSH session and Ctrl+V works in Codex CLIFor local Linux with a real X display, the root cause is likely different (arboard/X11 format negotiation), but if the headless/SSH case applies to you, this is a workaround. MIT licensed: https://github.com/ShunmeiCho/cc-clip
hqhq1025 commentedon Apr 12, 2026
clipaste fixes this. Tiny background daemon that normalizes the screenshot clipboard — adds a file URL so Cmd+V works, and adds the PNGf type so Ctrl+V works.
Also supports SSH remote paste via
clipaste ssh-setup user@host.etraut-openai commentedon Oct 12, 2026
Closing as a duplicate of #17103, which tracks the same case: a text clipboard is sent to the image-paste handler when Ctrl+V reaches Codex as a key event. The problem is not being marked fixed; please follow or add current repro details there.