fix(memory): invalidate provider state after idle compaction

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-07 16:03:19 +08:00
1 parent b581a496a6
commit 26027e6d37
2 files changed
+68 -2

No files matched your search

+2
View File
@@ -1235,6 +1235,8 @@ class Consolidator:
# A turn can append while the provider call is in flight. Advance only
# through the captured batch so new messages remain eligible next time.
session.last_archived = archive_end
# Resume from the summary and retained transcript, not the old provider history.
session.provider_state = None
self.sessions.save(session)
except (Exception, asyncio.CancelledError) as exc:
await events.emit(