Skip to content

cmd + c not working for copying but ctrl + c work in mac #48122

Closed as not planned

Description

@cropsgg

What version of Codex CLI is running?

0.157.0

What subscription do you have?

pro

Which model were you using?

gpt 5.6 sol high

What platform is your computer?

Darwin 25.4.0 arm64 ar

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

On macOS, Cmd + C is not working for copying selected text in Codex CLI. Normally, Cmd + C is the standard copy shortcut on macOS, but it does not copy the selected text in Codex CLI. Using Ctrl + C works instead.

What steps can reproduce the bug?

  1. Open Codex CLI on macOS.
  2. Start a Codex session and generate some output.
  3. Select/highlight text from the Codex CLI output.
  4. Press Cmd + C to copy the selected text.
  5. Try to paste the copied text elsewhere.
  6. Notice that Cmd + C does not copy the selected text as expected.
  7. Using Ctrl + C instead works.
  8. I also noticed the same behavior when using Codex CLI while working with a website/chat-related task, so the issue does not appear to be limited to one specific prompt or session.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    TUI
    on Sep 25, 2026
  3. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. jeevships commented on Sep 26, 2026

    @jeevships

    i have this exact same issue with codex. pls fix

  5. moonwater commented on Sep 27, 2026

    @moonwater

    I’d like to add another report of this regression.

    On macOS, Cmd+C has traditionally been the expected copy shortcut. In Codex 0.157.x, it no longer copies selected terminal/TUI text, while Ctrl+C now performs the copy action.

    This is particularly disruptive because Ctrl+C already has the conventional terminal meaning of interrupting the running process. It also breaks the normal macOS muscle memory:

    • Cmd+C → Copy
    • Cmd+V → Paste
    • Ctrl+C → Interrupt

    My current environment:

    • macOS
    • Codex CLI 0.157.1
    • Custom provider
    • TUI mode

    /status confirms the session is otherwise functioning normally.

    Please consider restoring Cmd+C as the macOS copy shortcut while retaining Ctrl+C for its normal terminal interrupt behavior.

    This feels like a usability regression rather than an intentional macOS behavior change.

  6. samoweb3 commented on Sep 27, 2026

    @samoweb3

    Same here, it's absolutely annoying tbh

    Also, weird to use ctrl + c as an alternative - since doing it twice closes the interface.

  7. cropsgg commented on Sep 27, 2026

    @cropsgg
    Author

    Same here, it's absolutely annoying tbh

    Also, weird to use ctrl + c as an alternative - since doing it twice closes the interface.

    exactly idk why they even decided to revert cmd +c to ctrl + c its so weird

  8. cuong3 commented on Sep 27, 2026

    @cuong3

    same. This is so irritating, Ctrl+C is supposed to be used for terminating a session. Please revert this behavior.

  9. sehun-gn commented on Sep 28, 2026

    @sehun-gn

    rollback plz

  10. leszekbulawa commented on Sep 28, 2026

    @leszekbulawa

    use /tui and choose "Scrollback" mode

  11. talsperre commented on Sep 28, 2026

    @talsperre

    Thanks @leszekbulawa - the fix worked.

  12. dchap-savant commented on Sep 30, 2026

    @dchap-savant

    copied with ctrl+c:
    Or mention your thread ID 01a0f376-c658-7370-88c4-d142e7165051 in an existing issue.

  13. etraut-openai commented on Oct 2, 2026

    @etraut-openai
    Contributor

    This is a limitation of the Terminal.app program. It does not pass Cmd+C to Codex when running in fullscreen mode. Your options are:

    1. Switch to scrollback mode using /tui. You will forego the functionality provided by fullscreen mode if you do this.
    2. Switch to a different terminal emulator like Kitty or Ghostty that do not have this limitation.
    3. Use copy-on-select or copy-on-right-click to copy rather than Cmd+C.

    Please refer to this post for additioanl context.

  14. cimi commented on Oct 2, 2026

    @cimi

    FWIW, I am using cmux (based on ghostty) and have the same problem, so it's not exclusive to the mac terminal app.

  15. trangvy-asana commented on Oct 23, 2026

    @trangvy-asana

    I'm using cmux as well and this is still an issue

  16. trahelman commented on Nov 6, 2026

    @trahelman

    Same problem. It's so annoying.

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