mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 09:28:22 +00:00
* fix(engines): let users delete an engine VoiceStudio installed (#4490) Nothing in the UI called the sidecar uninstall route, so a one-click engine (MOSS-SoundEffect and its ~11 GB of weights, IndexTTS, CosyVoice, ...) could never be removed, though the engine docs promised an Uninstall button. - The shared install control offers Delete, with a confirmation, for an app-managed install (never a user's own clone); Settings > Models shows it on each installed one-click engine and Tools > Sound effects at the top. - Uninstall stops the engine's running sidecar first, refuses while it is mid-request (409), and reports files it could not delete (500 with the folder) instead of a silent partial delete. - Engine docs name the Delete button. * fix(mobile): never leave a model download stuck at Waiting for Wi-Fi Wi-Fi-only downloads parked on the network policy (metered or hotspot Wi-Fi, cellular with Mobile data off) had no way forward and a generic label. Say why they wait, offer Download on this connection, apply the Mobile data switch to waiting transfers, and retry policy/constraint disagreements sooner. Same on Android and iOS. (#4494) * feat(dictation): optional compact level-meter overlay for press-and-hold dictation (#4493) * chore(changelog): name the batch fragments after #4496 and credit reporters * fix(engines): delete read-only files when removing an engine Windows marks git pack files read-only, so rmtree(ignore_errors=True) left .git behind and every engine delete there would have been reported as incomplete. Uninstall now clears the read-only bit and retries, and only files another process holds open are reported. * fix(engines): keep every request away from an engine while it is deleted A request holds the engine's op lock while it resolves its environment, before its process exists, so the old live-process check missed it and a spawn could rebuild part of the install mid-delete. The delete route now marks the engine removing (new spawns refuse it), takes every instance's op lock without waiting (busy → 409) and stops its sidecar before removing files. Leftovers of an incomplete delete stay 'managed' so Delete is still offered. Moves the stop out of sidecar_install, which also removes an import cycle. * fix(engines): Delete stays available for leftovers, sends one request, and promises only what it removes - Delete is offered for any managed folder, not only a healthy install, so an incomplete delete can be retried. - A ref guard and a disabled confirm button stop a second DELETE. - The confirmation no longer claims to remove models in the shared download cache, which uninstall leaves in place. * fix(mobile): relabel restored waiting downloads; harden iOS download replacement Android: a queued waiting entry now takes the freshly computed waiting reason on restore while active progress is kept. iOS: the Mobile data setting restarts waiting transfers, downloadNow persists the intent before replacing the task and keeps the model paused with a reason when saving fails, and task ownership uses a per-model generation so a cancelled task never clears or finalises a replacement's entries. (#4494) * fix(dictation): show the full recorder after an empty result and report compact-overlay save failures * fix(engines): retry only removals when a read-only file blocks an engine delete rmtree also reports os.open/os.scandir failures to the callback, and calling those with one argument raised TypeError and aborted the delete before its leftover check. Other failures now reach that check. * test(android): name freeBytes in the new ModelDownloads test calls Five positional lambdas matched both the primary constructor and the bundled-assets one, so the unit tests failed to compile. * fix(engines): reference-count delete marks, refuse installs during a delete, never chmod a symlink target - engine_removal holds counted 'being deleted' marks shared by the delete route, the sidecar spawner and the installer: an overlapping delete that gives up no longer clears the mark of one still removing files. - start_install refuses (409) while the engine is being deleted, and the install/repair button is disabled while a delete is pending. - The read-only retry makes the parent folder writable and never chmods a symlink, which would follow it to a shared interpreter. - iOS test: drop an assertion that could only pass after the gate opened. * docs(structure): 146 services * fix(engines): keep POSIX file modes on delete; make the iOS replacement test observe the cancelled transfer