handle_report_panes_reaped

Function handle_report_panes_reaped 

Source
pub(super) fn handle_report_panes_reaped(
    state: &mut State,
    label: String,
    saga_id: Option<u64>,
) -> Vec<Event>
Expand description

Phase F.6 — host-emitted signal that browser-pane HWNDs for a closing top-level window have been reaped. Pure pass-through: state stays untouched (the host owns pane bookkeeping); the reducer just translates the wire command into the typed event so the window-cleanup-cascade saga can advance.

Idempotent / context-free: the saga matches the label against its own closed_label, so a stray report for a label that no in-flight saga is tracking is a harmless broadcast.