codex - 💡(How to fix) Fix XTerms constantly crashing [3 comments, 3 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#20226Fetched 2026-04-30 06:31:27
View on GitHub
Comments
3
Participants
3
Timeline
9
Reactions
0
Timeline (top)
commented ×3labeled ×3mentioned ×1subscribed ×1

Error Message

`WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39)

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.125.0

What subscription do you have?

Enterprise

Which model were you using?

gpt-5.5

What platform is your computer?

Linux 4.18.0-553.el8_10.x86_64 x86_64 x86_64

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

xterm

What issue are you seeing?

I was using 0.103 (I believe) and gpt-5.3. Seeing that it's being depricated on 8th May I've downloaded the latest.

This is the first time I've tried using it and it repeated crashes on the first task I've asked it to do which is write a user guide for the python module that it was helping me create.

What steps can reproduce the bug?

Uploaded thread: 019dda07-992e-7d12-b4f7-83dd906ddaa9

What is the expected behavior?

Not to crash and terminate the window.

Additional information

We just recently had a computing cluster outage and I'm now seeing this message when I start codex:

WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39)

extent analysis

TL;DR

The issue is likely related to the recent upgrade to codex-cli 0.125.0 and the warning message about stale temp dirs, which may be causing the crashes.

Guidance

  • Investigate the WARNING: failed to clean up stale arg0 temp dirs message and try to manually clean up the temp dirs to see if it resolves the issue.
  • Check the system logs for any other related error messages that may indicate the cause of the crashes.
  • Try running the codex-cli with a different task to see if the issue is specific to the user guide generation task.
  • Consider reaching out to the support team for the Enterprise subscription to report the issue and get further assistance.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be related to the recent computing cluster outage, and it's unclear if the problem is specific to the gpt-5.5 model or the codex-cli version.

Recommendation

Apply workaround: try to manually clean up the temp dirs and investigate other potential causes, as the issue is likely related to the recent upgrade and warning message.

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 XTerms constantly crashing [3 comments, 3 participants]