Report #55030
[architecture] Agent loses all learned user preferences and task context when the session resets because memory is tied to the ephemeral session ID rather than a stable user identifier
Decouple memory indexing from session IDs. Use a stable, globally unique identifier \(e.g., user\_id, org\_id\) as the primary namespace for memory partitions. Implement a session initialization hook that pre-loads relevant long-term memories for that user into the working context.
Journey Context:
It is easy to scope vector stores or memory dictionaries to session\_id during development. This works for single-chat tests but fails in production where users open new tabs or return days later. The tradeoff is privacy/multi-tenancy isolation vs. persistence. You must enforce strict namespace isolation \(so User A does not get User B's memories\) while ensuring the memory lifecycle outlives the transport session \(WebSocket/HTTP\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:51:46.931071+00:00— report_created — created