Scope host UI focus and curve-budget fallback to their own lifetimes

This commit is contained in:
2026-11-11 02:57:03 +08:00
parent 680aea0aa7
commit 0ce73a6854
8 changed files with 67 additions and 24 deletions
+12 -3
View File
@@ -1008,8 +1008,14 @@ nodes/edges stay in React Flow's lookup; geometry, dragging, model data and hidd
state are not fabricated. A view-local weak cache preserves tagged row identity,
and ending an owner returns the original row. Detached focus is retired even
when removing a renderer emits no blur. Flags never enter a Root or file.
Unscoped focused inputs/portals and exhausted/unknown paint-budget sentinels retain
the conservative whole-graph fallback; their missing ownership is not guessed.
Application panels/toolbars explicitly mark `data-canvas-ui-view` with their
current view ID, including portalled dialogs. Their inputs have a lifetime
independent of node culling; focusing them does not pin native nodes. Registered
node portals still declare their explicit target. Only unscoped third-party
inputs/portals keep the conservative whole-graph compatibility fallback; missing
ownership is not guessed. Exhausting curve-inspection work retains the edge
layer and its endpoints, while unrelated nodes remain culled. This can still
retain many endpoints/edges; it is not a constant-cost or complete geometry proof.
React Flow 12.12.1 does not expose a retained-ID selector. The app-only
`scripts/loaders/xyflow-retained.cjs` extends its two ESM visibility selectors at
@@ -1026,7 +1032,10 @@ native empty-pane click. Reports include `inputCheck.beforeEditing` and
`inputCheck.duringEditing`, `inputCheck.offscreenEditing` and
`inputCheck.offscreenPortal`; this preflight is outside the copy timing window.
The screen-pan probes preserve native IME and an unsaved Portal title, bound
mounted owners, check release after blur, and remount saved content. Add
mounted owners, check release after blur, and remount saved content. Independent
AI-panel focus/pan is recorded as `panelFocusedNodes`/`offscreenPanel`; blur saves
settings without starting a generation task. The actual-page suite also exceeds
the 4096-edge inspection limit and checks unrelated offscreen cards stay culled. Add
`--turbopack` to the page/performance runner to use the app's default compiler.
Turbopack fixtures live temporarily under the physical dependency workspace so
its filesystem fence can resolve Next; the exact unique directory is removed in