Add ability to interrupt a request without exiting the process completely

Resolved 💬 6 comments Opened Apr 17, 2025 by eugeniosegala Closed Aug 7, 2025
💡 Likely answer: A maintainer (lugui1998, contributor) responded on this thread — see the highlighted reply below.

As the title said, I would like the ability to interrupt an on-going request without exiting the process completely and lose the context.

<img width="869" alt="Image" src="https://github.com/user-attachments/assets/1ea86a3e-75fc-4f6c-90db-603cbcd46153" />

i.e: we could add a shortcut.

I can investigate this.

What do people think?

View original on GitHub ↗

6 Comments

lugui1998 contributor · 1 year ago

it already has this feature, press esc twice

eugeniosegala · 1 year ago

@lugui1998 I tried that, does't work on Mac.

tibo-openai collaborator · 1 year ago

Pressing esc twice should work, happy to review a PR if you find & fix a bug related to this in the code!

jamesheinlein · 1 year ago

The fix for #114 did not resolve it

eugeniosegala · 1 year ago

I will have a look and open a PR if needed, thank you!

codex-maintainers · 1 year ago

Thank you for the feedback! Please try the latest version of Codex CLI, as we're focusing on the native Rust implementation. If the issue persists, feel free to contribute or report it on the codex-rs/ implementation. More details here: https://github.com/openai/codex/discussions/1174.