style(memory): minimize summary diff churn

This commit is contained in:
chengyongru
2026-08-19 18:40:20 +08:00
committed by chengyongru
parent b162019271
commit 87fb090d22
5 changed files with 8 additions and 32 deletions
+1 -5
View File
@@ -102,11 +102,7 @@ class AutoCompact:
finally:
self._archiving.discard(key)
def prepare_session(
self,
session: Session,
key: str,
) -> tuple[Session, SessionSummary | None]:
def prepare_session(self, session: Session, key: str) -> tuple[Session, SessionSummary | None]:
if self._is_internal_session(key):
self._archiving.discard(key)
self._summaries.pop(key, None)