pub fn should_wrap(
session: &SessionRow,
events: &[StoredEvent],
ended_at: DateTime<Utc>,
) -> boolExpand description
Determine whether this session qualifies for a wrap.
Two conditions, both must hold:
- Duration ≥
MIN_WRAP_DURATION(§9.1 “session exit >2h”). - At least one prompt event was captured. A 2-hour idle session with zero input is not worth a wrap — the operator never actually operated.