Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe authority ID factory now accepts an optional UUID generator while retaining its default cryptographic UUID behavior and role-prefixed format. Renderer status observations pass the browser UUID generator during authority initialization. Tests reset modules and verify that initialization produces a correctly formatted Merge Risk: ⚪ Minimal · up to This localized change prevents a renderer startup failure in browsers without crypto.randomUUID while preserving existing behavior elsewhere; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Flagging overlap rather than closing: #22516 now covers this bug end to end — every The AI Vault request-token test from #20465 has been ported into #22516, so that coverage is not lost. A maintainer should close this in favour of #22516 unless it covers something #22516 misses — if it does, please say so on #22516. |
|
Closing as superseded by #22516, which is merged and present on I checked this PR's scope and discussion against the merged implementation. The replacement explicitly supersedes this PR and covers its requested behavior. Thanks for the contribution; the branch is preserved. |
ELI5
Plain-HTTP browsers can expose
crypto.getRandomValueswithout exposingcrypto.randomUUID. Orca created the renderer's agent-status authority ID while its module loaded, so that missing method could blank the web client before the UI started. The renderer now uses Orca's existing browser-safe UUID creator for that one ID.What Changed
createAgentStatusAuthorityIdaccept an optional UUID creator while preserving its nativecrypto.randomUUIDdefault.createBrowserUuidwhen the renderer creates its import-time authority singleton.Why
This fixes the startup crash at its runtime boundary without copying another UUID fallback into shared code. Main-process agent hooks keep their existing default behavior, and authority IDs remain distinct per process instance.
Linked Issue
Fixes #16232
Visual Proof
N/A — this changes no appearance or interaction design; it prevents an import-time web-client crash.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
RED:
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/non-secure-context-crypto.repro.test.tsfailed only the new case withTypeError: globalThis.crypto.randomUUID is not a functionatcreateAgentStatusAuthorityId.GREEN: the same focused suite passed 5/5 on Node 24.18.0.
Adjacent renderer/shared matrix: 7 files, 55 tests passed.
pnpm lintpassed, including 89 reliability gates and the max-lines ratchet.pnpm typecheckpassed; targeted Node and web typechecks also passed.env -u HISTFILE ZDOTDIR=/var/empty pnpm testpassed 6,134 files and 57,704 tests, with 39 files and 239 tests skipped by the repository.pnpm buildpassed for desktop, web, relay, CLI, and native macOS targets.Automated validation ran on macOS. Linux, Windows, SSH/paired runtime, and plain-HTTP browser pairing were not manually exercised.
AI Disclosure
OpenAI Codex (GPT-5) was used to investigate, implement, test, and self-review this change.
Review
randomUUIDglobal. Shared uniqueness coverage and renderer observation tests remain green.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)