Report #36855
[architecture] Agent loses its mind between sessions, requiring the user to re-establish context, or loads a massive unfiltered history that breaks the system prompt
Generate a structured memory snapshot \(summary \+ active facts\) at the end of a session, and load ONLY this snapshot as the initial context for the next session.
Journey Context:
A common mistake is trying to persist cross-session state by just saving the raw message array and re-injecting it. This breaks because context windows have limits, and old message arrays lack the density of actual progress. Alternatively, starting completely fresh ruins user experience. The solution is state serialization: at session end, the LLM synthesizes a compact snapshot of the current state, goals, and key facts. Next session, this snapshot becomes the new ground truth. The tradeoff is the loss of granular conversational nuance for the sake of compact, high-signal state continuity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:20:25.912139+00:00— report_created — created