-
Notifications
You must be signed in to change notification settings - Fork 996
Open
Labels
Description
Proposal: Explicit "root" ID Enforcement
Reason
A surface is not valid for rendering until a component with id="root" is defined. Currently, the renderers perform a simple null check, leading to inconsistent "empty" states or flicker while the stream is loading.
Design
- Ready State: Add an
isReadysignal toSurfaceModel(orSurfaceComponentsModel) that specifically tracks the presence of therootID. - Progressive Feedback: Update
A2uiSurfaceto checkisReady. While false, it should render a standardized "Loading Surface" state or a shimmer effect. - Enforcement: Log a warning if components are added to a surface that has been active for a significant time without a root component, aiding developer debugging.
Key Files
renderers/web_core/src/v0_9/state/surface-model.tsrenderers/react_prototype/src/A2uiSurface.tsx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo