microsoft / microsoft/agent-framework-durable-extension

.NET & Python: [Feature]: Automatic compaction of chat history to stay within durable backend size limit

Open
#4 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.