Skip to content

Ctrl-C should not exit cli (linux) #4145

Closed

Description

@arminhaaf

What feature would you like to see?

its annoying when think i copy something and codex exits. other cli double-checks before exit

Are you interested in implementing this feature?

No response

Additional information

No response

Activity

  1. added
    enhancement
    on Sep 24, 2025
  2. neurostream commented on Sep 24, 2025

    @neurostream

    Terminal software ( such as the Codex Terminal UI mode ) is expected to respect standard termios/stty -induced signaling from the system ( see output of "stty -a" )

  3. arminhaaf commented on Sep 24, 2025

    @arminhaaf
    Author

    no need here -> see claude code, qwen cli. codex cli is for users not for systems. its really annoying especially on a linux shell

  4. neurostream commented on Sep 24, 2025

    @neurostream

    It brings me relief that the tty codex tui runs on will trigger a SIGINT when i hit ctrl-c. I find it annoying that it traps one of them ( so I have to hit ctrl-c twice to terminate the TUI ) - but it has seemed like a reasonable tradeoff for accidental ctrl-c sends.

  5. dedrisian-oai commented on Sep 30, 2025

    @dedrisian-oai
    Contributor

    I assume you're running windows?

  6. arminhaaf commented on Sep 30, 2025

    @arminhaaf
    Author

    no, linux ubuntu

  7. ianbarber commented on Oct 2, 2025

    @ianbarber

    +1 to this, regular accidental exits when copy and pasting over SSH. Windows host -> linux remote.

  8. adrianveen commented on Nov 19, 2025

    @adrianveen

    Added context, CTRL + C clears your message field on gemini and claude - if someone is using multiple LLMs this is quite frustrating

  9. etraut-openai commented on Jan 14, 2026

    @etraut-openai
    Contributor

    Thanks for the feedback. In the next release, you will be required to press Ctrl+C twice to exit. See this PR for details.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions