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_

View original on GitHub ↗

8 Comments

neurostream · 9 months ago

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" )

arminhaaf · 9 months ago

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

neurostream · 9 months ago

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.

dedrisian-oai contributor · 9 months ago

I assume you're running windows?

arminhaaf · 9 months ago

no, linux ubuntu

ianbarber · 9 months ago

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

adrianveen · 8 months ago

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

etraut-openai contributor · 6 months ago

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