contextPressureText property

String? get contextPressureText

~NN% context pressure for status lines, or null when unknown.

Implementation

String? get contextPressureText {
  final est = estTokens;
  final window = windowTokens;
  if (est == null || window == null || window <= 0) return null;
  return '~${(est * 100 / window).round()}% ctx';
}