Ctrl+V tries to paste an image instead of text in Ghostty
Nobody has claimed this yet.
- 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
- Copy plain text to the clipboard.
- Focus the Codex CLI prompt in Ghostty.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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