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 versions > 156.1 do not allow copy-paste in mate-terminal on Linux #49092
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)?
mate-terminal
Codex doctor report
What issue are you seeing?
In newer (>156.1) versions when text to be copied is selected, right-click menu has "Copy" grayed-out.
Although codex message shows that "copy was sent to terminal", middle-click in prompt does nothing, right-click and menu's "Paste" prints previous clipboard content.
Additional independent reproduction on Codex CLI 0.158.0. This appears related to this issue, with one useful difference: my fullscreen session shows a red “Copy failed, try again” message after a short pause, rather than “copy was sent to terminal.”
Environment:
Linux aarch64, UKUI Wayland session (XDG_SESSION_TYPE=wayland)
Mate Terminal 1.24.0, VTE 0.60.3
HDMI display at 2560×1440, scale 1; laptop panel disabled
Reproduction and comparison:
In a regular shell in Mate Terminal, mouse selection and the terminal's right-click Copy work.
Launch Codex with the default tui.alternate_screen = "auto" behavior and select text from Codex output. Selection pauses briefly, then Codex shows “Copy failed, try again”; the text is not copied. The terminal's right-click Copy item is disabled because it has no native selection.
/raw on does not resolve the failure. Shift-drag also did not produce a usable terminal selection in this setup.
With the valid config value tui.alternate_screen = "never", copying completed output while Codex is idle works through the terminal. Selection/copying while Codex is actively streaming remains unreliable.
An isolated PTY check of this installed CLI showed that the default fullscreen mode enables mouse reporting (1000, 1002, 1003, 1006), while "never" does not. This explains why the terminal's Copy menu becomes disabled in fullscreen mode. I have not isolated the lower-level cause of Codex's clipboard write failure. Expected behavior is that selecting or right-click-copying output in fullscreen mode actually updates the clipboard without an error.
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 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Sep 29, 2026
Please refer to this discussion forum post for some additional context.
cmg1987 commentedon Sep 29, 2026
Additional independent reproduction on Codex CLI 0.158.0. This appears related to this issue, with one useful difference: my fullscreen session shows a red “Copy failed, try again” message after a short pause, rather than “copy was sent to terminal.”
Environment:
XDG_SESSION_TYPE=wayland)Reproduction and comparison:
tui.alternate_screen = "auto"behavior and select text from Codex output. Selection pauses briefly, then Codex shows “Copy failed, try again”; the text is not copied. The terminal's right-click Copy item is disabled because it has no native selection./raw ondoes not resolve the failure. Shift-drag also did not produce a usable terminal selection in this setup.tui.alternate_screen = "never", copying completed output while Codex is idle works through the terminal. Selection/copying while Codex is actively streaming remains unreliable.An isolated PTY check of this installed CLI showed that the default fullscreen mode enables mouse reporting (
1000,1002,1003,1006), while"never"does not. This explains why the terminal's Copy menu becomes disabled in fullscreen mode. I have not isolated the lower-level cause of Codex's clipboard write failure. Expected behavior is that selecting or right-click-copying output in fullscreen mode actually updates the clipboard without an error.Joshuaalbert commentedon Sep 30, 2026
Confirmed, failing on 0.156.0. Cannot copy to/from the CLI with a highlight+middleclick or otherwise.
this-is-space commentedon Oct 1, 2026
same issue
bc-openai commentedon Oct 1, 2026
Thanks for the report! This is fixed in 0.158.0.
@cmg1987 if you're still experiencing this copy issue, can you open a separate issue?