Files
orca/src/main/speech
JinjingandClaude 115976acca feat(dictation): offer the speech model update in the dictation pill (#40686)
* feat(dictation): offer the speech model update in the dictation pill

Moves the speech model update out of the launch notification stack and into
the dictation pill. Pressing the dictation shortcut now checks the selected
model before any mic capture; when the speech engine needs a download, the
pill offers it (notice, downloading, done, failed) instead of recording.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(dictation): address review on the setup pill check

- Drop a stale press before opening the setup pill, not only before recording.
- Swallow cancelDownload rejections.
- Don't cache a failed catalog load, and don't mark a model up to date from an empty catalog.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(dictation): cancel a pill download closed before its first progress

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(dictation): make the pre-record model check a cancellable pending start

- A toggle, Escape, stop or controller teardown during the model check now
  drops the pending start, and the check rechecks current voice settings
  before opening the mic.
- A press mid-download keeps the setup pill with its progress; only a model
  seen ready is cached as ready.
- A cancelled or failed update no longer deletes the old model files, and the
  renderer keeps offering the setup target it showed until the model is ready.
- The check is prefetched off the startup path and in-flight checks are shared,
  so the first press rarely waits on main.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 00:34:36 -08:00
..