microsoft / microsoft/agent-framework-durable-extension
.NET & Python: [Feature]: Automatic compaction of chat history to stay within durable backend size limit
Open
@ahmedmuhsin is already working on this.
Since Jul 13, 2026.
- Dominant language
- Python
- Stars
- 16
- Forks
- 10
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 9
Description
The Durable extension persists chat history in a durable entity. Durable backends cap entity state size (e.g., 1 MB on some providers), so long conversations eventually fail to persist and break the agent.
Add an automatic compaction mechanism that monitors the serialized history size and compacts it (summarize or evict older turns) before it hits the backend limit, keeping recent context and letting conversations run indefinitely.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.