Enable partial canvas editing and complete detached views in the project runtime

This commit is contained in:
2026-11-09 03:27:47 +08:00
parent fff6213714
commit ef08222915
13 changed files with 140 additions and 60 deletions
+13 -2
View File
@@ -43,5 +43,16 @@ deletions, ownership/reference changes, uploads, imports and AI admission wait.
replacing local edits. `engine.loading.complete(document, versions, {sourceToken})`
validates the full capture and releases scheduling only after its cut is durable.
Use `{fresh:true}` only for an explicitly fresh complete read; conflicts require the
existing reviewed recovery flow. Endoleap's page still uses read-only loading previews;
page integration and foreground/background source handoff remain unfinished.
existing reviewed recovery flow. `engine.loading.resume()` coalesces a fresh complete
read through the project's persistence adapter and persists completion before resolving.
`workspace.resumeLoading(projectId)` delegates to that owner and reports current-identity
failures. Closing the project aborts the read and saves the recoverable prefix; detaching
a view does not close its engine.
Endoleap's page now opens the same project engine for a validated prefix, allows the
restricted field/geometry edits above, coalesces incoming prefixes, and preserves its
textarea, history and viewport when the full model arrives. App navigation cancels the
view's stream and asks the retained project owner to complete through a fresh read.
Reload recovers the durable prefix when that project is opened again. This is not a
persistent HTTP cursor or a workspace-wide startup scan; partial-scope ACK/chunk
interleaving and broader structural permissions remain unfinished.