Hitting Ctrl+C once should interrupt the model and give you a chance to redirect it

Resolved 💬 1 comment Opened Jun 6, 2025 by bolinfest Closed Jun 26, 2025

Currently, hitting Ctrl+C interrupts the model in the Rust TUI, but if you submit another message, the model is generally confused and you cannot actually continue your conversation with new instructions. I believe this is because there is almost always inevitably a tool call outstanding when this happens and when the user hits Ctrl+C, we just fail to respond.

I believe this is because we need to respond with "aborted" along the lines of:

https://github.com/openai/codex/blob/029f39b9da894d27dcde81b8636ef89d8b652a9f/codex-cli/src/utils/agent/handle-exec-command.ts#L363-L373

so that the model has a response to the tool call, after which it will consider the next user message.

/cc @fouad-openai to confirm this

See also: https://github.com/openai/codex/issues/1245.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗