Keep live transcription recovering and skip overlapping auto-starts
Summary
Problem: A stalled live transcript could leave recording running without reconnecting, and a scheduled meeting could remain queued while the current meeting ran overtime.
Fix: Detect remote streams that stop producing meaningful transcript progress or finalized text, reconnect them while preserving audio capture, and clear the warning when finalized words resume. Skip overlapping scheduled starts and abandon pending starts when another recording becomes active, including during asynchronous calendar lookups.
The watchdog requires audible audio: it retries after 30 seconds without meaningful transcript progress and at least 5 seconds of audible input, or 90 seconds of audible input without finalization. Quiet meetings do not trigger it. Direct Soniox failures now use the existing retry path without stopping recording.
Verification
- Desktop tests: 4,231 passed; listener-core tests: 133 passed, including stalled/partial-only streams, recording preservation during retries, and overlapping auto-start races.
- Desktop typecheck, UI build, Oxlint, targeted ESLint, formatting, and i18n validation passed.
- macOS desktop checks passed with both
direct-distributionandapp-store; desktop native tests and the workflow's native workspace suite passed (3,054 passed, 157 ignored). The final watchdog changes were then covered by the 133 listener tests and both desktop feature checks. - Repository invariant tests and both license-boundary checks passed.
- Existing unrelated findings: native builds regenerate todo bindings with pre-existing schema drift; authenticated
uvx zizmor --format sarif .reports 406 findings in existing workflows/actions. Generated test/build outputs were removed from the change. - Windows/Linux native checks and live-provider fault-injection testing were not run locally. The installed stable app was inspected without interrupting its recording.
[!NOTE]
Medium Risk
Changes live STT reconnection, session supervisor failure handling, and calendar auto-start timing—high-impact user flows, but heavily covered by new tests and scoped guards (audible-audio thresholds, active-recording checks).
Overview
Live transcription recovery: Remote streaming adapters now run an audio-aware stall watchdog that triggers reconnection (without stopping capture) when meaningful transcript progress stops during audible speech, or partial text never finalizes for too long. Direct Soniox listener failures follow the same retry path as other cloud streams instead of ending the session. The desktop stall toast copy is updated, and the warning clears only when finalized words resume—not partials alone.
Scheduled meetings: Overlapping calendar auto-starts are suppressed while a recording is active, including races during ignored-event lookup and session creation. Due meetings are marked handled so they do not fire after an overtime recording ends, and armed session tabs abandon auto-start if another meeting is already recording.
Reviewed by Cursor Bugbot for commit 081064f2b56bd4410750963310289e1a1226b2a5. Bugbot is set up for automated code reviews on this repo. Configure here.