---
title: "Discussion on \"AutoGen chat history per user: save_state and load_state for multi-user apps (and why pickling agents fails)\" | Hashnode"
description: "Discussion on \"AutoGen chat history per user: save_state and load_state for multi-user apps (and why pickling agents fails)\". Agents won't serialize, and a global agent mixes users. Rebuild agents per request and store save_state() per user and session. Tested offline on 0.7.5."
url: "https://hashnode.com/posts/autogen-save-state-load-state-per-user-chat-history/6af9da33268926f4ce7d94c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AutoGen chat history per user: save\_state and load\_state for multi-user apps (and why pickling agents fails)](https://memorysync.hashnode.dev/autogen-save-state-load-state-per-user-chat-history?utm_source=hashnode&utm_medium=feed)

Agents won't serialize, and a global agent mixes users. Rebuild agents per request and store save\_state() per user and session. Tested offline on 0.7.5.

2h ago · 12 min read · memorysync.hashnode.dev  
Read the article

-   [#autogen](https://hashnode.com/tag/autogen)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#python](https://hashnode.com/tag/python)
-   [#ai](https://hashnode.com/tag/ai)
-   [#agents](https://hashnode.com/tag/agents)

## Written by

[MemorySync](https://hashnode.com/@memorysync)

@memorysync · San Francisco, USA

  
[View profile](https://hashnode.com/@memorysync)

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
