Files
orca/config
Kelvin Amoaba 681dab3ff9 fix(speech): keep the old speech model when an update can't be moved into place (#41037)
* fix(speech): keep the old model when the new one can't be moved in

Deleting the old folder before the rename lost both copies when the rename
failed, e.g. a Windows antivirus lock.

* fix(speech): keep an interrupted swap's backup and let delete wait for it

Retry renames through Windows file locks, and keep .previous when it is the
only old copy left.

* fix(speech): remove the migration source's model backup on delete

* test(speech): assert the kept model, not the backup folder name

* refactor(speech): remove each model folder's leftovers in one loop on delete

* fix(speech): check model folders with async stat during the swap
2026-11-11 06:09:57 +00:00
..