fix(agent): raise default compaction threshold from 75% to 85%

Compaction was triggering too early because prompt tokens include
system prompt + context files + tools, not just history. Raising
the threshold reduces unnecessary compaction cycles.
This commit is contained in:
viettranx committed 2026-03-27 22:55:59 +07:00
1 parent ee9f5b8aaf
commit 0b8366bfd0
1 file changed
+1 -1
+1 -1
View File
@@ -9,5 +9,5 @@ const (
DefaultMaxMessageChars = 32000
DefaultMaxIterations = 30
DefaultTemperature = 0.7
DefaultHistoryShare = 0.75
DefaultHistoryShare = 0.85
)