fix(session): archive actual idle compact drops

This commit is contained in:
chengyongru
2026-06-01 16:07:08 +08:00
committed by Xubin Ren
parent baffd6ef92
commit 0e37024114
4 changed files with 44 additions and 8 deletions
+2 -2
View File
@@ -691,6 +691,6 @@ def test_retain_recent_legal_suffix_last_consolidated_correct_in_else_branch():
# Retained messages start from latest user (u9) + max_messages forward
# so retained = [u9, a0..a9][:4] → but these are from original indices 9..12
# Of those, indices 9,10,11 are < 12 (before_lc), so new_lc = 3
assert session.last_consolidated <= 12
assert session.last_consolidated == 3
# already_cons should count dropped messages with original index < 12
assert already_cons >= 0
assert already_cons == 9