Hi team! 👋 Love what you're building with OpenUI. I had a question about a potential feature: A2UI allows updating specific components without regenerating the entire UI:
- Each component has a unique ID
- Send a component definition with an existing ID → updates that component
- Send new IDs → adds components
- Remove IDs from parent's children → deletes components
Current OpenUI behavior
From reading the source, OpenUI's StreamParser accumulates text and rebuilds the full AST tree on every chunk via buildResult(). The Renderer receives the complete response string and re-parses the entire tree each time. There's no mechanism to patch a single component in-place.
Use case
For long-lived interactive UIs (dashboards, multi-step forms, etc.), being able to update a single component without regenerating the full OpenUI Lang output would reduce token usage and improve responsiveness.
Question
Is this something on the roadmap, or is the current full-reparse design intentional for OpenUI's target use cases?