Skip to content

v1.5.3-beta.3

Pre-release
Pre-release

Choose a tag to compare

@SH1FT-W SH1FT-W released this 04 Sep 05:41
· 181 commits to main since this release

Follow-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.create linking 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/not Jinja 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_variables node 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.