You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Web client white-screens over HTTP when crypto.randomUUID is unavailable #16232
The web client in v1.4.188 crashes during startup when opened over an HTTP private-IP pairing link in a browser context where globalThis.crypto.randomUUID is unavailable. The page remains blank.
Open the generated http://<private-ip>:6768/web-index.html#pairing=... link in a browser where the HTTP origin is not a secure context.
Observe a blank page.
Actual result
Console error from the v1.4.188 asset:
store-Bjd1W1Fv.js:19 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
at N8 (store-Bjd1W1Fv.js:19:96047)
The WebSocket server is healthy and responds with 101 Switching Protocols; the crash is strictly in the browser client bootstrap.
Expected result
The browser client should load and pair over an HTTP private-IP link, or show an actionable HTTPS requirement. It should not white-screen.
Suggested fix
Feature-detect globalThis.crypto.randomUUID and use a UUID fallback when it is unavailable, rather than assuming the API exists.
Environment
Server: Linux x86_64, Orca v1.4.188, extracted AppImage deployment
Access path: HTTP private-IP pairing URL
Regression: previous v1.4.180 web client did not exhibit the startup white screen in this environment
Workaround
Rollback the server to v1.4.180, or expose the web client through HTTPS.
Reacted by Matthew Hensley, Miłosz, Skyblue and sbyinin
I’m working on a regression-test-first minimal fix by extending the existing src/renderer/src/lib/non-secure-context-crypto.repro.test.ts coverage for the import-time authority singleton crash.
Example from the official generator (pairing token omitted): http://100.81.158.106:6768/web-index.html#pairing=... with connection address Tailscale (100.81.158.106).
That CGNAT/LAN http:// origin is not a secure context, so Chromium leaves globalThis.crypto.randomUUID undefined. The web client then white-screens during store bootstrap:
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 (module-eval, so the page never paints):
This is the product’s intended Tailscale/LAN pairing path, not a user forcing HTTP. localhost/https work because those are secure contexts.
Same-bundle already has createBrowserUuid (src/renderer/src/lib/browser-uuid.ts) with a getRandomValues fallback; the import-time agent-status authority ID does not use it.
#16235 would cover this crash and is still unmerged. #18096/#18102 are a later Agents-sidebar crypto.randomUUID() call and would not prevent this white screen.
Reproduced on latest GitHub release v1.4.198 (2026-09-08), not just v1.4.188.
The desktop pairing UI still emits http://<tailscale-ip>:6768/web-index.html#pairing=.... Opening that in a browser on another device white-screens with:
store-E2SyM1oF.js:21 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
https://<same-ip>:6768/... is not a workaround: port 6768 speaks plain HTTP (ERR_SSL_PROTOCOL_ERROR). #16235 is still unmerged, so the Other devices → Open in browser Tailscale/LAN path is broken on current release.
Worked: native orca:// client pairing, and http://127.0.0.1:6768 on the host itself.
Activity
psh4607 commentedon Aug 24, 2026
I’m working on a regression-test-first minimal fix by extending the existing
src/renderer/src/lib/non-secure-context-crypto.repro.test.tscoverage for the import-time authority singleton crash.mzdluo123 commentedon Sep 9, 2026
Confirmed still reproduces on current Remote Web pairing, and the HTTP origin is produced by Orca itself.
The desktop Remote Orca server UI (
Share this host→Publish this app as a server→ Other devices / Tailscale) generates the browser URL as:Example from the official generator (pairing token omitted):
http://100.81.158.106:6768/web-index.html#pairing=...with connection address Tailscale (100.81.158.106).That CGNAT/LAN
http://origin is not a secure context, so Chromium leavesglobalThis.crypto.randomUUIDundefined. The web client then white-screens during store bootstrap:Minified site (module-eval, so the page never paints):
This is the product’s intended Tailscale/LAN pairing path, not a user forcing HTTP.
localhost/httpswork because those are secure contexts.Same-bundle already has
createBrowserUuid(src/renderer/src/lib/browser-uuid.ts) with agetRandomValuesfallback; the import-time agent-status authority ID does not use it.#16235 would cover this crash and is still unmerged. #18096/#18102 are a later Agents-sidebar
crypto.randomUUID()call and would not prevent this white screen.mzdluo123 commentedon Sep 9, 2026
Reproduced on latest GitHub release
v1.4.198(2026-09-08), not justv1.4.188.The desktop pairing UI still emits
http://<tailscale-ip>:6768/web-index.html#pairing=.... Opening that in a browser on another device white-screens with:https://<same-ip>:6768/...is not a workaround: port 6768 speaks plain HTTP (ERR_SSL_PROTOCOL_ERROR).#16235is still unmerged, so the Other devices → Open in browser Tailscale/LAN path is broken on current release.Worked: native
orca://client pairing, andhttp://127.0.0.1:6768on the host itself.mzdluo123 commentedon Sep 9, 2026
Follow-up for the incomplete-fix scope (remaining store
crypto.randomUUID()call sites + official Tailscale HTTP browser URL): #19667