mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
Shorten compaction fallback documentation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user