Skip to content

I CANT FUCKING COPY TEXT, IT WAS WORKING JUST FINE MANI CANT FUCKING COPY TEXT, IT WAS WORKING JUST FINE MAN #48125

Closed as not planned

Description

@ahg-py

What version of Codex CLI is running?

1.157.0

What subscription do you have?

Plus

Which model were you using?

irrelevant

What platform is your computer?

ubuntu 24.04 using ssh to it

What terminal emulator and version are you using (if applicable)?

ubuntu default terminal

Codex doctor report

What issue are you seeing?

i cant fucking copy text, the reason codex-cli is the best was because i could fucking copy text normally from my cli , and it was feeling like a cli not like a fucking GUI application, just GET IT BACK TO NORMAL LIKE IT WAS.

What steps can reproduce the bug?

open ssh to your VPS -> open codex-cli there -> try to copy some text after selecting -> doesnt work.

What is the expected behavior?

man just when i select text from my terminal it should fucking copy fine, what the fuck did you guys do! useless shit

Additional information

No response

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    TUI
    on Sep 25, 2026
  3. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor
  4. fcoury commented on Sep 25, 2026

    @fcoury
    Contributor

    You can opt-out using /tui and selecting Scrollback.

  5. PeiC3dahaiph1aeJ commented on Sep 26, 2026

    @PeiC3dahaiph1aeJ

    This was broken before and codex config file had to be changed for this to work and now it is broken AGAIN?!

  6. austingsmith commented on Sep 26, 2026

    @austingsmith

    Just updated and experiencing this as well. it would be great if you could run some automated testing against a release to verify basic functionality before making it publically available. Novel idea, I know.

  7. millfreedom commented on Sep 27, 2026

    @millfreedom

    You can opt-out using /tui and selecting Scrollback.

    How about: instead you just stop breaking basic things? Crazy idea, I know...

    The problem, actually, not that it's impossible to copy. It IS possible, just not with the native system's shortcut.
    E.g. on my macOS, when selecting text in TUI, it's written "ctrl+c copy", and - indeed, "ctrl+c" is copying text, while system shortcut is CMD+C for copy, while CTRL+C must "break" the codex execution (and it is breaking it - in case nothing is selected).

    I know it's a pathetic workaround, but it's better than nothing before it will be properly fixed.

  8. kirill-fedyanin commented on Sep 28, 2026

    @kirill-fedyanin

    It seems the issue persisted on 1.158 as well

    But starting with codex --no-alt-screen seems to help as a workaround for now

  9. tobyclh commented on Sep 28, 2026

    @tobyclh

    This gives "JUST MAKE A FUCKING .EXE FILE AND GIVE IT TO ME" vibe but the concern is valid.
    The new GUI mode works terribly across different platforms, especially when used via ssh/tmux.
    URL doesn't open, copy and paste is failing/triggering unwanted interactions often, the windows daemon seems to be failing constantly.
    For people who want to use GUI there is ChatGPT desktop for all platform already, keep the CLI simple.

  10. etraut-openai commented on Sep 28, 2026

    @etraut-openai
    Contributor

    If you prefer the old scrollback mode where the terminal emulator handles copying and mouse actions, you can switch to it using /tui. There are some features in the new fullscreen mode that you forego in scrollback mode, such as the ability to copy raw markdown. We're working on a blog post to explain the tradeoffs between the two modes. We will continue to support both, so you can choose whichever works best for your preferred terminal emulator and workflows.

  11. sgyetvay commented on Sep 28, 2026

    @sgyetvay

    just to clarify, in case i misunderstood etraut-openai's comment: the inability to copy paste using Cmd+C is not considered a bug by openai, and will not be fixed in future versions?

  12. etraut-openai commented on Sep 28, 2026

    @etraut-openai
    Contributor

    In full-screen (overlay) mode, some terminal emulators do not send Cmd+C to the app running in the terminal, so we have no way to support Cmd+C in those terminals. Your choices are:

    1. Switch back to scrollback mode (where the terminal emulator handles all copy operations without involvement of the TUI). You can do this with the /tui command, but you'll forego some of the benefits of fullscreen mode.
    2. Switch to a different terminal emulator program that does not have this limitation.
    3. Retrain your muscle memory to user right click to select. This takes a little getting used to, but it's pretty ergonomic once you get used to it. You simply select the range you want copied and then right click to copy the selection to the clipboard.
  13. sgyetvay commented on Sep 28, 2026

    @sgyetvay

    ok, i interpret that as a yes :)

    fwiw, it's not purely a problem with the terminal emulator i am using, because it worked right until a very recent update, and i didn't change anything to do with my terminal emulator (or anything).

  14. PaolaShultz commented on Sep 28, 2026

    @PaolaShultz
    You simply select the range you want copied and then right click to copy the selection to the clipboard.
    

    but, problem is that this doesn't work. in this new broken version i mean. no way of copying, and opening links on my host instead of my pc is just - lol! all of these changes, is there a product manager that is approving this that is using windows? wild guess! using /tui for now till you see if this is a bug or feature. world is really goin crazy recently, my oppinion

  15. awn commented on Sep 28, 2026

    @awn
  16. millfreedom commented on Sep 28, 2026

    @millfreedom

    In full-screen (overlay) mode, some terminal emulators do not send Cmd+C to the app running in the terminal, so we have no way to support Cmd+C in those terminals.

    I didn’t know my terminal, where native copy/paste into codex was working perfectly fine prior to the 0.157 codex version, suddenly became “not sending” and started to have other “technical issues”!
    For sure it’s not you, who just broke things!

    Please, issue LESS “great updates” like this one in the future! 🙏 Otherwise you’ll be forced to make up other very believable stories about “bad terminals” and other nonexistent technical issues.

  17. AnasSecurity commented on Sep 29, 2026

    @AnasSecurity

    Yes the same problem I'm facing after the latest Update !!!

  18. etraut-openai commented on Sep 29, 2026

    @etraut-openai
    Contributor

    For additional context, refer to this post.

  19. patricknelson commented on Sep 29, 2026

    @patricknelson

    Looks like this happened due to a change in the default for fullscreen_transcript being set to true in version 0.157.0. Is this setting not yet documented at https://learn.chatgpt.com/docs/config-file/config-reference?

    You can also apparently override both full screen and the mouse capturing setting alternate_screen to never in config.toml too:

    [tui]
    # Disables both full screen + mouse capture
    alternate_screen = "never"
    
    # The Scrollback option under /tui.
    fullscreen_transcript = false

    These both seem to have similar effects. Either way, hopefully these settings or something similar persist in the future. I get the tradeoff since apps like tmux might benefit from full screen mode. However, it's can be a terrible user experience in other terminals where you expect your mouse not to be captured and just use your built-in scroll back and search functions. Not to mention, links in WSL2 decide to still open in Chromium on the VM rather than respecting the $BROWSER setting (so this new UI introduces more bugs/regressions we don't need anyway), but I digress.

  20. etraut-openai commented on Sep 29, 2026

    @etraut-openai
    Contributor

    You can switch back to the older (scrollback) behavior using /tui if you prefer that over the fullscreen mode. We'll continue to support both. This post discusses the tradeoffs.

  21. millfreedom commented on Sep 29, 2026

    @millfreedom

    For additional context, refer to this post.

    For me (macOS, native terminal) - the 0.158 fixed the issue.

  22. kirill-fedyanin commented on Sep 29, 2026

    @kirill-fedyanin

    Oh, ok, i've found another way to make it work -- you can hold shift before selecting the text, which disables tui capturing.

    @etraut-openai thanks for the extended post
    but take note on linux the default is just look broken, so with current codex-cli setup the onboarding flow for majority on linux would be 1. getting frustrated trying to find a way to copy text 2. accepting it broken and spending time finding workarounds.

    so please consider leaving mouse-dragging to native terminal
    i think #48664 seems to describe good options

  23. lu9ahb7A commented on Sep 30, 2026

    @lu9ahb7A

    Just, for sake of God, just, please, stop to mess with terminal emulators!

    I second that motion!
    The universe is LARGE. We all use our terminals the way WE WANT!
    Not necessarily the way you assume 'is going to delight us'.
    We've been using our terminals for a very long time. Some of us for a lot longer than you.
    And when you mess with that to 'delight us', we get very, very angry.
    Words can not express exactly how angry.

  24. zieba88 commented on Oct 8, 2026

    @zieba88

    if you cannot copy/paste with right click in codex cli on linux terminal please edit this file
    vim ~/.codex/config.toml
    and add this line
    alternate_screen = "never"
    anywhere under
    [tui]
    i.e
    [tui]
    screen_reader_detection_done = true
    alternate_screen = "never"
    This disables Mouse reporting which lets terminal apps receive mouse clicks and movements directly, but it’s not necessary for Codex because Codex can be fully operated with the keyboard, and disabling it restores normal terminal mouse actions like right-click paste and text selection.

  25. toppk commented on Oct 8, 2026

    @toppk

    My workaround is pretty simple.

    alias codex='env -u WAYLAND_DISPLAY codex'

    The new tui doesn't copy on select to PRIMARY if it sees that variable. This allows you to use the tui and still copy to that.

    There is another copy on select bug with the new tui for draft prompts #51970 but other than that this is an easy workaround until hopefully openai fixes things.

  26. segment-tree commented on Oct 15, 2026

    @segment-tree

    Cannot agree more! alternate_screen = "never" is fine. hope codex could set alternate_screen default to never someday (although I think it is impossible).

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

    CLITUIbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions