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
I CANT FUCKING COPY TEXT, IT WAS WORKING JUST FINE MANI CANT FUCKING COPY TEXT, IT WAS WORKING JUST FINE MAN #48125
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingremote
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
Reacted by Tim, Philipp, Christopher D. Chapman, quidditydoesstuff, Brandon Welsch, Slayer911, Haonan Li, millfreedom, Toby Chong, Evgeny Egorov and 26 more
Reacted by Kirill
Reacted by Aqil Contractor, Panu Pitkamaki, Do Tuan Anh, Sagnik Sasmal, eklenin and Emanuele
Reacted by Aqil Contractor, Dmitry Fedorov, Jesper Herrloff, PeiC3dahaiph1aeJ, Paulius Jankauskas, Lisa Moreno, Dylan and eklenin
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.
Reacted by Christopher D. Chapman, Steven Dale, quidditydoesstuff, Brandon Welsch, Slayer911, millfreedom, AhG, Evgeny Egorov, Jonathan Thackray, Chris Day and 8 more
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.
Reacted by AhG, Toby Chong, Evgeny Egorov, Jonathan Thackray, Ivan Gagarkin and toppk
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.
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.
Reacted by Gardner Bickford, Ivan Gagarkin , James Barson, Antoine Latter and segment-tree
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?
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:
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.
Switch to a different terminal emulator program that does not have this limitation.
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.
Reacted by Patrick Nelson
Reacted by millfreedom, Gardner Bickford, Ivan Gagarkin , telemachor, Sergey and Antoine Latter
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).
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
Just, for sake of God, just, please, stop to mess with terminal emulators!
Never ever any terminal (hardware real ones or software emulations like
Terminal.app in macOS or gnome-terminal in Linux) never ever used Ctrl-C
for copy.
macOS — Command-C,
gnome-terminal — Ctrl-Shift-C
Even Windows, which I think, the your “designer” and PO (if you have such)
used to use, as I can see, — even there sequence is different. Shift-Del.
Stop mess with terminals. Hire someone, who works with them for life, and
be prepared to hear what he or she say about your “bright” ideas.
And it’s I even didn’t start about your recent accessibility nightmare — if
you mess with basics known and understandable for any one in the field, how
chances are to explain accessibility things, which are not understandable
to most at the level of theirs experience?
Please, stop to think that you know better — you don’t.
PS: copying underlying markdown is the same brain-damaged idea as to use
SIGINT sending key to copy. Open any terminal emulator app (Terminal.app,
gnome-terminal, whatever). Run ‘git log -n1’. Select text. Paste text. Do
you see ASCII underlying control codes for coloring? — no. Why do you
think that copying your control codes is good idea just because you use
non-standard ones (markdown)? On what universe your users live that the
want to copy not content but underlying formatting machinery metadata?
If you don’t understand — then another example: when you select text in pdf
document, what do you want — text or postscript snippet with embedded font
definitions, markups, and whatever yet need to render that 1:1 by pdf
renderer?
Sent from mobile
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.
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 capturealternate_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.
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.
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
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.
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.
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.
Cannot agree more! alternate_screen = "never" is fine. hope codex could set alternate_screen default to never someday (although I think it is impossible).
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingremote
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 commentedon Sep 25, 2026
You can opt-out using
/tuiand selectingScrollback.PeiC3dahaiph1aeJ commentedon Sep 26, 2026
This was broken before and codex config file had to be changed for this to work and now it is broken AGAIN?!
austingsmith commentedon Sep 26, 2026
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.
millfreedom commentedon Sep 27, 2026
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.
kirill-fedyanin commentedon Sep 28, 2026
It seems the issue persisted on 1.158 as well
But starting with
codex --no-alt-screenseems to help as a workaround for nowtobyclh commentedon Sep 28, 2026
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.
etraut-openai commentedon Sep 28, 2026
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.sgyetvay commentedon Sep 28, 2026
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?
etraut-openai commentedon Sep 28, 2026
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:
/tuicommand, but you'll forego some of the benefits of fullscreen mode.sgyetvay commentedon Sep 28, 2026
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).
PaolaShultz commentedon Sep 28, 2026
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
awn commentedon Sep 28, 2026
millfreedom commentedon Sep 28, 2026
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.
AnasSecurity commentedon Sep 29, 2026
Yes the same problem I'm facing after the latest Update !!!
etraut-openai commentedon Sep 29, 2026
For additional context, refer to this post.
patricknelson commentedon Sep 29, 2026
Looks like this happened due to a change in the default for
fullscreen_transcriptbeing set totruein 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_screentoneverinconfig.tomltoo: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
tmuxmight 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$BROWSERsetting (so this new UI introduces more bugs/regressions we don't need anyway), but I digress.etraut-openai commentedon Sep 29, 2026
You can switch back to the older (scrollback) behavior using
/tuiif you prefer that over the fullscreen mode. We'll continue to support both. This post discusses the tradeoffs.millfreedom commentedon Sep 29, 2026
For me (macOS, native terminal) - the 0.158 fixed the issue.
kirill-fedyanin commentedon Sep 29, 2026
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
lu9ahb7A commentedon Sep 30, 2026
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.
zieba88 commentedon Oct 8, 2026
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.
toppk commentedon Oct 8, 2026
My workaround is pretty simple.
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.
segment-tree commentedon Oct 15, 2026
Cannot agree more! alternate_screen = "never" is fine. hope codex could set alternate_screen default to never someday (although I think it is impossible).