Skip to content

Fix model re-downloading on every launch#54

Closed
rgkirch wants to merge 1 commit intowatzon:mainfrom
rgkirch:fix/model-reload-on-launch
Closed

Fix model re-downloading on every launch#54
rgkirch wants to merge 1 commit intowatzon:mainfrom
rgkirch:fix/model-reload-on-launch

Conversation

@rgkirch
Copy link
Copy Markdown

@rgkirch rgkirch commented Apr 9, 2026

Warning: This code is all claude. It works for me though. Feel free to reject it if you don't like low effort contributions. The weird thing about this is that I only have the issue when I build the app locally so; Idk what the actual bug is but it went away with this change. Probably definitely reject this pr. Idk.

TranscriptionService has its own KMPTranscriptionRuntimeBridge instance separate from ModelManager's. Its internal Kotlin runtime keeps an installedModels list that starts empty and was never refreshed before loadModel() was called. The runtime would always respond MODEL_NOT_INSTALLED, triggering attemptWhisperModelRepairAndReload which deletes and re-downloads the model on every launch.

Fix by refreshing the installed model index before each load.

TranscriptionService has its own KMPTranscriptionRuntimeBridge instance
separate from ModelManager's. Its internal Kotlin runtime keeps an
installedModels list that starts empty and was never refreshed before
loadModel() was called. The runtime would always respond MODEL_NOT_INSTALLED,
triggering attemptWhisperModelRepairAndReload which deletes and re-downloads
the model on every launch.

Fix by refreshing the installed model index before each load.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@watzon
Copy link
Copy Markdown
Owner

watzon commented Apr 13, 2026

Thanks for tracking this down. I’m going to close this PR because we’re rolling the app back to a single mac-native architecture, and this fix targets the Kotlin runtime bridge path that is being removed.\n\nThe symptom made sense on the KMP branch, but it won’t be part of the codebase once the rollback lands.

@watzon watzon closed this Apr 13, 2026
@rgkirch
Copy link
Copy Markdown
Author

rgkirch commented Apr 13, 2026

Thanks for following up. GLHF I have a diy script that’s working well for me now so. So long and have fun!

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.

2 participants