feat: checkpoint mount preparation and defer task cancellation to unmount

This commit is contained in:
2026-10-23 01:33:58 +08:00
parent 8f7255f4cf
commit cd07c958c1
2 changed files with 140 additions and 2 deletions
+3
View File
@@ -167,3 +167,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.
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.