feat: restore prepared mounts when cancelling unpublished layout work

This commit is contained in:
2026-10-23 01:34:55 +08:00
parent cd07c958c1
commit ed301b2eb4
3 changed files with 69 additions and 20 deletions
+3
View File
@@ -170,3 +170,6 @@ Runtime mutation entry points reject direct calls while refresh work is pending,
Mount preparation now has an explicit checkpoint that roots the previous dictionary, Mount payloads and metadata values. It can restore geometry/relations/registry after cancelling an unpublished layout, or release its roots after completion. Task cancellation moves from speculative preparation to immediately before the actual onUnmount callback, so cancelling preparation does not destroy the old occurrence's tasks.
Pending bridge layouts now retain a Mount checkpoint. cancel_layout_frame closes the VM continuation, restores the old Mount payloads/links/dictionary and marks the presentation dirty for a new solve; discarded lifecycle hooks do not run. Successful finalization releases checkpoint roots after callbacks. This restores speculative Mount preparation, not arbitrary application writes or already completed lifecycle callbacks.