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
Codex CLI TUI copy and paste shortcuts changed on Debian Linux #48139
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working
What terminal emulator and version are you using (if applicable)?
Terminal emulator not specified
Codex doctor report
Not attached; feedback was submitted without logs.
What issue are you seeing?
After a Codex CLI update on Debian, terminal clipboard shortcuts behave inconsistently. Copy works with Ctrl+C. Ctrl+Shift+C does not copy, and selecting text with the mouse does not copy it. Paste works only with Ctrl+Shift+V; Ctrl+V does not work.
What steps can reproduce the bug?
Run Codex CLI in a terminal on Debian. 2. Select text in the Codex TUI and try Ctrl+Shift+C or mouse selection/copy; the text is not copied. 3. Try Ctrl+C; copying works. 4. Try pasting with Ctrl+V; it does not work. 5. Try Ctrl+Shift+V; pasting works. Uploaded thread: 01a0d86b-e28c-74e3-81b7-13fabaf539b4
What is the expected behavior?
Copy/paste shortcuts should be consistent with the terminal's expected keybindings. On this setup, Ctrl+Shift+C should copy and Ctrl+Shift+V should paste; mouse selection/copy should work as before.
Additional information
Feedback was recorded through /feedback with no logs attached.
Reacted by msorair, smj-method, Christian Flamm, Tian Pan, Dillon, toppk, Guanqi Huang, Kirill Sokolovsky, Yun Peng and Vladimir Shishmintsev
Starting on the next release, once you select the text it will be auto copied, but if you want to opt-out of the new fullscreen view you can use /tui and select Scrollback then restart the Codex CLI.
Reacted by toppk, Guanqi Huang and Tristan Harward
Additional reproduction details from Debian 13 (Trixie), GNOME Terminal on X11, Codex CLI 0.157.0:
I deliberately selected the text “označ myší” from Codex’s output with the mouse. Pressing Ctrl+V cleared the selection but pasted nothing. Ctrl+Shift+V pasted the selected text correctly. Middle-click, which normally pastes the X11 primary selection, did not paste it.
Ctrl+Shift+C did not copy the selected text, while Ctrl+C did. GNOME Terminal is configured to use Ctrl+Shift+C for Copy and Ctrl+Shift+V for Paste.
So automatically copying a selection to the clipboard does not address the broken middle-click paste or the changed copy shortcut. Those are the behaviours I’m reporting.
Also affected after updating Codex CLI, on Omarchy (Arch-based Linux):
Codex CLI: 0.157.1 (verified with codex --version)
OS: Omarchy 4.0.4
Session: Wayland
Selecting text in Codex CLI and pressing Ctrl+Shift+C no longer copies it. This shortcut worked before the update. Prior troubleshooting on this setup pointed to Codex CLI rather than Omarchy; the exact first affected version is unknown.
Expected behavior: Ctrl+Shift+C should continue to copy selected text using the terminal's existing shortcut. Please restore compatibility with this shortcut.
Adding this report here because the copy-shortcut symptom matches this issue. The /tui → Scrollback workaround has not yet been tested on this setup. No session logs or conversation contents are attached.
Codex CLI 0.161.0 on Debian 13 over SSH; terminal detected as unknown. Fullscreen transcript breaks native right-click and Ctrl+Shift+C. copy_on_select = "never" is set, but Codex’s source disables its right-click paste fallback over SSH. Setting fullscreen_transcript = false restores terminal controls. Will fullscreen_transcript ever support right clicks? Why should we have to spend model tokens troubleshooting basic copy/paste? Please, not this again. -- Mech.An.ika Codex
Starting on the next release, once you select the text it will be auto copied, but if you want to opt-out of the new fullscreen view you can use /tui and select Scrollback then restart the Codex CLI.
the new TUI is to blame, but it's this policy that having a WAYLAND_DISPLAY variable will prevent copy selection to PRIMARY ? That isn't a feature of the new TUI which is generally okay. I don't understand why @fcoury-oai is presenting this false dichotomy.
I ran into this as well, and agree the terminal experience for the new behavior is unexpected and foreign.
I expect copy/paste in Codex to work how every other application in my terminal works, but codex now works differently, and doesn't work at all when operated via an SSH connection (without special incantations).
Please consider changing it back to use standard terminal patterns for copy/paste, I strongly believe that it's the best approach.
I ran into this as well, and agree the terminal experience for the new behavior is unexpected and foreign.
I expect copy/paste in Codex to work how every other application in my terminal works, but codex now works differently, and doesn't work at all when operated via an SSH connection (without special incantations).
Please consider changing it back to use standard terminal patterns for copy/paste, I strongly believe that it's the best approach.
You can revert back to the original behavior by running /tui and choosing Scrollback. Let me know if that works for you.
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working
Activity
github-actions commentedon Sep 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fcoury-oai commentedon Sep 25, 2026
Starting on the next release, once you select the text it will be auto copied, but if you want to opt-out of the new fullscreen view you can use
/tuiand selectScrollbackthen restart the Codex CLI.JesperHerrloff commentedon Sep 25, 2026
A better UX would be to opt-in for changes that messes up OS behaviours. ctrl + c is for stopping a process in terminal.
el-buku commentedon Sep 27, 2026
@fcoury-oai who the fucking fuck brainstormed this interaction "once you select it will be auto-copied" who are you, opencode?
CoyoteCzech commentedon Sep 27, 2026
Additional reproduction details from Debian 13 (Trixie), GNOME Terminal on X11, Codex CLI 0.157.0:
I deliberately selected the text “označ myší” from Codex’s output with the mouse. Pressing Ctrl+V cleared the selection but pasted nothing. Ctrl+Shift+V pasted the selected text correctly. Middle-click, which normally pastes the X11 primary selection, did not paste it.
Ctrl+Shift+C did not copy the selected text, while Ctrl+C did. GNOME Terminal is configured to use Ctrl+Shift+C for Copy and Ctrl+Shift+V for Paste.
So automatically copying a selection to the clipboard does not address the broken middle-click paste or the changed copy shortcut. Those are the behaviours I’m reporting.
Takanashi6ge commentedon Sep 28, 2026
Also affected after updating Codex CLI, on Omarchy (Arch-based Linux):
0.157.1(verified withcodex --version)4.0.4Selecting text in Codex CLI and pressing
Ctrl+Shift+Cno longer copies it. This shortcut worked before the update. Prior troubleshooting on this setup pointed to Codex CLI rather than Omarchy; the exact first affected version is unknown.Expected behavior:
Ctrl+Shift+Cshould continue to copy selected text using the terminal's existing shortcut. Please restore compatibility with this shortcut.Adding this report here because the copy-shortcut symptom matches this issue. The
/tui→Scrollbackworkaround has not yet been tested on this setup. No session logs or conversation contents are attached.dolzenko commentedon Sep 29, 2026
Given the onslaught of other pointless/noisy
featureslike tips section or animations this looks like enshitiffication moment for codex cli :(emilfihlman commentedon Oct 1, 2026
It's also broken for me, too. What the heck really, how the heck can you break normal terminal copy paste!?
puncsky commentedon Oct 2, 2026
please bring back shortcuts for copy. i know right-clicking works but please bring back cmd+c/ctrl+c default behavior
bradleyklee commentedon Oct 7, 2026
Codex CLI 0.161.0 on Debian 13 over SSH; terminal detected as unknown. Fullscreen transcript breaks native right-click and
Ctrl+Shift+C.copy_on_select = "never"is set, but Codex’s source disables its right-click paste fallback over SSH. Settingfullscreen_transcript = falserestores terminal controls. Willfullscreen_transcriptever support right clicks? Why should we have to spend model tokens troubleshooting basic copy/paste? Please, not this again. -- Mech.An.ika Codextoppk commentedon Oct 8, 2026
the new TUI is to blame, but it's this policy that having a WAYLAND_DISPLAY variable will prevent copy selection to PRIMARY ? That isn't a feature of the new TUI which is generally okay. I don't understand why @fcoury-oai is presenting this false dichotomy.
This will get you copy on select back to PRIMARY.
kantmichel commentedon Oct 17, 2026
i'm on mac OS with Ghostty. Pressing
shift -> then select -> then cmd + C. That does the trick for now.Davey-Hughes commentedon Oct 22, 2026
This also works for me on Wayland/KDE Linux, but pretty annoying.
trisweb commentedon Nov 15, 2026
I ran into this as well, and agree the terminal experience for the new behavior is unexpected and foreign.
I expect copy/paste in Codex to work how every other application in my terminal works, but codex now works differently, and doesn't work at all when operated via an SSH connection (without special incantations).
Please consider changing it back to use standard terminal patterns for copy/paste, I strongly believe that it's the best approach.
fcoury-oai commentedon Nov 15, 2026
You can revert back to the original behavior by running
/tuiand choosing Scrollback. Let me know if that works for you.