Compare commits

..

1 Commits

Author SHA1 Message Date
Charley Cunningham
56420da857 tui: sort resume picker by last updated time (#13654)
## Summary
- default the resume picker sort key to UpdatedAt instead of CreatedAt
- keep Tab sort toggling behavior and update the test expectation for
the new default

## Testing
- just fmt
- cargo test -p codex-tui

Co-authored-by: Codex <noreply@openai.com>
2026-03-05 18:23:44 -08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ members = [
resolver = "2"
[workspace.package]
version = "0.112.0-alpha.2"
version = "0.0.0"
# Track the edition for all workspace crates in one place. Individual
# crates can still override this value, but keeping it here means new
# crates created with `cargo new -w ...` automatically inherit the 2024

View File

@@ -390,7 +390,7 @@ impl PickerState {
show_all,
filter_cwd,
action,
sort_key: ThreadSortKey::CreatedAt,
sort_key: ThreadSortKey::UpdatedAt,
thread_name_cache: HashMap::new(),
inline_error: None,
}
@@ -2108,7 +2108,7 @@ mod tests {
{
let guard = recorded_requests.lock().unwrap();
assert_eq!(guard.len(), 1);
assert_eq!(guard[0].sort_key, ThreadSortKey::CreatedAt);
assert_eq!(guard[0].sort_key, ThreadSortKey::UpdatedAt);
}
state
@@ -2118,7 +2118,7 @@ mod tests {
let guard = recorded_requests.lock().unwrap();
assert_eq!(guard.len(), 2);
assert_eq!(guard[1].sort_key, ThreadSortKey::UpdatedAt);
assert_eq!(guard[1].sort_key, ThreadSortKey::CreatedAt);
}
#[tokio::test]