Module saga

Module saga 

Source
Expand description

Saga-related reducer handlers. Extracted from reducer/mod.rs in task #182 PR-D for navigability.

Both handlers are pure pass-through: state is untouched, the reducer just translates the wire command into the typed event so saga subscribers (in the saga coordinator’s bus loop) can react.

Functions§

handle_report_panes_reaped 🔒
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.
handle_report_saga_action_failed 🔒
Phase CPD-1 — host reported a saga-issued action failed. Pure pass-through translation into Event::SagaActionFailed. The saga coordinator’s bus loop will (CPD-3) treat the event as a terminal signal for the matching saga_id and emit Event::SagaFailed, dropping the saga from in-flight.