Adom Hydrogen
Public Made by Adomby adom
The whole Adom experience as one signed native app: your editor, your AI agent, and the full electronics design toolchain, running locally on your own machine.
Web View proxy mode can't host the wiki: the page's path is /webview-proxy
Web View proxy mode can't host the Adom wiki: the page always believes its path is /webview-proxy.
Found while porting the webview postMessage action (adom/wiki#222) to HD, 1.0.584 on ConfRoomROG.
HD's proxy mode points the iframe at the control API: http://127.0.0.1:47084/webview-proxy?url=<page>. That handler fetches one HTML document and returns it.
- Fixed in 1.0.584: the page's root-relative assets resolved against 127.0.0.1 and 404'd, so the wiki had no styles and no script. Proxied HTML now gets a
<base href>at the page's real address. - Still broken:
location.pathnameis/webview-proxy. The wiki routes by path, so:drive pageanswers{ "path": "/webview-proxy", "ref": null };drive ready --viewer 3dfails with "3d viewer start did not happen within 30 s";- orbit and datasheet calls fail the same way.
eval(which answers unknown method) and the timeout cases behave correctly. Requests the page makes (API, GLB) also go out from the loopback origin, so CORS may block them too.
With proxy mode off (the default), the whole adom/wiki#222 test list passes on 1.0.584.
What a real fix needs: a path-preserving proxy, for example /webview-proxy/<scheme>/<host>/<path>?<query>, that rewrites or forwards sub-requests so the page keeps its own path. The in-page navigation tracking in PanelWebView (onParentProxy, which checks pathname === '/webview-proxy') would have to follow it.
Until then, an agent that drives wiki pages should leave proxy mode off.