Revert thread recencyAt for sidebar ordering (#28655)

## Why

Revert #27910 to remove the newly introduced thread `recencyAt`
persistence and API behavior from `main`.

## What changed

This reverts commit `fac3158c2a783095768076489815f361fa9b0db4`,
including the state migration, thread-store propagation, app-server API
surface, generated schemas, and related tests.

## Validation

Not run before opening; relying on CI for the initial fast signal.
This commit is contained in:
pakrym-oai authored and GitHub committed 2026-06-16 21:39:30 -07:00
1 parent 0a3ad4c4ba
commit cb15c64760
67 files changed
+95 -1150

No files matched your search

-11
View File
@@ -612,7 +612,6 @@ async fn test_list_conversations_latest_first() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-01-03T12-00-00".into()),
recency_at: updated_times.first().cloned().flatten(),
updated_at: updated_times.first().cloned().flatten(),
},
ThreadItem {
@@ -631,7 +630,6 @@ async fn test_list_conversations_latest_first() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-01-02T12-00-00".into()),
recency_at: updated_times.get(1).cloned().flatten(),
updated_at: updated_times.get(1).cloned().flatten(),
},
ThreadItem {
@@ -650,7 +648,6 @@ async fn test_list_conversations_latest_first() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-01-01T12-00-00".into()),
recency_at: updated_times.get(2).cloned().flatten(),
updated_at: updated_times.get(2).cloned().flatten(),
},
],
@@ -762,7 +759,6 @@ async fn test_pagination_cursor() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-03-05T09-00-00".into()),
recency_at: updated_page1.first().cloned().flatten(),
updated_at: updated_page1.first().cloned().flatten(),
},
ThreadItem {
@@ -781,7 +777,6 @@ async fn test_pagination_cursor() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-03-04T09-00-00".into()),
recency_at: updated_page1.get(1).cloned().flatten(),
updated_at: updated_page1.get(1).cloned().flatten(),
},
],
@@ -836,7 +831,6 @@ async fn test_pagination_cursor() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-03-03T09-00-00".into()),
recency_at: updated_page2.first().cloned().flatten(),
updated_at: updated_page2.first().cloned().flatten(),
},
ThreadItem {
@@ -855,7 +849,6 @@ async fn test_pagination_cursor() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-03-02T09-00-00".into()),
recency_at: updated_page2.get(1).cloned().flatten(),
updated_at: updated_page2.get(1).cloned().flatten(),
},
],
@@ -902,7 +895,6 @@ async fn test_pagination_cursor() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some("2025-03-01T09-00-00".into()),
recency_at: updated_page3.first().cloned().flatten(),
updated_at: updated_page3.first().cloned().flatten(),
}],
next_cursor: None,
@@ -1074,7 +1066,6 @@ async fn test_get_thread_contents() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some(ts.into()),
recency_at: page.items[0].updated_at.clone(),
updated_at: page.items[0].updated_at.clone(),
}],
next_cursor: None,
@@ -1430,7 +1421,6 @@ async fn test_timestamp_only_cursor_skips_same_second_filesystem_ties() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some(ts.to_string()),
recency_at: updated_page1.first().cloned().flatten(),
updated_at: updated_page1.first().cloned().flatten(),
},
ThreadItem {
@@ -1449,7 +1439,6 @@ async fn test_timestamp_only_cursor_skips_same_second_filesystem_ties() {
model_provider: Some(TEST_PROVIDER.to_string()),
cli_version: Some("test_version".to_string()),
created_at: Some(ts.to_string()),
recency_at: updated_page1.get(1).cloned().flatten(),
updated_at: updated_page1.get(1).cloned().flatten(),
},
],