You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(voice): implement Whisper model download management - #758
- Introduce `WhisperModelDownloadManager` to centralize the Whisper model download lifecycle.
- Update `VoiceSettingsSection` to trigger downloads via the new manager.
- Add UI notifications to provide feedback for started, completed, and failed downloads.
- Define new internal and user-facing events to track and communicate download progress.
- Add internationalized strings for download status messages across all supported locales.
AppConfig.updateField updates the in-memory cache but catches and only logs YAML write failures (AppConfig.kt:1170-1179). This code therefore deletes the previous model and emits a successful completion even when the new path was not persisted; after restart, the configured path can still point to the now-deleted model. Use a persistence API that reports/throws failures, and only delete the previous model and emit completion after the write succeeds.
This issue also appears on line 85 of the same file.
Only preferring an active state hides retained failures after navigation. If tier B fails while tier A remains configured, reopening this screen selects A, so B's downloadError is filtered out; selecting B then immediately calls clearError(), meaning the Settings UI never displays the failure. Initialize from the manager's tier for both active and failed states.
Transient StateFlow transition can lose completed download state
A StateFlow does not guarantee observing this active→null transition: it conflates rapid updates. If the selected model file already exists (for example after the config was reset), download() returns immediately and the collector may only see null; lastActiveTier is never set, so the screen keeps the stale model path until it is recreated. Represent completed success (including its path) as a terminal manager state, or otherwise expose a replayable completion value instead of inferring success from a transient transition.
There is no consumer of this event in the repository; the only other references are its import/emission and a VoiceSettingsSection comment explaining that the screen deliberately does not collect it. Consequently it cannot refresh Settings as documented and adds a dead event contract. Either wire it to a real consumer (with replay if it must survive navigation) or remove the event and emission.
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
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.
Summary
WhisperModelDownloadManagerto centralize the Whisper model download lifecycle.VoiceSettingsSectionto trigger downloads via the new manager.Related Issue(s)
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes