Auto-compact Threshold UI improvements (#5354)

This commit is contained in:
David Katz
2025-10-27 15:22:06 -04:00
committed by GitHub
parent c021e00893
commit 77fe4f329f
4 changed files with 94 additions and 88 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ pub async fn check_if_compaction_needed(
let usage_ratio = current_tokens as f64 / context_limit as f64;
let needs_compaction = if threshold <= 0.0 || threshold >= 1.0 {
usage_ratio > DEFAULT_COMPACTION_THRESHOLD
false // Auto-compact is disabled.
} else {
usage_ratio > threshold
};