From 2a385b025ea327b3b0051e9ca634d83238bb8260 Mon Sep 17 00:00:00 2001 From: celia-oai Date: Thu, 9 Jul 2026 19:33:32 -0700 Subject: [PATCH] Shorten compaction fallback documentation --- codex-rs/core/src/compact_model_fallback.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/codex-rs/core/src/compact_model_fallback.rs b/codex-rs/core/src/compact_model_fallback.rs index ff96a47859..3cc797a1d9 100644 --- a/codex-rs/core/src/compact_model_fallback.rs +++ b/codex-rs/core/src/compact_model_fallback.rs @@ -4,13 +4,7 @@ use codex_otel::SessionTelemetry; use codex_protocol::error::CodexErr; use tracing::warn; -/// Returns whether failed previous-model compaction should be attempted once with the current -/// model. -/// -/// These errors can reflect model availability, compatibility, capacity, or model-scoped usage -/// failures. Some variants also cover broader server failures; accepting an occasional redundant -/// attempt keeps fallback resilient as backend error classifications evolve. Callers bound the -/// fallback to a single current-model attempt. +/// Retries failures that may be model-specific and succeed with a different model. pub(crate) fn should_retry_with_current_model(error: &CodexErr) -> bool { matches!( error,