feat: surface silent transcription failures as user-visible indicators - #27
Merged
Conversation
- Emit transcription-error on first model-not-loaded detection instead of silently skipping all chunks (most likely root cause of reported issue) - Add 15s no-transcript timer that warns user if no speech is detected - Wire existing but unlistened transcription-warning event to toast - Wire recording-shutdown-progress to show actual stages instead of static "Finalizing transcription..." text - Wire transcript-chunk-loss-detected to warn about incomplete transcripts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The other 4 changes already cover all real failure modes: - Model not loaded → transcription-error event - Chunk failures → transcription-warning toast - Shutdown hang → progress stages - Chunk loss → chunk-loss toast The 15s timer would false-positive when users start recording before a meeting begins or during natural silence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
P1: Guard recording-shutdown-progress handler to only update status while still in STOPPING or PROCESSING_TRANSCRIPTS. Late events from slow model unloading can no longer yank status back from SAVING. Uses a ref to track current status without stale closures. P2: Sanitize transcription-warning toast to show generic message for EngineFailed errors instead of raw reqwest output that could leak remote endpoint URLs during screen sharing. Also merges the two shutdown useEffects into one (simplicity review). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
transcription-warningevent to toast — per-chunk Whisper/Parakeet failures now show a warning (sanitized to avoid leaking remote endpoint URLs)recording-shutdown-progressto UI — replaces static "Finalizing transcription..." with actual stage messages ("Stopping audio capture...", "Processing remaining chunks...", etc.)transcript-chunk-loss-detectedto toast — warns users when chunks are lost during shutdown instead of silently showing "no transcripts available"Context
Users reported: no live transcription, "Processing recording" hangs for minutes, then "No transcripts available for summary." Investigation found the Rust backend emits 5+ diagnostic events that had zero frontend listeners — all failures were completely silent.
Most likely root cause:
worker.rs:237-241silently skips every chunk when the model isn't loaded, incrementing the "completed" counter without producing any output.Test plan
transcription-warningtoast appears on chunk failures (check DevTools console for listener setup)Post-Deploy Monitoring & Validation
No additional operational monitoring required: changes only surface existing Rust events to the frontend UI. No new backend logic, no database changes, no external API calls.
🤖 Generated with Claude Code