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
Web client: right sidebar crashes — crypto.randomUUID unavailable in non-secure (plain HTTP) contexts #20464
The web client crashes when opening the right sidebar on a workspace served over plain HTTP on a LAN — the panel renders the fallback "The right sidebar hit an error" in place of the Vault/AI panel content.
Environment
Orca web client (web-index.html), served over plain HTTP (e.g. http://10.20.10.103:6768)
Chromium-based browser. Plain-HTTP pages are non-secure contexts, where crypto.randomUUID is hidden.
Repro
Open the web client URL on a LAN (plain HTTP).
Pair, then click a repo/workspace in the left sidebar (opens the right sidebar).
Right sidebar fails: "The right sidebar hit an error"; console shows:
TypeError: crypto.randomUUID is not a function
[right-sidebar] render crash contained by boundary TypeError: crypto.randomUUID is not a function
Root cause
Render crash originates in AiVaultPanel (right-sidebar/ai-vault-session-refresh.ts): the request token is minted with a raw crypto.randomUUID(), which does not exist in non-secure contexts. A repo-wide scan found ~20 more raw call sites across the renderer (skills, workspace-cleanup, sidebar, store/slices, native-chat, automations, settings, libs) plus one in shared/agent-status-observation.ts, all of which would throw the same way from the web client.
The codebase already has a context-safe helper — createBrowserUuid() (renderer/lib/browser-uuid.ts, falls back to getRandomValues/Math.random) — but most call sites were not using it.
Proposed fix
PR: Fixes # — migrate all renderer/scoped call sites to createBrowserUuid() (plus an equivalent inline fallback in the shared sequencer, which cannot import the renderer lib), and add a regression test that mints a request token with crypto.randomUUID unavailable.
This looks like the same plain-HTTP crypto.randomUUID crash that #22516 fixes (Remote Web loading over plain HTTP in a non-secure context). It may be worth checking against that PR once it lands.
Closing as completed after reading the issue discussion and checking the implementation currently on main.
The AI Vault request token and all renderer/shared UUID call sites now use the shared non-secure-context-safe generator. The merged PR ports the right-sidebar regression from #20465 and records before/after verification against the built web client.
Activity
AmethystLiang commentedon Sep 15, 2026
thanks for reporting. looking into it
mmarabel commentedon Sep 25, 2026
This looks like the same plain-HTTP
crypto.randomUUIDcrash that #22516 fixes (Remote Web loading over plain HTTP in a non-secure context). It may be worth checking against that PR once it lands.nwparker commentedon Oct 6, 2026
Closing as completed after reading the issue discussion and checking the implementation currently on
main.The AI Vault request token and all renderer/shared UUID call sites now use the shared non-secure-context-safe generator. The merged PR ports the right-sidebar regression from #20465 and records before/after verification against the built web client.
Fixed by #22516.