Save takes the element ids the store minted for the rows it made, so Package's dry-run gate sees no change

This commit is contained in:
soul 2026-11-28 05:13:45 +01:00
commit a14e763712

View file

@ -439,6 +439,10 @@ def _save_layout(context, collection, state):
shutil.rmtree(folder, ignore_errors=True)
raise
state.versions = json.dumps(outcome["versions"])
# The store minted an element id for every row made here: take them, so the next push names these rows, not new ones.
elements = {row["mount"]: row["element"] for row in _open(context, path)["layout"]["hardpoints"]}
for hp in state.hardpoints:
hp.element = elements[hp.mount_id]
if pending:
del collection["aetheria.pending"]
_redraw_grid(collection, state)