refactor(memory): guard empty summaries only on write

This commit is contained in:
chengyongru
2026-08-19 18:40:20 +08:00
committed by chengyongru
parent 6bb3b33aac
commit f63001828f
2 changed files with 1 additions and 16 deletions
+1 -5
View File
@@ -431,11 +431,7 @@ class MemoryStore:
unified_session: bool = False,
) -> list[dict[str, Any]]:
"""Return unprocessed history entries safe to inject into a turn prompt."""
entries = [
entry
for entry in self.read_unprocessed_history(since_cursor=since_cursor)
if str(entry.get("content", "")).strip() != "(nothing)"
]
entries = self.read_unprocessed_history(since_cursor=since_cursor)
if session_key is None:
return entries
if not unified_session: