Ctrl-C should not exit cli (linux)
Resolved 💬 8 comments Opened Sep 24, 2025 by arminhaaf Closed Jan 14, 2026
💡 Likely answer: A maintainer (dedrisian-oai, contributor)
responded on this thread — see the highlighted reply below.
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_
8 Comments
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" )
no need here -> see claude code, qwen cli. codex cli is for users not for systems. its really annoying especially on a linux shell
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.
I assume you're running windows?
no, linux ubuntu
+1 to this, regular accidental exits when copy and pasting over SSH. Windows host -> linux remote.
Added context, CTRL + C clears your message field on gemini and claude - if someone is using multiple LLMs this is quite frustrating
Thanks for the feedback. In the next release, you will be required to press Ctrl+C twice to exit. See this PR for details.