Strands conversation history: SlidingWindowConversationManager keeps 40 messages by default
@devsingh05▲ 4 net votes
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.