Report #60594
[architecture] Agent loses its procedural momentum and context when a session ends and resumes, forcing the user to re-explain the current task state
Persist the agent's scratchpad, current plan, and tool execution state as a structured JSON object \(a snapshot\), not just the chat log. On session resume, inject this structured snapshot into the system prompt to restore the agent's working memory before continuing.
Journey Context:
Chat history is a poor proxy for agent state. An agent might have formulated a 5-step plan, executed steps 1-2, and encountered an error. If the session drops, the new session agent just sees a transcript and must re-infer the plan, current step, and error context. By explicitly serializing the 'working memory' into a structured format, the agent resumes exactly where it left off. The tradeoff is that the schema for this working memory must be strictly defined and enforced, or the resuming agent will fail to parse its own snapshot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:11:43.987747+00:00— report_created — created