Repository navigation
Description
Part of #3705.
Context
The user wants to switch dictation providers analogously to live-conversation choices. Source pointers verified on main a63e564f02f9b1ab0462bb0ac02dbf8ea6eacee7 on 2026-11-08; verify named anchors again at pickup.
The Settings frame is (SECTIONS, packages/ui-react/src/components/settings/settings-panel.tsx:27-37); preferences use (getSetting, packages/ui-server/src/db/settings.ts:26-47). The dictation start path (const start, packages/ui-react/src/voice/use-dictation.ts:52-123) consumes the mounted session response. Use the approved interaction/schema from #3706 and selection APIs from #3707. Coordinate the Voice destination with #3616/#3617 and the unified presentation #3690, while keeping live conversation and dictation defaults independent.
Scope
Add the approved dictation provider control/discovery/status to Voice Settings and bind its effective selection to the next explicit capture/upload. Reuse the shared pane if delivered; otherwise coordinate a small shared frame rather than duplicate navigation or wait on unrelated live-conversation/provider-qualification work.
Show configured/usable providers, effective/saved selection and unavailable choices honestly. Before audio leaves the browser, disclose the selected service/destination through the approved capture flow. Saving/opening Settings does not open the microphone, mint vendor credentials or send audio. No mid-take retargeting or silent fallback.
Out of scope
Gemini transport, whole voice-composer redesign/gestures, live-provider/persona selection implementation, credentials entry, saved-file Gemini support and recording retention/retry policy changes.
Acceptance criteria
- The approved Voice Settings control works with zero, one and multiple registered providers, distinguishes dictation from live service, and implements the approved persistence, authorization, save/failure/stale-revision and unavailable-selection states.
- Selecting a default survives reload/restart as specified; a removed/unavailable default has explicit recovery rather than falling back to Deepgram, browser speech or Gemini.
- A subsequent explicit dictation starts the selected adapter. Saving during an active take leaves that take's destination/connection intact, and newly acquired credentials are not mistaken for capture permission.
- Saved-recording confirmation uses the actual intended provider/capability. A selection change between disclosure and upload refuses/reconfirms as designed; it never silently uploads to a different service. Unsupported Gemini saved audio keeps playback/typed work and offers only an explicit supported-provider choice.
- Browser proof at 320px and desktop covers keyboard/focus/touch targets, loading/errors, reload, switching, provider removal, cancellation during mint/start and active-capture/default-change races. Coordinate existing versus Epic: unified voice experience — one mic, one field (dictation + live conversation) #3690 presentation without changing dictation's text-only authority.
- Real browser/local-route tests observe the adapter/transport actually chosen and no microphone/audio/provider calls from Settings alone. A deliberate selection-binding or consent mutation fails the named assertion and passes after restoration.
- Update user/authoring docs and any public client API/contract component touched, plus the published-behavior changeset.
Verification
Use two or more deterministic provider clients, actual mounted selection/mint routes and the existing offline browser harness. Run focused React/server/SDK tests, required browser proof, typecheck/lint and PR preflight. No live vendor calls are needed for selection proof; actual Gemini qualification is #3710.
Contract impact
Published UI behavior and any new client selection parameters need the relevant changeset. Supported HTTP/client/schema changes follow CONTRACT:/authoritative docs/minor rules; consume #3707's contract rather than define a conflicting one.
Approved design (folded 2026-11-08 from #3706)
Follow the selectable-dictation plan §5, §7 and §9, and the maintainer's decision D1–D4. Binding specifics:
- The Voice pane sits under This brain between Models and Accounts, with meta "dictation". Its Dictation group has one radio per registered provider (it saves immediately, like the Models default) and a Clean up as I speak switch, default on, shown only when the effective provider declares
smartTranscription(D1). Whichever of this issue and ui-react: configure the default live-conversation provider through Settings #3616 lands first creates the pane frame. The groups use separate routes and state. - Switching happens in Settings only; there is no per-take Change (D2). Every state in the §7 table is acceptance: zero, one or many providers, many with none saved and no host default ("Choose a dictation service"), a saved choice that is unavailable (a dashed row; dictation is blocked with Open Settings and no fallback), save pending/failed with Try again, stale 409 ("Changed on another device"), a take active while the default is saved elsewhere, and a read-only non-owner view.
- One-time acknowledgement (D4): the first take to a provider not acknowledged on this device shows the destination card with Cancel / Start dictation before any
/voice/sessionrequest orgetUserMedia. The acknowledgement is device-local, keyed by provider id and destination text. A storage failure means not acknowledged. Focus goes to Start dictation. The mic's accessible name and tooltip read "Dictate · ", and the sheet reads "To ". - A take sends
{ providerId, smart }from the snapshot it disclosed and never the current default. A 409 fromspeech_provider_unavailableuses the existing startup notice. - Tray: confirmation names the effective provider when it declares
savedAudio. Otherwise it offers an explicit, unsaved per-recording choice among the capable registered providers, or the existing unavailable explanation. The upload sendsSpeech-Provider. Addspeech_provider_unavailable(409) andtranscription_provider_mismatchto the preclaim/receipt handling. - Mutations (§9): skipping the acknowledgement → the "no session before Start dictation" assertion fails; sending the current default instead of the disclosed id → the race test fails.
Readiness
The approved interaction and schema are folded in above. It stays blocked until #3707's selection API merges. #3616/#3617/#3690 are coordination links, not invented implementation blockers.
Activity
schlessera commentedon Nov 8, 2026
2026-11-08: Folded the approved #3706 design (maintainer rulings D1–D4, schemas, states and proof split) into this body under Approved design. Source pointers were re-verified at main
a63e564f0. Design PR: #3713.schlessera commentedon Nov 8, 2026
Claiming (claim token
wi-3709-d12e), branchfeat/3709-dictation-voice-settings. It starts from #3707's selection API branch (PR #3715, awaiting its merge lease) and will rebase onto main once that lands.schlessera commentedon Nov 8, 2026
Unblocked: #3706, #3707 are closed, so
scripts/sync-project.tsis removing theblockedlabel.CONTRACT: fix(ui-react): keep dictation choices, takes and tray uploa…
fix(ui-react): bind dictation settings writes and authority to one id…
test(ui-react): prime dictation selection in the Gemini offline suite
test: prime dictation selection in the remaining capture suites
schlessera commentedon Nov 8, 2026
Delivered by #3724, squash
8752570on main, milestone 0.45.0. It adds the Settings › Voice pane with its Dictation group: the immediate-save provider radio and the Clean up as I speak switch (D1), every §7 state, and an owner-only read-only view established before any save. It also adds the device-local one-time acknowledgement before any session or microphone (D4), the take bound to its disclosed{providerId, smart}with a response echo check and no fallback, a disabled mic with an explanation when there are zero providers, and the tray's frozen, explicit saved-audio provider choice withSpeech-Provider.Two independent gpt-6-astra review passes found 6 issues and then 3. All are fixed with failing-first and mutation receipts (see PR). The
ACTIVE_TAKE_SOCKET_INTACTflake turned out to be a harness race; it now passes 40/40, including under contention. After merging with #3717, three suites needed the new selection priming; that is recorded in the PR. Candidate run 42525761919 passed.