Skip to content

Regression in 0.157.x: copy/paste broken in Codex TUI over SSH and browser terminals #48692

Closed as duplicate

Description

@illbrain

Summary

Copy/paste in the Codex TUI regressed after upgrading from 0.156.0 to 0.157.x on a remote Linux host.

Regression

  • 0.156.0: PASS
  • 0.157.0: FAIL
  • 0.157.1: FAIL

Downgrading to 0.156.0 immediately restores expected copy/paste behavior.

Environment

Remote Linux host, reproduced with two different terminal paths:

  • MobaXterm over SSH
  • Browser-based SSH session through a Cloudflare tunnel

This does not appear to be MobaXterm-specific.

Symptoms

  • Pasting text into the Codex TUI no longer works in 0.157.x.
  • When text is selected, Codex shows the hint to press Ctrl+C, but Ctrl+C does not copy the selected text.
  • Copy/paste works normally outside Codex in the same terminal session.
  • Downgrading Codex to 0.156.0 fixes the issue without changing terminal/client configuration.

Expected behavior

Copy and paste should work as they did in 0.156.0 across SSH and browser-terminal sessions.

Related issues

Possibly related to:

Activity

  1. added
    bug
    CLI
    TUI
    on Sep 27, 2026
  2. 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.

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