I call this the bluebox problem. Back when I worked for SAP there used to be this control called the bluebox control that embedded a browser (shdocvw) into a C++/MFC app. Almost every single annoying UI bug came from that control. I see the same now in the other direction. Every 5 years we come up with the bright idea to use browser as a distribution engine for a UI surface that is rendered by a box. This has historically never worked. I just wanted to recount applets, activex controls, flash, flex (also flash), silverlight, flutter ... and now this. The issue is developer tooling, screen readers, browser extensions and all the other small things that are difficult to account for.
I am making it easy to embed coding mode AI agents into SaaS applications. We have a WinterTC compatible custom JS runtime that lets the agents write code to accomplish tasks and a SDK to embed agents into your SaaS apps. We help you write skill files on our coding agent against your API and use our frontend SDK to embed the agent into your app a.la Intercom. See https://uraiai.com/