From 977d772229a5a60700be747bd615a59a5d6b44fa Mon Sep 17 00:00:00 2001 From: TomiEckert Date: Fri, 6 Mar 2026 08:40:11 +0100 Subject: [PATCH] feat: decreased deduplication amount of read results from 5 to 3 --- ContextCompactor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";