Include community PRs: CORS restriction, language passthrough, model size fix, TS/mediaDevices guards#1
Merged
Patrick-DE merged 2 commits intomainfrom Feb 19, 2026
Conversation
…ne#88, jamiepine#91, jamiepine#95, jamiepine#97) Co-authored-by: Patrick-DE <14962702+Patrick-DE@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Include multiple pull requests into voicebox
Include community PRs: CORS restriction, language passthrough, model size fix, TS/mediaDevices guards
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies five open community PRs from jamiepine/voicebox (jamiepine#78, jamiepine#88, jamiepine#91, jamiepine#95, jamiepine#97).
Backend
allow_origins=["*"]with an explicit allowlist (localhost:5173,localhost:17493,tauri://localhost,https://tauri.localhost). Extended viaVOICEBOX_CORS_ORIGINSenv var (comma-separated).languageparam. AddsLANGUAGE_CODE_TO_NAMEmapping (ISO 639-1 → full name) and passes it togenerate_voice_clone()/model.generate(lang_code=).create_voice_prompt_for_profile()was called beforeload_model_async(model_size), causing it to fall back to 1.7B internally. Reordered so the correct model is loaded first.Frontend
FloatingGenerateBoxnow syncs the language dropdown to the selected profile's language viauseEffect.navigator.mediaDevicesguard (fix: guard getUserMedia call against undefined mediaDevices in non-secure contexts jamiepine/voicebox#78): Prevents crash when component mounts in an insecure context or non-browser environment.useEffectdep array (fix: CoreAudio device enumeration, input device visibility, AudioTab UX jamiepine/voicebox#91):[platform.metadata.isTauricheckOnMountcheckForUpdates]→[platform.metadata.isTauri, checkOnMount, checkForUpdates].@ts-expect-error(fix: CoreAudio device enumeration, input device visibility, AudioTab UX jamiepine/voicebox#91): Removed three suppression comments inApp.tsx;__voiceboxServerStartedByAppis already declared inglobal.d.ts.StoryTrackEditorhandleTimelineClicktyped asMouseEvent<HTMLDivElement>→MouseEvent<HTMLElement>.Tests
backend/tests/test_cors.py(security: restrict CORS to known local origins jamiepine/voicebox#88): validates allowed/blocked origins andVOICEBOX_CORS_ORIGINSparsing edge cases against a minimal FastAPI mirror of the CORS config.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.