openai / openai/codex

Ctrl+V tries to paste an image instead of text in Ghostty

Open
#44,644 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI TUI
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Environment
  • Codex CLI: 0.154.0
  • Ghostty: 1.3.1
  • macOS: 26.6.2
  • Keyboard shortcuts remapped to behave like Windows/Linux
Description

Pasting plain text with Ctrl+V into Codex CLI fails with:

Failed to paste image: no image on clipboard: The clipboard contents were not available in the request format or the clipboard is empty.

Right-click → Paste successfully inserts the same clipboard text. Ctrl+V pastes the same text successfully in Claude Code using the same Ghostty configuration.

Steps to reproduce
  1. Copy plain text to the clipboard.
  2. Focus the Codex CLI prompt in Ghostty.
  3. Press Ctrl+V.
Expected behavior

The clipboard text is inserted. If the shortcut supports image pasting, it should also handle plain text.

Actual behavior

Codex attempts to paste an image and displays an error instead of inserting the text.

Workaround

Right-click → Paste works, but requires switching away from the keyboard.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Ctrl+V with plain text in the Codex CLI prompt under Ghostty on macOS, then trace the paste handling used by the keyboard shortcut and compare it with right-click Paste. Done means Ctrl+V inserts plain clipboard text instead of attempting an image paste, while any supported image-paste behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.