Skip to content

Clipboard image paste failure in Codex CLI on Arch Linux despite text content #13716

Closed as duplicate

Description

@ftbhabuk

What version of Codex CLI is running?

codex-cli 0.106.0

What subscription do you have?

free tier

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Linux 6.18.13-arch1-1 x86_64 unknown

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.

Additional information

Installed via AUR openai-codex-bin

Image Image

Activity

  1. added
    bug
    on Mar 6, 2026
  2. added
    CLI
    TUI
    on Mar 6, 2026
  3. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. ShunmeiCho commented on Mar 12, 2026

    @ShunmeiCho

    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

    For 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

  5. removed
    CLI
    on Apr 5, 2026
  6. hqhq1025 commented on Apr 12, 2026

    @hqhq1025

    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.

    brew install hqhq1025/clipaste/clipaste
    brew services start clipaste

    Also supports SSH remote paste via clipaste ssh-setup user@host.

  7. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    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.

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

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions