Skip to content

Resume picker "Updated" column not sorted by updated time #10388

@atlascodesai

Description

@atlascodesai

Summary
The resume picker list is ordered by created_at, but the UI column is labeled “Updated,” so the timestamps appear out of order.

Steps to reproduce

  1. Run codex resume
  2. Observe the “Updated” column ordering (e.g., a newer “1 minute ago” entry can appear below “1 hour ago”)

Expected
Rows should be ordered by the displayed “Updated” timestamp (most recent first).

Actual
Rows are ordered by created_at while the “Updated” column shows a different timestamp.

Evidence

Proposed fix
In the resume picker, request ThreadSortKey::UpdatedAt instead of CreatedAt so ordering matches the “Updated” column.

Code change (suggested)

- ThreadSortKey::CreatedAt
+ ThreadSortKey::UpdatedAt

File: codex-rs/tui/src/resume_picker.rs (also update the resume picker snapshot test call in the same file to match)

Notes
Using UpdatedAt relies on file mtime sorting; this may be a bit heavier than CreatedAt, but it aligns with the UI label.

Local validation

  • cargo build -p codex-cli
  • cargo test -p codex-tui

Also, a side note: it would be nice if you could make the repository more friendly for submitting an issue via the codex because I wasn't able to neatly fit this into a bug report and I don't really want to copy and paste all the text in.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions