From 0df423a84f8f32e34fb5301d0eea2fabbffadbba Mon Sep 17 00:00:00 2001 From: archipelago Date: Thu, 8 Oct 2026 12:00:17 -0400 Subject: [PATCH] fix(ui): support secure UUIDs on LAN HTTP Avoid eager consent component crashes and registration approval failures where crypto.randomUUID is unavailable. Share the companion audio CSPRNG fallback, preserve UUIDv4/session semantics and fail closed without secure randomness. Validation: 24 focused UUID, consent mount, registration recovery and companion audio tests passed. Independent review passed; full UI typecheck/build qualification remains in progress. --- .../components/MediaRegistrationConsent.vue | 3 ++- .../MediaRegistrationConsentHttp.test.ts | 19 +++++++++++++ .../useMediaRegistrationBridge.test.ts | 13 +++++++++ neode-ui/src/composables/useCompanionAudio.ts | 12 ++------- .../composables/useMediaRegistrationBridge.ts | 5 ++-- .../src/utils/__tests__/secureUuid.test.ts | 27 +++++++++++++++++++ neode-ui/src/utils/secureUuid.ts | 13 +++++++++ 7 files changed, 79 insertions(+), 13 deletions(-) create mode 100644 neode-ui/src/components/__tests__/MediaRegistrationConsentHttp.test.ts create mode 100644 neode-ui/src/utils/__tests__/secureUuid.test.ts create mode 100644 neode-ui/src/utils/secureUuid.ts diff --git a/neode-ui/src/components/MediaRegistrationConsent.vue b/neode-ui/src/components/MediaRegistrationConsent.vue index 4f634c16..70e13b8e 100644 --- a/neode-ui/src/components/MediaRegistrationConsent.vue +++ b/neode-ui/src/components/MediaRegistrationConsent.vue @@ -41,6 +41,7 @@