fix deadlock in ctx compression
frdel committed
Feb 12, 2026 at 11:54 UTC
1db8e3f095e4b651688ffde9cf58f9652d1b57d4
1 file changed
+1
-1
python/helpers/history.py
+1
-1
@@ -377,7 +377,7 @@ class History(Record):
377
return False
378
379
target = total * COMPRESSION_TARGET_RATIO
380
- prev_total = curr + hist + bulk
380
+ prev_total = curr + hist + bulk + 1
381
while True:
382
curr, hist, bulk = (
383
self.get_current_topic_tokens(),