codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex CLI TUI copy and paste shortcuts changed on Debian Linux

Open CoyoteCzech opened this issue 2 months ago • 14 comments

What version of Codex CLI is running?

codex-cli 0.157.0

What subscription do you have?

Unknown (not provided)

Which model were you using?

No response

What platform is your computer?

Linux 6.12.107+deb13-amd64 x86_64 (Debian 13)

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?

  1. 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.

CoyoteCzech avatar Sep 25 '26 16:09 CoyoteCzech

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #48125
  • #48122
  • #47996
  • #48097

Powered by Codex Action

github-actions[bot] avatar Sep 25 '26 17:09 github-actions[bot]

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.

fcoury-oai avatar Sep 25 '26 17:09 fcoury-oai

A better UX would be to opt-in for changes that messes up OS behaviours. ctrl + c is for stopping a process in terminal.

JesperHerrloff avatar Sep 25 '26 22:09 JesperHerrloff

@fcoury-oai who the fucking fuck brainstormed this interaction "once you select it will be auto-copied" who are you, opencode?

el-buku avatar Sep 27 '26 02:09 el-buku

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.

CoyoteCzech avatar Sep 27 '26 12:09 CoyoteCzech

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.

Takanashi6ge avatar Sep 28 '26 06:09 Takanashi6ge

Given the onslaught of other pointless/noisy features like tips section or animations this looks like enshitiffication moment for codex cli :(

dolzenko avatar Sep 29 '26 11:09 dolzenko

It's also broken for me, too. What the heck really, how the heck can you break normal terminal copy paste!?

emilfihlman avatar Oct 01 '26 05:10 emilfihlman

please bring back shortcuts for copy. i know right-clicking works but please bring back cmd+c/ctrl+c default behavior

puncsky avatar Oct 02 '26 04:10 puncsky

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

bradleyklee avatar Oct 07 '26 20:10 bradleyklee

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.

This will get you copy on select back to PRIMARY.

alias codex='env -u WAYLAND_DISPLAY codex'

toppk avatar Oct 08 '26 05:10 toppk

i'm on mac OS with Ghostty. Pressing shift -> then select -> then cmd + C. That does the trick for now.

kantmichel avatar Oct 17 '26 22:10 kantmichel

i'm on mac OS with Ghostty. Pressing shift -> then select -> then cmd + C. That does the trick for now.

This also works for me on Wayland/KDE Linux, but pretty annoying.

Davey-Hughes avatar Oct 22 '26 05:10 Davey-Hughes

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.

trisweb avatar Nov 15 '26 02:11 trisweb