Report #100712
[architecture] How do I keep an agent remembering user preferences across different conversation threads?
Separate thread-scoped state from cross-thread memory. Use a checkpointer to persist conversation history and workflow state inside a thread\_id, and use a namespaced store \(e.g., users/\{user\_id\}/preferences\) for durable long-term facts. Never store user facts in the checkpointer alone.
Journey Context:
Conflating short-term conversation state with long-term memory makes resumes, multi-tenancy, and data migration brittle. LangGraph's persistence layer explicitly splits the two: checkpointers for thread-scoped short-term memory, stores for cross-thread long-term memory. This lets the same agent start a new thread without losing user preferences.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T04:58:23.969040+00:00— report_created — created