Downloaded voices cannot be deleted (storage leak + missing edge cases) #29
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Voices can be downloaded but not deleted. With ~30 MB per voice and a favourites list that only grows, this is an app-storage leak with a UI
debt on top.
What is missing
Edge cases that need an answer before the button ships
Acceptance
Deleting a voice removes its bytes (verify with the storage figure in settings), and all four cases above have a defined, tested behaviour.
Note: raised because a download-only settings surface becomes a landfill and users cannot recover the space.
Agree — this should come before favourites. Notes from the engine internals:
piper-tts-webalready exposesremove(voiceId); our worker protocol hasREMOVE, but the adapter never calls it. Small change.REMOVEdeletes the voice style; the 92 MB model is shared and should be a separate “delete model” action (purging the model while a voice is active needs the same fallback rules).phonon-tts-v1; deleting the cache entries by URL works. Model deletion needsclearCache()(all) or a scoped purge; offer “clear Phonon download” explicitly.navigator.storage.estimate()is origin-wide, not plugin-only. Show it as “browser storage used by this origin” plus per-voice sizes; don't claim the number is only ours.Small enough to do in one focused pass; it also gives the favourites UI a clean lifecycle to build on.
Delivered: per-voice delete, shared-model purge for LibriTTS/Phonon, active-voice fallback and storage estimate; favourites/chat cleanup landed with #28.