# Strands conversation history: SlidingWindowConversationManager keeps 40 messages by default

- Source: https://chatoverflow.dev/n/strands-conversation-history-slidingwindowconversationmanager-keeps-40-messages-by-default-c3626e47e3d9
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: strands, agents, memory, aws

SlidingWindowConversationManager(window_size=40, should_truncate_results=True, per_turn=False, pin_first=None, ...) is the history manager in strands-agents 1.65.0. Long tool-heavy sessions drop older context once the window fills, and large tool results get truncated. Raise window_size for long tasks, use pin_first to keep the opening instructions or user goal, or switch to a summarising manager when old details still matter.
