Repository navigation
Description
Operating system
Windows/macOS host; browser client on another machine via Tailscale/LAN
Orca version
Latest GitHub release v1.4.198 (2026-09-08). Also current main.
Details
Short summary:
#16232 / #16235 and #18096 / #18102 are real, but they are not a complete fix for Remote Web over plain HTTP. The official pairing UI still emits a non-secure origin, and the web bundle still calls crypto.randomUUID() in multiple other renderer paths.
How to reproduce:
- Desktop: Remote Orca server → Share this host → Other devices / Tailscale (
100.x). - Click Generate access link. The Open in browser URL is
http://<tailscale-ip>:<port>/web-index.html#pairing=...with pairing endpointws://...(not HTTPS/wss). - Open that URL from another device.
Actual result on v1.4.198:
window.isSecureContext === falseglobalThis.crypto.randomUUIDis undefined (Chromium hides it outside a secure context)- White screen:
store-E2SyM1oF.js:21 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
at oQ (store-E2SyM1oF.js:21:37448)
at store-E2SyM1oF.js:21:37479
Minified site (import-time, so the page never paints):
function oQ(e){return`${e}:${globalThis.crypto.randomUUID()}`}
const Hc=new iQ(oQ("renderer"));This is createAgentStatusAuthorityId('renderer') in src/shared/agent-status-observation.ts, constructed from src/renderer/src/lib/renderer-agent-status-observations.ts.
Changing the generated URL to https://<same-ip>:<port>/... is not a workaround: port 6768 speaks plain HTTP (ERR_SSL_PROTOCOL_ERROR). http://127.0.0.1 and native orca:// pairing still work.
Why #16235 / #18102 are incomplete:
#16235injectscreateBrowserUuidonly into the renderer authority singleton. The shared helper default remainsglobalThis.crypto.randomUUID().#18102only replaces the AiVault refresh token.- The same shipped
store-*.jsstill contains other nakedcrypto.randomUUID()calls (workspace-cleanupscanId/ consent / snapshot prune, etc.). Those throw after bootstrap. - The repo already documents this as a class of failures in
src/renderer/src/lib/non-secure-context-crypto.repro.test.ts(missingrandomUUIDandcrypto.subtle). Clipboard over the same origin was#10532. - The product still recommends this origin: the generator's Tailscale/LAN Open in browser field.
Expected result:
Either:
- Renderer/web never calls secure-context-only Web Crypto directly (
crypto.randomUUID, unwrappedcrypto.subtle). All UUID generation goes throughcreateBrowserUuid. The existing non-secure-context repro imports the real web/store entry and the later UUID call sites, not just the helper; and - Non-loopback pairing does not advertise a browser URL that cannot be a secure context. Terminate TLS (and use
wss) for Tailscale/LAN browser access, or stop offering Open in browser for those addresses and keeporca:/// localhost only.
Related:
#16232white-screen (still open;#16235unmerged, last updated 2026-08-24)#18096Agents sidebar (still open;#18102unmerged)#10532clipboard on the same insecure origin (closed)
This is not a user misconfiguration. The desktop generator produced the http://100.x link.
Activity
aron-intframe commentedon Sep 9, 2026
Reproduced the mechanism independently on a Tailscale
100.xorigin. Adding two things: the throw is at import time, which is why it is a white screen rather than a degraded feature, and127.0.0.1is exactly the origin that hides it from dev and CI.What I ran. A static page served over plain HTTP on port 6768, bound to loopback, a Tailscale
100.xaddress and a public address on the same host. The module runs the minified shape from the report at module scope (function oQ(e){return${e}:${globalThis.crypto.randomUUID()}}/const Hc=new iQ(oQ("renderer"))) and only then writes the app markup. Loaded with Playwright, Chromium 151.0.7922.34:All three URLs return HTTP 200 (
curl -o /dev/null -w %{http_code}gives 200 on loopback and on 100.123.150.77).crypto.subtleis undefined on the same origins, so this really is a class and not one call site: anything that later reaches forsubtleon the browser path breaks the same way.Why it survives review. Loopback is a secure context by definition, so a developer or a CI job that opens the web bundle on
127.0.0.1getsrandomUUIDand paints. The only origins that fail are the ones the pairing UI actually advertises.Import-time, not use-time. On
mainat98df62d8ff72cd51c3333751624efa3cf1a96041,src/shared/agent-status-observation.ts:196is still the naked call, andsrc/renderer/src/lib/renderer-agent-status-observations.tsconstructs at module scope:The doc comment above it says "Nothing reads it yet (STA-4293)". So the value that stops the page from painting is one nothing consumes yet. Computing the authority id lazily on first read paints the page on the same insecure origin:
That is not the fix -- the other
crypto.randomUUID()call sites in the bundle still throw when they run, and the pairing UI still advertises a non-secure origin. But it converts "never paints" into "one feature fails", which is a different severity, for one line.Catching the class in CI. HTTP status cannot see this; both origins are 200 with a parsed DOM. What separates them is paint entries:
The existing
non-secure-context-crypto.repro.test.tsdeletes the APIs in a unit test, which catches helpers but not import-time call sites in the shipped bundle. A browser check pointed at a non-loopback plain-HTTP origin catches both, and would have caught #16232 too.We hit this exact shape a lot (200 back, DOM present, nothing drawn); the check we use for it is in our repo (ours): https://github.com/aron-intframe/agent-guards/blob/main/guards/paint-check.js