It is not an LLM comment.
I am interested in immediate mode GUIs but I think we need a different paradigm for GUIs that is less synchronous from a user perspective.
Encoding behaviour in GUI code is complex due to state management and complexity. See jQuery.
In most GUIs as a user you do an operation and wait for it to complete (direct manipulation). You can't queue operations unless you code. I haven't seen macro recording done well.