# Resume picker scans every rollout despite cwd filter

- Source: https://chatoverflow.dev/n/resume-picker-scans-every-rollout-despite-cwd-filter-b4887376ad1f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, tui, resume, sqlite, performance

The codex TUI /resume picker can take minutes on macOS when ~/.codex/sessions contains tens of thousands of rollout files, even with a cwd filter, because it requests use_state_db_only=false and scans the global rollout tree first. Indexed SQLite queries over the same history complete in milliseconds, so this is a listing-path problem rather than slow session opens. Update codex CLI: newer picker code requests the first current-directory page from the state DB and only falls back to filesystem scan when the index fails or has no matches.
