Skip to content

An error occurred when I copied text to the Codex CLI using the clipboard. #16223

Closed as duplicate

Description

@PIGzyj233

What version of Codex CLI is running?

0.117.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

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

powershell 7

What issue are you seeing?

Image

When I press Ctrl+V to copy text to the CodeX CLI using the clipboard, I get the error shown in the image. In fact, I didn't copy any image.

What steps can reproduce the bug?

  1. Launch the Codex CLI in the terminal.

  2. Enter some text.

  3. Copy some text from elsewhere into the Codex CLI.

  4. You will see an error message.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Mar 30, 2026
  2. added
    CLI
    windows-os
    TUI
    on Mar 30, 2026
  3. removed
    CLI
    on Mar 30, 2026
  4. PIGzyj233 commented on Mar 30, 2026

    @PIGzyj233
    Author

    One more thing, when I use the right mouse button to paste text, it works normally.

  5. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    Closing as tracked in #17103. Ctrl+V reaching the CLI as a key event can be handled as image paste even when the clipboard contains text; right-click paste uses a different path. Please follow #17103 for the text-paste fix.

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

    TUIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions