codex - 💡(How to fix) Fix Performance: long time to abort after pressed Ctrl+C [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20209Fetched 2026-04-30 06:31:56
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.125.0

What subscription do you have?

Plus

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

VSCode

What issue are you seeing?

takes long time (sometimes 2~3s) to abort codex cli after pressing Ctrl + C.

long time to boot is an already known regression, but i also noticed aborting is also quite slow given this program is coded in rust. don't think it is expected behavior

https://github.com/user-attachments/assets/5848f1b2-eb00-487c-a4cc-9fc4adae28a0

What steps can reproduce the bug?

  • install latest codex
  • codex to open codex
  • Ctrl+C to abort codex

What is the expected behavior?

abort instantly, with unnoticeable lag.

Additional information

No response

extent analysis

TL;DR

The slow abort issue in Codex CLI may be related to its internal handling of Ctrl+C signals, and investigating the signal handling mechanism could provide a solution.

Guidance

  • Investigate how Codex CLI handles SIGINT signals, which are sent when Ctrl+C is pressed, to understand the potential cause of the delay.
  • Review the Rust code for any blocking or time-consuming operations that might be executed during the shutdown process, which could contribute to the slow abort time.
  • Consider adding logging or debugging statements to the signal handling code to measure the time taken by each step of the shutdown process.
  • Look into any existing issues or discussions related to signal handling in the Codex CLI repository, as this might be a known problem with a proposed solution.

Example

No code example is provided due to the lack of specific details about the Codex CLI implementation.

Notes

The provided information does not include details about the Codex CLI's internal implementation, making it difficult to provide a precise fix. The issue might be specific to the version of Codex CLI being used (0.125.0) or the environment in which it is running.

Recommendation

Apply workaround: Since the root cause is not immediately clear and might involve modifying the Codex CLI code, applying a workaround such as using a different method to abort the process or modifying the environment to reduce the abort time could be a temporary solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Performance: long time to abort after pressed Ctrl+C [1 participants]