...("content", "") or "").strip()
        if not content:
            continue
        if is_event(content):
            s = content.replace("\n", " ")
            s = s if len(s) <= 280 else s[:277] + "..."
            markers.append(f"[{msg['role']} {msg['ts']}] {s}")
            if len(markers) >= max_events:
                return markers

    # 2) ASSISTANT als Fallback
    for msg in messages:
   ...