---
title: "Discussion on \"Pydantic AI SummarizingCompaction(keep_user_messages=True) drops recent messages\" | Hashnode"
description: "Discussion on \"Pydantic AI SummarizingCompaction(keep_user_messages=True) drops recent messages\". Messages trimmed for retained user turns skip the summary. Turn the flag off, use keep_tokens, or keep the full transcript."
url: "https://hashnode.com/posts/pydantic-ai-summarizing-compaction-keep-user-messages-drops-messages/6aef4df5dd4ac1fbf8951837"
---

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

Discussion

# [Pydantic AI SummarizingCompaction(keep\_user\_messages=True) drops recent messages](https://memorysync.hashnode.dev/pydantic-ai-summarizing-compaction-keep-user-messages-drops-messages?utm_source=hashnode&utm_medium=feed)

Messages trimmed for retained user turns skip the summary. Turn the flag off, use keep\_tokens, or keep the full transcript.

Nov 7 · 6 min read · memorysync.hashnode.dev  
Read the article

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

## 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.
