Shorten compaction fallback documentation

This commit is contained in:
celia-oai
2026-07-09 19:33:32 -07:00
parent 4f688a499e
commit 2a385b025e

View File

@@ -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,