You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: image paste shortcut documented as Ctrl+V (Windows behavior) — should support/document ⌘+V (Command+V) #10523
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaydocumentationImprovements or additions to documentation
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?
1. Platform: macOS, Codex: [codex-cli ].
2. Copy an image to the clipboard (e.g., take a screenshot with ⌘+Shift+4, or copy an image from a browser).
3. Focus the Codex input field (the interactive chat prompt).
4. Press ⌘+V (Command+V) to paste.
5. Actual: [describe what happens: nothing happens /only text is pasted / an empty placeholder appears / it only works with Ctrl+V / etc.].
6. 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).
Reacted by Jordan Miguel, Jackson Hall, Rienz Ivan Otiong, Azarattum, 6figurecreative and Piotr Borowicz
Root cause: the footer shortcut descriptor only exposed the WSL-specific Ctrl+Alt+V binding and a generic Ctrl+V fallback, and the key-hint renderer had no explicit SUPER / Command-key display support. On macOS that leaves users with Windows-style guidance for image paste.
Fix summary: add SUPER / Command rendering support and a super_() helper in both TUI frontends, then update the PasteImage shortcut descriptor to prefer ⌘+V on macOS while keeping Ctrl+Alt+V under WSL and Ctrl+V elsewhere. The footer test is updated in both frontends to assert the platform-specific binding.
Validation:
just fix -p codex-tui
just fix -p codex-tui-app-server
cargo test -p codex-tui paste_image_shortcut_prefers_platform_specific_binding
cargo test -p codex-tui-app-server paste_image_shortcut_prefers_platform_specific_binding
./tools/argument-comment-lint/run.sh
I tried to open a PR, but GitHub rejected PR creation because openai/codex currently reports pull_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.
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaydocumentationImprovements or additions to documentation
Activity
jordanmiguel commentedon Mar 3, 2026
Pasting images is broken on macOS.
etraut-openai commentedon Mar 3, 2026
@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.
alexsuthx commentedon Mar 7, 2026
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.s1korrrr commentedon Mar 20, 2026
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.hqhq1025 commentedon Apr 12, 2026
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.
elizhabiboullah commentedon Apr 18, 2026
@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:
CARGO_INCREMENTAL=0 ~/.cargo/bin/cargo test -j 1 -p codex-tui image_paste_shortcut -- --nocaptureCARGO_INCREMENTAL=0 ~/.cargo/bin/cargo test -j 1 -p codex-tui paste_image_shortcut_prefers_ctrl_alt_v_under_wsl -- --nocapturechatwidget::tests::image_paste_shortcut_keeps_ctrl_v_and_adds_cmd_v_on_mac oschatwidget::tests::image_paste_shortcut_attaches_returned_clipboard_imagebottom_pane::footer::tests::paste_image_shortcut_prefers_ctrl_alt_v_under_ wslIf this approach aligns with the intended direction, I’d be happy to open a PR if invited.