You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Quick Actions Mute/Unmute and the Home record button drop capture failures silently #19245
Involves data loss, failed capture, or broken sync/trust
Describe the bug
Since capture commands became coordinator dispatches, pauseCapture, resumeCapture and finishCapture throw
when their effect fails (outcome.throwIfFailed()). The Live page and the processing card catch these failures
and show "Something went wrong". Two callers don't:
The home-screen Quick Actions (long-press the app icon → Mute / Unmute) call pauseCapture() / resumeCapture() without awaiting them, so a failure is an unhandled async error and the user gets no feedback.
The Home record button's tap handler is a GestureDetector that drops the future of _startRecording, and the
stop path awaits finishCapture() without a try. A failed stop is unhandled, and the button just keeps its
state.
To reproduce
This happens when a pause, resume or finish effect fails, for example while the transcription socket or the mic
can't be reopened. Use Quick Actions → Unmute, or tap the Home record button to stop.
Current behavior
Nothing on screen. The error reaches the zone's uncaught-error handler.
Expected behavior
The same "Something went wrong" feedback as the Live page, and no uncaught error.
Submitted a comprehensive surgical fix in PR #21303.
Summary of Fix:
Quick Actions Mute/Unmute: Wrapped pauseCapture() and resumeCapture() in try/catch within quick_actions_service.dart, preventing unhandled async exceptions and displaying OmiFeedback.error(context, context.l10n.somethingWentWrong) on failure.
Home Record Button: Wrapped finishCapture() within battery_info_widget.dart's stop path in try/catch, surfacing OmiFeedback.error(context, context.l10n.somethingWentWrong) when the stop effect throws.
Hermetic Tests: Added widget regression tests in capture_home_ui_test.dart and unit tests in quick_actions_service_test.dart covering both happy-path dispatches and failure feedback.
Activity
fix(quick-actions): a failed Mute or Unmute says so (BasedHardware#19245
fix(quick-actions): a failed Mute or Unmute says so (BasedHardware#19245
fix(capture): handle pause/resume errors and show feedback in quick a…
fix(capture): wrap finishCapture in try-catch and surface feedback on…
test(widgets): add regression tests for record stop failure feedback (B…
test(services): add unit tests for quick actions mute/unmute error ha…
Dragonire9 commentedon Oct 12, 2026
Submitted a comprehensive surgical fix in PR #21303.
Summary of Fix:
pauseCapture()andresumeCapture()intry/catchwithinquick_actions_service.dart, preventing unhandled async exceptions and displayingOmiFeedback.error(context, context.l10n.somethingWentWrong)on failure.finishCapture()withinbattery_info_widget.dart's stop path intry/catch, surfacingOmiFeedback.error(context, context.l10n.somethingWentWrong)when the stop effect throws.capture_home_ui_test.dartand unit tests inquick_actions_service_test.dartcovering both happy-path dispatches and failure feedback.refactor(quick-actions): share _handleShortcut dispatch with handleSh…
refactor(home): remove redundant outer try/catch around _startPhoneRe…