Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Continue rollout searches when a compressed rollout cannot be searched (#44226)

jifa2e83a783e49
diff --git a/codex-rs/rollout/src/search.rs b/codex-rs/rollout/src/search.rs
index 3b8f15860a..1f2a132001 100644
--- a/codex-rs/rollout/src/search.rs
+++ b/codex-rs/rollout/src/search.rs
@@ -146,7 +146,16 @@ async fn scan_rollout_matches(
};
if rollout_file.is_compressed() {
if let Some(snippet) =
- first_rollout_content_match_snippet(rollout_file.path(), search_term).await?
+ first_rollout_content_match_snippet(rollout_file.path(), search_term)
+ .await
+ .unwrap_or_else(|err| {
+ tracing::warn!(
+ path = %rollout_file.path().display(),
+ %err,
+ "Failed to search compressed rollout"
+ );
+ None
+ })
{
matches.insert(
compression::plain_rollout_path(rollout_file.path()),
@@ -221,7 +230,16 @@ async fn scan_compressed_rollout_matches(
continue;
}
if let Some(snippet) =
- first_rollout_content_match_snippet(rollout_file.path(), search_term).await?
+ first_rollout_content_match_snippet(rollout_file.path(), search_term)
+ .await
+ .unwrap_or_else(|err| {
+ tracing::warn!(
+ path = %rollout_file.path().display(),
+ %err,
+ "Failed to search compressed rollout"
+ );
+ None
+ })
{
matches.insert(
compression::plain_rollout_path(rollout_file.path()),