macOS: image paste shortcut documented as Ctrl+V (Windows behavior) — should support/document ⌘+V (Command+V)
What version of Codex is running?
codex-cli 0.94.0
What subscription do you have?
plus
Which model were you using?
_No response_
What platform is your computer?
Darwin 24.6.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
In issue #2730, it’s mentioned that images can be pasted via Ctrl+V. This matches Windows/Linux clipboard conventions, but on macOS the standard paste shortcut is ⌘+V (Command+V). The current wording is misleading for macOS users: I initially thought Codex did not support image pasting at all and that the only way to include an image in context was via file path.
What steps can reproduce the bug?
- Platform: macOS, Codex: [codex-cli ].
- Copy an image to the clipboard (e.g., take a screenshot with ⌘+Shift+4, or copy an image from a browser).
- Focus the Codex input field (the interactive chat prompt).
- Press ⌘+V (Command+V) to paste.
- Actual: [describe what happens: nothing happens /only text is pasted / an empty placeholder appears / it only works with Ctrl+V / etc.].
- Expected: On macOS, image paste should work with ⌘+V. If the intended shortcut differs, the docs/UI should clearly state platform-specific shortcuts (Windows/Linux: Ctrl+V; macOS: ⌘+V).
What is the expected behavior?
• On macOS, pasting an image from clipboard should work with ⌘+V, consistent with system conventions; and/or
• Documentation/UI hints should clearly distinguish shortcuts per platform (e.g., “Windows/Linux: Ctrl+V; macOS: ⌘+V”), including any prerequisites.
Additional information
Why this matters
This is a discoverability/usability issue: macOS users may incorrectly believe image paste is unsupported and fall back to path-based workflows. If ⌘+V already works, this is a docs/UI hint bug; if not, it’s a platform shortcut/clipboard handling bug.
Proposed fix
• Update docs/tooltips to show platform-specific paste shortcuts.
• Ensure macOS clipboard image paste is supported via ⌘+V (or document required conditions if there are any).
6 Comments
Pasting images is broken on macOS.
@jordanmiguel, does ctrl-V not work for you? If not, please file a new bug report. This bug report is about documentation, not the product.
Reproduced on a newer CLI build with a concrete terminal-specific data point.
Environment:
codex-cli 0.111.0Progpt-5.4Darwin 25.3.0 arm64 armHyper 3.4.1TERM=xterm-256colorObserved behavior:
Cmd+Vdoes not attach a clipboard image.Ctrl+Vdoes attach the clipboard image successfully.Cmd+Vfor clipboard-image paste as expected.Why this seems Codex-specific rather than terminal-global:
codex-clipboard-*.pngattachments, so clipboard-image ingestion exists.Cmd+Vin Codex vsCmd+Vworking in Claude Code.Expected:
Cmd+V) should attach the clipboard image in the Codex CLI TUI.I prepared a fix for this on a public fork branch:
Root cause: the footer shortcut descriptor only exposed the WSL-specific
Ctrl+Alt+Vbinding and a genericCtrl+Vfallback, and the key-hint renderer had no explicitSUPER/ Command-key display support. On macOS that leaves users with Windows-style guidance for image paste.Fix summary: add
SUPER/ Command rendering support and asuper_()helper in both TUI frontends, then update thePasteImageshortcut descriptor to prefer⌘+Von macOS while keepingCtrl+Alt+Vunder WSL andCtrl+Velsewhere. The footer test is updated in both frontends to assert the platform-specific binding.Validation:
just fix -p codex-tuijust fix -p codex-tui-app-servercargo test -p codex-tui paste_image_shortcut_prefers_platform_specific_bindingcargo test -p codex-tui-app-server paste_image_shortcut_prefers_platform_specific_binding./tools/argument-comment-lint/run.shI tried to open a PR, but GitHub rejected PR creation because
openai/codexcurrently reportspull_request_creation_policy: collaborators_only. If a maintainer wants this as an invited PR, I can open it immediately from the branch above.For macOS users: the Cmd+V issue can be fixed with clipaste.
The root cause is that macOS screenshots put only raw image data on the clipboard — no file URL. Terminals like Ghostty can only Cmd+V paste text/file URLs, so there's nothing to paste. clipaste is a background daemon that auto-saves screenshot images to temp files and registers the file path, making both Cmd+V and Ctrl+V work.
Tested with Codex CLI + Ghostty 1.3.1.
@etraut-openai
I investigated this locally and prepared a tested fix on my fork.
What I found:
Cmd+Vworks, but clipboard images do notattach.
Ctrl+V/Alt+V, not thenormal macOS
Cmd+Vpath.Ctrl+Vworks whileCmd+Vdoesnothing.
Proposed fix:
Cmd+Von macOS as an image-paste shortcut using the existingclipboard image path.
⌘ + von macOS.Ctrl+Alt+Vbehavior under WSL andCtrl+Velsewhere.I implemented this on my fork:
elizhabiboullah:fix/macos-cmd-v-image-pastef0b2e11fdLocal validation:
image_paste_shortcut -- --nocapture`
paste_image_shortcut_prefers_ctrl_alt_v_under_wsl -- --nocapture`
-
chatwidget::tests::image_paste_shortcut_keeps_ctrl_v_and_adds_cmd_v_on_macos
-
chatwidget::tests::image_paste_shortcut_attaches_returned_clipboard_image-
bottom_pane::footer::tests::paste_image_shortcut_prefers_ctrl_alt_v_under_wsl
If this approach aligns with the intended direction, I’d be happy to open a PR if invited.