Repository navigation
v1.5.3-beta.3
Pre-releaseFollow-up to v1.5.3-beta.2 (#16): the generator fix landed there, but reimporting that very YAML back into FLODE still broke, exactly as reported in follow-up testing — a scene.create fan-out came back with zero outgoing edges, and an AND/OR condition collapsed into a generic template. Root cause was entirely in the YAML parser's state-machine reconstruction, which had never been taught to decode what the generator emits.
Compared against upstream C.A.F.E.'s current main (which already has this round-trip fix) and ported the same approach, adapted to FLODE's model.
Fixed
- A node's
parallel:fan-out (e.g.scene.createlinking to several actions) now reconstructs every branch as real nodes and edges on reimport, instead of silently vanishing. - The same fix applies to trigger fan-out and condition-handle fan-out (the
__parallel_trigger_*/__parallel_cond_*synthetic entries), so those round-trip too instead of leaving dangling edges. - A branch itself containing nested fan-out, conditions, delays, waits, or set_variables now reconstructs correctly instead of only the first item surviving.
- AND/OR condition nodes now survive reimport intact instead of collapsing into a raw template condition — compound
and/or/notJinja expressions are parsed recursively instead of matching only the first leaf pattern found. - Added the
state_attr(...) == '...'condition pattern to the reimport parser, which was missing entirely. - Fixed a related bug found while auditing this path: a
set_variablesnode could be silently reimported as an empty, disconnected action node because its choose block was indistinguishable from the state-machine's internal transition variable.
Testing
Verified against the actual reported flow — a 3-way scene.create → light.turn_on fan-out and an OR condition with two nested state conditions — both confirmed via automated tests and visually in a live browser session against the FLODE UI. All 227 transpiler tests pass (225 pre-existing + 2 new), typecheck and lint clean.