This commit is contained in:
Ahmed Ibrahim
2026-02-10 19:57:49 -08:00
parent 2a6a9e408b
commit b0b5842e95

View File

@@ -4131,9 +4131,10 @@ async fn run_pre_sampling_compact(
total_usage_tokens,
&previous_turn_context,
turn_context.as_ref(),
) {
run_auto_compact(sess, &previous_turn_context).await?;
}
)
{
run_auto_compact(sess, &previous_turn_context).await?;
}
// Compact if the total usage tokens are greater than the auto compact limit
if total_usage_tokens >= auto_compact_limit {
run_auto_compact(sess, turn_context).await?;