[codex-backend] Apply git metadata overlay on list fallback

This commit is contained in:
Joey Trasatti
2026-04-27 11:38:42 -07:00
parent ffcedfd570
commit 4cf7633db9
3 changed files with 14 additions and 19 deletions
+5 -6
View File
@@ -552,12 +552,11 @@ impl RolloutRecorder {
// If SQLite listing still fails, return the filesystem page rather than failing the list.
tracing::error!("Falling back on rollout system");
tracing::warn!("state db discrepancy during list_threads_with_db_fallback: falling_back");
Ok(page_from_filesystem_scan(
fs_page,
sort_direction,
page_size,
sort_key,
))
let page = page_from_filesystem_scan(fs_page, sort_direction, page_size, sort_key);
Ok(
overlay_thread_item_metadata_from_state_db(exact_lookup_state_db_ctx.as_ref(), page)
.await,
)
}
/// Find the newest recorded thread path, optionally filtering to a matching cwd.