You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
layout: flows that move to another stock face lose their order #446
When incremental layout moves a stock's flows to a different face, it loses their left-to-right (or top-to-bottom) order and reorders them alphabetically.
Example
A stock has three flows on its bottom face at x=100, 200, 300.
After a chain is removed, layout moves them to the right face and sorts them by y, the natural axis of the right face.
All three still have the bottom face's y coordinate, so the keys tie and the order falls back to the flow names.
Why it matters
Flows jump to positions the modeler did not arrange.
Found in code review of the layout change that routes side flows perpendicular to aging chains, not in a real model.
Fix
Sort by the old face's axis when the face changes, or by whichever axis the old attachment points actually vary along.
changed the title [-]layout: reorder_attachments_by_position loses visual ordering when flows change faces[/-][+]layout: flows that move to another stock face lose their order[/+]on Oct 12, 2026
reorder_attachments_by_position no longer exists (removed in 1da80fc, #1066). In incremental layout only newly created flows read classify_flow_sides (src/simlin-engine/src/layout/incremental.rs:2553-2567); every drawn flow keeps its face and slot byte for byte, pinned by a_flow_whose_sibling_changes_is_preserved and a_flow_the_patch_does_not_touch_is_preserved in layout_flow_tests.rs.
Activity
[-]layout: reorder_attachments_by_position loses visual ordering when flows change faces[/-][+]layout: flows that move to another stock face lose their order[/+]bpowers commentedon Oct 12, 2026
Closing: already fixed on main.
reorder_attachments_by_positionno longer exists (removed in 1da80fc, #1066). In incremental layout only newly created flows readclassify_flow_sides(src/simlin-engine/src/layout/incremental.rs:2553-2567); every drawn flow keeps its face and slot byte for byte, pinned bya_flow_whose_sibling_changes_is_preservedanda_flow_the_patch_does_not_touch_is_preservedin layout_flow_tests.rs.