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
@@ -515,3 +515,6 @@ Viewport refresh now advances through ReplSession's saved refresh state on worke
Runtime mutation entry points reject direct calls while refresh work is pending, before executing source or changing metadata; task polling defers. The API worker drains the saved refresh before accepting those mutations, keeping the runtime usable. Incremental refresh keeps the prior complete document map until a stable pass, including across window traversal boundaries where no VM read-only frame is currently active.
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.