keepSystemMessages property
Whether system messages are always kept, even when trimming aggressively. Losing the system prompt changes the model's behaviour entirely, which is worse than losing an old turn.
Implementation
final bool keepSystemMessages;