Skip to content

Fix WebUI ID generation over plain HTTP - #1265

Merged
0xShug0 merged 1 commit into
mainfrom
fix/webui-http-uuid-1263
Nov 12, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/webui-http-uuid-1263

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Voice Library uploads, Arena Add, and several TTS actions throw crypto.randomUUID is not a function when the WebUI is opened over remote HTTP, where that API is unavailable.

Generate UUID-v4 IDs through one shared utility using crypto.getRandomValues(), replace all 11 production call sites, and rebuild the bundled WebUI. Existing IDs and stored libraries remain compatible; no database migration is required. Changes are UI-only.

Validation:

  • Reproduced the original error in Chrome over LAN HTTP.
  • The new utility generated 10,000 valid, unique UUIDs on both localhost and LAN HTTP, including when native randomUUID was unavailable.
  • Svelte checks: zero errors or warnings; production UI build passed.
  • All four existing speaker/project migration tests passed.

Full Library-upload and Arena-Add interactions have not been retested.

Closes #1263.

@0xShug0
0xShug0 merged commit 2faaab8 into main Nov 12, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/webui-http-uuid-1263 branch November 12, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"TypeError: crypto.randomUUID is not a function" error appears in multiple places within the WebUI

1 participant