Cannot paste text into Codex CLI in VS Code integrated terminal on macOS
Open 💬 8 comments Opened Mar 6, 2026 by yugook
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.111.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.3-codex
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
VS Code integrated terminal (VS Code 1.110.0)
What issue are you seeing?
I cannot paste text into the Codex CLI prompt when running Codex in the VS Code integrated terminal on macOS.
The pasted text does not appear in the prompt as expected.
No error message is shown.
What steps can reproduce the bug?
- Open VS Code on macOS
- Open the integrated terminal
- Run
codex - Copy plain text
- Try to paste it into the Codex prompt
What is the expected behavior?
The pasted text should appear normally in the Codex prompt.
Additional information
Also reproduced on Codex CLI v0.110.0.
Environment:
- MacBook
- VS Code integrated terminal
- model shown in the session header:
gpt-5.3-codex high
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I investigated this issue and prepared a fix in my fork, but I cannot open a PR to
openai/codexbecause PR creation is currently restricted to collaborators.Root cause
On macOS + VS Code integrated terminal,
Cmd+Vmay be delivered as aSUPER+Vkey event without a normalPasteevent, so pasted text never reaches the Codex composer.Fix
SUPER+V(Cmd+V) in TUI key handling.handle_paste(...).Scope / non-goals
Cmd+V) on macOS VS Code terminal.Cmd+C) in this patch.Validation
SUPER+V.cargo test -p codex-tuipassed locally.Patch
codex/fix-vscode-macos-super-v-paste-fallback5be7f8a59b8db74e64bc6174ff18ed642acad6bfIf maintainers want to take it, you can cherry-pick:
I have a similar issue, where Ctrl+Shift+C (copy text) is recognized as Ctrl+C (terminate), and Ctrl+Shift+V (paste text) is recognized as Ctrl+V (paste image).
Version: codex-cli 0.111.0
Terminal: VS Code integrated terminal
OS: Linux (WSL)
Workaround: launch
codexinsidetmux.I found that right-click copy/paste works for me in the VS Code integrated terminal, but Cmd+V still does not paste into the Codex composer.
Possibly related: microsoft/vscode#299515, though the symptom is not identical.
Changed a setting in vscode to and had to disable preferences
"editor.pasteAs.preferences": [
"text.plain"
]
just a temp workaround until it's resolved
Im using Codex extension
openai.chatgptin VSCode.Im not using codex CLI.
Windows 11.
(am i in the wrong post?)
---
Workaround: I changed to use this in
keybindings.json---
misc thinking process info:
Developer: Inspect Context Keysto find the when expression.Hi @Norlandz — thanks for sharing the workaround. I think this may be a separate issue, since this thread is about Codex CLI on macOS + VS Code integrated terminal, while your case seems to involve the VS Code extension on Windows. Opening a separate issue might make it easier for maintainers to triage, and your workaround would be easier for others to find there too.