MakePad genui: dev defines widget library(framework defines standard widgets), Ai generates ui on the fly based on context.
Apply to Robrix Ai chat by defining widgets and having them generated by the Ai on the fly.
The most basic widget is just text, corresponding to a text-only reply. Others could be whatever makese sense for the app(draft message with "send to chat" button)?
Requires a way to insert widget dynamically into the UI. With Makepad I guess that means using shaders or the re-load functionality. On the web it would be a trivial manipulation of the DOM.