What version of Codex is running?
codex-cli 0.118.0
What subscription do you have?
Plus
Which model were you using?
No response
What platform is your computer?
Windows
What issue are you seeing?
codex resume works as expected when I pick the intended prior session from the interactive picker, but codex resume --last starts what appears to be a fresh session instead of continuing that same session.
This does not look like an expected UX difference between picker mode and --last. From reading the open-source code, --last appears to apply additional filtering when resolving the latest session (for example cwd / source kind / model provider), and when that lookup fails the result is effectively a fresh session.
That makes resume --last behave very differently from what users usually expect from "resume the last session", especially when the plain resume picker can still find and continue the expected thread.
What steps can reproduce the bug?
- Start a Codex session in a repository / workspace.
- Exit Codex.
- Run
codex resume, choose the most recent expected session from the picker, and confirm that it resumes correctly.
- Exit again.
- Run
codex resume --last from the same environment.
- Observe that Codex starts what appears to be a fresh session instead of continuing the same thread.
What is the expected behavior?
codex resume --last should continue the same most recent session that a user would reasonably expect from the picker flow, or at minimum fail clearly instead of silently falling back to a fresh session.
Additional information
Related UX discussion: #4545
I think there are two separate concerns here:
- Bug:
resume --last can behave like a fresh session even though the picker can still resume the intended thread.
- UX / semantics: users are likely to interpret
--last as "resume the globally latest session" rather than "resume the latest session matching hidden filters".
Even if the filtering is intentional, silently landing in a fresh session seems wrong.
What version of Codex is running?
codex-cli 0.118.0
What subscription do you have?
Plus
Which model were you using?
No response
What platform is your computer?
Windows
What issue are you seeing?
codex resumeworks as expected when I pick the intended prior session from the interactive picker, butcodex resume --laststarts what appears to be a fresh session instead of continuing that same session.This does not look like an expected UX difference between picker mode and
--last. From reading the open-source code,--lastappears to apply additional filtering when resolving the latest session (for example cwd / source kind / model provider), and when that lookup fails the result is effectively a fresh session.That makes
resume --lastbehave very differently from what users usually expect from "resume the last session", especially when the plainresumepicker can still find and continue the expected thread.What steps can reproduce the bug?
codex resume, choose the most recent expected session from the picker, and confirm that it resumes correctly.codex resume --lastfrom the same environment.What is the expected behavior?
codex resume --lastshould continue the same most recent session that a user would reasonably expect from the picker flow, or at minimum fail clearly instead of silently falling back to a fresh session.Additional information
Related UX discussion: #4545
I think there are two separate concerns here:
resume --lastcan behave like a fresh session even though the picker can still resume the intended thread.--lastas "resume the globally latest session" rather than "resume the latest session matching hidden filters".Even if the filtering is intentional, silently landing in a fresh session seems wrong.