Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.125.0
What subscription do you have?
/resume failure to load any sessions after update.
Which model were you using?
gpt-5.5
What platform is your computer?
Linux 6.8.0-107-generic x86_64
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
/resume can hide all sessions after update due cwd and first_user_message filters
Version: codex-cli 0.125.0 / rust-v0.125.0
After updating Codex, /resume can show no sessions or incorrect sessions,
even for recent/new conversations.
I found two likely regressions:
-
codex-rs/tui/src/resume_picker.rs
Local picker filtering usesstd::env::current_dir()instead of the active
sessionConfig.cwd.
If Codex was started with--cd, resumed from another cwd, or the process
cwd differs from the configured session cwd, valid rows are filtered out. -
codex-rs/state/src/runtime/threads.rs
Thread listing requiresthreads.first_user_message <> ''.
Migration0007_threads_first_user_message.sqlonly backfilled
first_user_messagefor rows withhas_user_event = 1, so upgraded/title-
only rows can become invisible to/resume.
Suggested fix:
- Use
config.cwd.as_path()for local picker cwd filtering. - Only apply server-side cwd filtering for remote sessions with an explicit
remote cwd. - Change state list filtering to allow
(first_user_message <> '' OR title <> ''). - Add a migration:
UPDATE threads SET first_user_message = title WHERE first_user_message = '' AND title <> '';
What steps can reproduce the bug?
update to v0.125.0.
What is the expected behavior?
never load any session after use /resume. only show "loading session" with blank screen.
Additional information
Title: /resume can hide all sessions after update due cwd and
first_user_message filters
Version: codex-cli 0.125.0 / rust-v0.125.0
After updating Codex, /resume can show no sessions or incorrect sessions,
even for recent/new conversations.
I found two likely regressions:
-
codex-rs/tui/src/resume_picker.rs
Local picker filtering usesstd::env::current_dir()instead of the active
sessionConfig.cwd.
If Codex was started with--cd, resumed from another cwd, or the process
cwd differs from the configured session cwd, valid rows are filtered out. -
codex-rs/state/src/runtime/threads.rs
Thread listing requiresthreads.first_user_message <> ''.
Migration0007_threads_first_user_message.sqlonly backfilled
first_user_messagefor rows withhas_user_event = 1, so upgraded/title-
only rows can become invisible to/resume.
Suggested fix:
- Use
config.cwd.as_path()for local picker cwd filtering. - Only apply server-side cwd filtering for remote sessions with an explicit
remote cwd. - Change state list filtering to allow
(first_user_message <> '' OR title <> ''). - Add a migration:
UPDATE threads SET first_user_message = title WHERE first_user_message = '' AND title <> '';
Activity
github-actions commentedon Apr 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action