-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
Proposal: Implement sendDataModel Synchronization
Reason
The createSurface message includes a sendDataModel flag. When true, the client is obligated to send the full state of the surface's data model back to the server with every user action. This ensures the agent has the latest context (e.g., form inputs) without requiring a server-side state mirror.
Design
- State Tracking: Update
SurfaceModelto store thesendDataModelboolean from thecreateSurfacemessage. - Action Enrichment: Modify
ComponentContext.dispatchActionto check this flag. - Metadata Payload: If enabled, the dispatcher should call
surface.dataModel.get('/')and attach the result to the outgoing action object under a standard key (e.g.,a2uiClientDataModel). - Transport Integration: Ensure the
MessageProcessoraction handler propagates this metadata to the underlying transport (A2A, AG-UI, etc.).
Key Files
renderers/web_core/src/v0_9/state/surface-model.tsrenderers/web_core/src/v0_9/rendering/component-context.ts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo