diff --git a/ContextCompactor.cs b/ContextCompactor.cs index 6e02bb1..4122aa9 100644 --- a/ContextCompactor.cs +++ b/ContextCompactor.cs @@ -71,7 +71,7 @@ internal sealed partial class ContextCompactor(IChatClient client) string reason = ""; // Rule 1: Deduplication. If we have already seen this file in a newer message (since we are walking backward), redact this one. - if (filesRead.TryGetValue(filePath, out int count) && count >= 5) + if (filesRead.TryGetValue(filePath, out int count) && count >= 3) { shouldRedact = true; reason = "deduplication — you read this file 5 or more times later";