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,