Skip to content

Codex CLI TUI copy and paste shortcuts changed on Debian Linux #48139

Closed

Description

@CoyoteCzech

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.

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    TUI
    on Sep 25, 2026
  3. fcoury-oai commented on Sep 25, 2026

    @fcoury-oai
    Contributor

    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.

  4. JesperHerrloff commented on Sep 25, 2026

    @JesperHerrloff

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

  5. el-buku commented on Sep 27, 2026

    @el-buku

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

  6. CoyoteCzech commented on Sep 27, 2026

    @CoyoteCzech
    Author

    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.

  7. Takanashi6ge commented on Sep 28, 2026

    @Takanashi6ge

    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.

  8. dolzenko commented on Sep 29, 2026

    @dolzenko

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

  9. emilfihlman commented on Oct 1, 2026

    @emilfihlman

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

  10. puncsky commented on Oct 2, 2026

    @puncsky

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

  11. bradleyklee commented on Oct 7, 2026

    @bradleyklee

    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

  12. toppk commented on Oct 8, 2026

    @toppk

    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'
  13. kantmichel commented on Oct 17, 2026

    @kantmichel

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

  14. Davey-Hughes commented on Oct 22, 2026

    @Davey-Hughes

    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.

  15. trisweb commented on Nov 15, 2026

    @trisweb

    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.

  16. fcoury-oai commented on Nov 15, 2026

    @fcoury-oai
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions