Report #78922
[architecture] Losing agent state and learned preferences when a user starts a new session or chat thread
Decouple long-term semantic memory from the session. At the end of a session, extract and upsert key facts/preferences to a user-scoped vector/graph store. At the start of a new session, inject a summary of the user's long-term memory into the system prompt or first turn.
Journey Context:
Chat interfaces naturally scope memory to a single thread. When the thread dies, the agent gets amnesia. To build a true assistant, the agent needs a persistent identity layer. The tradeoff is complexity: you need an external DB, a user-identification mechanism, and a strategy to avoid overwhelming the context window with historical facts on boot. The fix is to only inject a condensed 'memory summary' or top-K most relevant facts, rather than the raw history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:04:00.132561+00:00— report_created — created