Use the active model context limit for provider compaction

This commit is contained in:
Ryan Ward
2026-10-20 18:27:34 +00:00
parent 75b9334a0b
commit 0383166f4e
3 changed files with 62 additions and 2 deletions
+3 -2
View File
@@ -6935,8 +6935,9 @@ impl BlocklistAIController {
}
let active_context_limit = active_run
.response_config
.max_context_tokens
.coordinator
.current_context_limit()
.or(active_run.response_config.max_context_tokens)
.unwrap_or_else(|| {
let preferences = LLMPreferences::as_ref(ctx);
configured_llm_context_limit(