1
0

feat: decreased deduplication amount of read results from 5 to 3

This commit is contained in:
2026-03-06 08:40:11 +01:00
parent a776d978ea
commit 977d772229

View File

@@ -71,7 +71,7 @@ internal sealed partial class ContextCompactor(IChatClient client)
string reason = ""; string reason = "";
// Rule 1: Deduplication. If we have already seen this file in a newer message (since we are walking backward), redact this one. // 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; shouldRedact = true;
reason = "deduplication — you read this file 5 or more times later"; reason = "deduplication — you read this file 5 or more times later";