Skip to content

[macOS][CLI 0.157.0] Cmd+C no longer copies selected transcript text in iTerm2 #47996

Description

@lvzixun

What version of Codex CLI is running?

codex-cli 0.157.0

What platform is your computer?

Darwin 25.5.0 arm64 arm (macOS)

What terminal emulator and version are you using?

iTerm2 3.7.1

What issue are you seeing?

After upgrading Codex CLI to 0.157.0, selecting part of the CLI transcript with the mouse and pressing Command+C in iTerm2 no longer copies the selection as it did in earlier versions. The user reports that Control+C now copies the selected text instead. This is a surprising regression for the standard macOS copy shortcut and makes it easy to trigger the usual terminal interrupt behavior when trying to copy.

What steps can reproduce the bug?

  1. Run Codex CLI 0.157.0 in iTerm2 on macOS with its default TUI settings.
  2. Produce a response and select part of the output with the mouse.
  3. Press Command+C and try to paste the selection elsewhere.
  4. Compare with pressing Control+C on the same selection.

The user reports that Command+C worked before upgrading to 0.157.0 and that Control+C works in the new interface. I have not independently reproduced the keyboard behavior on this machine.

What is the expected behavior?

Command+C should copy selected transcript text in iTerm2 on macOS, or the CLI should provide a clear way to preserve the terminal's native selection and copy behavior. Control+C should not be required for ordinary copying on macOS.

Additional information

Version 0.157.0 defaults tui.fullscreen_transcript to true and the recent fullscreen transcript implementation handles selection and copying internally. These changes may be relevant, but the exact cause has not been confirmed: https://github.com/openai/codex/blob/rust-v0.157.0/codex-rs/config/src/types.rs and #46732 .

The older scrollback behavior may be available through codex --no-alt-screen or tui.fullscreen_transcript = false; these have not yet been verified as workarounds for this report.

Activity

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

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions