resolve_file_system_special_path panic!
What version of the Codex App are you using (From “About Codex” dialog)?
v0.117.0
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
Rust panic in resolve_file_system_special_path triggered by repeat FD leak or similar file handle limit issue.
I'm not quite sure what's triggering the exact root failure, or the exact stacktrace, but I can see the panic in the logs:
codex_core::util: in-flight tool future failed during drain: Fatal error: tool task failed to receive: JoinError::Panic(Id(25438), "/tmp is absolute: Os { code: 24, kind: Uncategorized, message: \"T>
I can also see these errors in the logs:
codex_rollout::state_db: failed to read backfill state at /Users/alexanderriccio/.codex: error returned from database: (code: 14) unable to open database file
codex_rollout::state_db: failed to read backfill state at /Users/alexanderriccio/.codex: error returned from database: (code: 14) unable to open database file
I saw that FD leak error elsewhere in the logs, but don't have it handy anymore, but it was the FD handle limit (can't open more files)
What steps can reproduce the bug?
Not sure exactly, I guess a long running session?
What is the expected behavior?
- Better handling of non-
Okcases in functions likefrom_absolute_path, so I can at least cleanly exit and resume the codex session (the model is quite good at working around these FD-leak crashes if I plan in advance and resume the session, but not as good if the TUI is corrupted by a panic and I have to resume without that benefit) - Reduction of underlying file descriptor issues?
Additional information
I've been seeing enough FD-leak issues for the past month that I've been pre-planning to handle them in my prompts. It's not super easy to debug... not impossible, just haven't had the time for it.
There are several seemingly related issues:
https://github.com/openai/codex/issues/12216
https://github.com/openai/codex/issues/11999
https://github.com/openai/codex/issues/7245
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗