Compare commits

...
Author SHA1 Message Date
praisonai-triage-agent[bot]andMervin Praison 4476498ad0 fix: emit store trace events only for persisted batch items
Filter committed_items by the ids that survive the short/long-term limit
pass so the memory trace stream no longer reports stores that were trimmed
out of the persisted payload.

Co-authored-by: Mervin Praison <[email protected]>
2026-08-13 16:10:36 +00:00
@@ -383,6 +383,7 @@ class FileMemory:
):
raise TimeoutError("Memory batch was cancelled")
tmp_path = None
persisted_ids = {item.id for item in items}
if memory_type == "short_term":
self._short_term = items
else:
@@ -395,6 +396,8 @@ class FileMemory:
pass
for item in committed_items:
if item.id not in persisted_ids:
continue
self._emit_memory_event(
"store",
memory_type,