Skip to content

Add UI to delete downloaded models - #211

Merged
jatinkrmalik merged 2 commits into
VocaHQ:mainfrom
Mr-Sunglasses:delete-model-from-ui
Aug 11, 2026
Merged

Add UI to delete downloaded models#211
jatinkrmalik merged 2 commits into
VocaHQ:mainfrom
Mr-Sunglasses:delete-model-from-ui

Conversation

@Mr-Sunglasses

@Mr-Sunglasses Mr-Sunglasses commented Aug 11, 2026

Copy link
Copy Markdown
Member

Demo

Screen.Recording.2026-08-11.at.3.07.39.PM.mov

Summary

  • Settings > Models could download and load models but had no way to remove one, even though ModelManager already had an unused deleteModel implementation.
  • Adds a trash button on downloaded, inactive models in ModelRow, behind a confirmation alert. Hidden for the active model, a model that's mid-load/download, and OS-managed Apple Speech (nothing on disk to delete).
  • ModelManager.deleteModel is now async so removing a large model doesn't block the Settings UI on the main thread, and it throws instead of silently no-op'ing when a Parakeet/sherpa-onnx catalog lookup misses.
  • AppState.deleteModel refuses to delete the active model or a model that's currently loading/downloading, surfacing a clear error instead.

Test plan

  • swift build succeeds
  • swift test — all 285 tests pass, including new coverage: successful delete, refusing to delete the active model, refusing to delete a loading model, and surfacing an underlying delete error
  • Manually verify in the app: download a model, delete it via the trash button, confirm the alert and resulting state

Settings > Models had download/load actions but no way to remove a
downloaded model to free disk space, even though ModelManager already
had an unused deleteModel implementation. Wires it up: a trash button
appears on downloaded, inactive models (not the active one, not one
mid-load/download, not OS-managed Apple Speech), behind a confirmation
alert. Deletion now runs off the main thread so removing a large model
doesn't stall the Settings UI.
@github-actions github-actions Bot added app bug Something isn't working ci and removed ci labels Aug 11, 2026
@jatinkrmalik

Copy link
Copy Markdown
Member

@Mr-Sunglasses LGTM but there are some merge conflicts that you may need to resolve.

jatinkrmalik
jatinkrmalik previously approved these changes Aug 11, 2026
@Mr-Sunglasses

Copy link
Copy Markdown
Member Author

@Mr-Sunglasses LGTM but there are some merge conflicts that you may need to resolve.

@jatinkrmalik fixed the merge conflicts, we are good to go 🚀

@jatinkrmalik
jatinkrmalik merged commit 66868c7 into VocaHQ:main Aug 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants