Nancy1mo ago
Version: 2026.10.25.3 (Windows 11)
Steps to reproduce
1. Settings › API keys: an ai33.pro key is saved and working.
2. Open Settings › Template and pick a template.
3. In Voice › Online voice, click "Choose" (or "Change").
4. In the Online voice library, pick an ai33 voice and click "Use this voice".
Expected
The voice library closes, Settings stays open showing the new online voice,
and the footer says "Unsaved changes" so I can press "Save template".
Actual
The voice library closes and the whole Settings dialog closes with it.
"Save template" is never reachable. Opening Settings again shows the template
without the voice: the choice is lost. It happens every time.
Likely cause
The voice library (VoiceDialog, a <dialog> opened with showModal) is rendered
inside the Settings <dialog> (SettingsDialog, onClose={close} onCancel={close}).
"Use this voice" calls onPick() and then onClose(). The inner dialog's close
event appears to reach the outer dialog's onClose as well, so Settings closes
and the unsaved template draft is dropped. The template is only written by
"Save template" (api.saveBrandKit), so nothing is persisted.
Workaround
Choosing the voice in the composer (new video) and making it the template's
default online voice works, because that path saves the template directly.
Suggestion
Stop the inner dialog's close/cancel from reaching Settings, or save the voice
to the template as soon as it is picked in Settings.