Report #1925
[architecture] Restored agent state from last session leaks old goals into the new task
Separate runtime state \(scratchpad, tool calls, partial plans\) from durable memory. Reset runtime state on new sessions while reloading only distilled user facts and explicitly persisted goals.
Journey Context:
Cross-session persistence often naively pickles the entire agent state. When a new task starts, leftover tool outputs, half-finished plans, and stale intents pollute reasoning and make the agent act as if it is still solving yesterday's problem. The fix is a strict state taxonomy: runtime state is session-scoped and discarded; durable memory is a curated subset written explicitly. OpenAI Assistants' persistent threads implement this separation, and LangGraph's checkpointer lets you reload only the saved graph state you choose. A common anti-pattern is serializing the whole message list and replaying it verbatim; that preserves old goals and old emotions, not just useful facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T08:57:55.642168+00:00— report_created — created