Return non-zero exit code on SIGINT (Ctrl+C) in exec mode

Resolved 💬 2 comments Opened Oct 4, 2025 by tekumara Closed Jan 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.42.0

Which model were you using?

n/a

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

  1. Run codex exec "foo"
  2. Press CTRL+C before completion

What is the expected behavior?

Return a non-zero exit code eg: 130.
This allows scripts to handle any cleanup.

What do you see instead?

Zero exit code (ie: success)

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected:

  • #4651
  • #2997
  • #3919
  • #4004

Powered by Codex Action

etraut-openai contributor · 7 months ago

Closing out old bugs.