Skip to content

codex versions > 156.1 do not allow copy-paste in mate-terminal on Linux #49092

Closed

Description

@cryptovaltt

What version of Codex CLI is running?

157.0 and 158.0

What subscription do you have?

Pro

Which model were you using?

gpt-6-Sol

What platform is your computer?

Linux

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.

What steps can reproduce the bug?

Uploaded thread: 01a0e920-7609-7591-ab5f-d7544e3d2bb5

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Sep 28, 2026
  2. added
    CLI
    TUI
    on Sep 28, 2026
  3. etraut-openai commented on Sep 29, 2026

    @etraut-openai
    Contributor

    Please refer to this discussion forum post for some additional context.

  4. cmg1987 commented on Sep 29, 2026

    @cmg1987

    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:

    1. In a regular shell in Mate Terminal, mouse selection and the terminal's right-click Copy work.
    2. 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.
    3. /raw on does not resolve the failure. Shift-drag also did not produce a usable terminal selection in this setup.
    4. 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.

  5. Joshuaalbert commented on Sep 30, 2026

    @Joshuaalbert

    Confirmed, failing on 0.156.0. Cannot copy to/from the CLI with a highlight+middleclick or otherwise.

  6. this-is-space commented on Oct 1, 2026

    @this-is-space

    same issue

  7. bc-openai commented on Oct 1, 2026

    @bc-openai
    Contributor

    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?

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