`codex resume/resume --all` slow to load, no loading indicator
Resolved 💬 7 comments Opened Nov 20, 2025 by riordant Closed Apr 5, 2026
💡 Likely answer: A maintainer (lionel-oai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.61.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
Linux 6.14.0-35-generic x86_64 x86_64
What issue are you seeing?
running codex resume --all or codex resume (in a directory that had a previous workspace) results in a blank screen, followed by the program exiting without any information. when the blank screen is shown no user action can exit it (eg. ctrl-c). it eventually just silently fails. I was previously on 0.46 and it worked; I upgraded to latest and it stopped working. I reverted to 0.46 and it's still a problem. I have no other running sessions. choosing a model beforehand also makes no difference, same effect.
What steps can reproduce the bug?
codex resume --all || codex resume
What is the expected behavior?
list resume sessions as per the command chosen
Additional information
_No response_
7 Comments
Hi @riordant thanks a lot for raising this bug, I'm not able to reproduce both commands are working fine on the
0.61.0version for me. Could you try to look into your~/.codexfolder and check that the files / directories are not empty?You should see something like:
and could you also check that
history.jsonlis not empty?I ran into this too, but only when I was in a different directory and using --cd to set the working directory. The issue did not occur when I'm already in the directory that was previously used.
Ok so - it is resolving the session list now, the problem actually in fact seems to be that it's slow to load it. I think what was happening is that I was hitting ctrl-c while it was loading, and then it finally resolved the command after load, without showing the sessions.
if there's a potential for it to slowdown then a loading indicator would be a good idea. if it should be pretty much instant always then I guess there is a bug somewhere.
I think you history.jsonl is quite big compared to mine so it makes sense that you would take longer to load. How long approximately do you have to wait? Around 2-3 seconds?
Additional investigation:
Observed on codex-cli 0.65.0 (released) in a fresh directory with no prior sessions.
When
codex resumeor/resumeis run from a directory with no prior sessions, the picker shows an empty list with no hint, even though sessions exist elsewhere. The picker filters to the current working directory by default:tui/src/resume_picker.rs:79-84setsfilter_cwd = current_dirunless--allis used.tui/src/resume_picker.rs:247-262drops any session whose recordedcwddoesn’t match the current dir or whose meta lackscwd.Result: launching Codex in a fresh directory hides all sessions and looks broken; the empty state just says “No sessions yet.”
Suggested fix: if the filtered list is empty, fall back to showing all sessions or prompt to show all; at minimum change the empty-state hint to “No sessions for current directory. Press A or run
codex resume --allto show all sessions.”Repro:
1) Start Codex in a new directory (no previous sessions there).
2) Run
/resumeorcodex resume.3) Observe empty picker; run with
--allto see sessions.I took a look at the resume picker code and I think the initial “blank screen” + “no loading indicator” can happen even when things are just slow (e.g. larger
~/.codex/history.jsonl).Proposed fix (small + test-covered):
Patch (single commit, includes a regression unit test): https://gist.github.com/yinkev/d95f458b6408d4b0c72f8947b145dd63
Local checks I ran (per contributing docs):
just fmtjust fix -p codex-tuicargo test -p codex-tuiIf this approach matches what you want, I’m happy to open a PR if invited (I saw the repo is invitation-only for PRs).
This should now be fixed. We've switched to a sqlite db to track sessions, eliminating the need to do a slow file system enumeration.