Repository navigation
fix: unify mobile mute policy across Dart, Android, and iOS - #14848
Merged
Merged
Conversation
Failure-Class: FC-split-mutation-authority
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.
What changed and why
The normal Omi mute and Transcribe Later mute used separate preferences, so muting through one control could leave a native batch writer recording. Replace them with one versioned capture policy shared by Dart, Android, and iOS. Automatic reconnects, recording cuts, mode changes, and cleanup preserve mute; only explicit user resume changes it.
Native admission gates and revision checks retire queued audio after policy changes. A process-scoped native deny latch closes admission before mute persistence and releases only after durable unmute. UI controls use controller policy rather than an independent mute flag. Historical recording recovery and Limitless flash drain remain available.
Product invariants affected
None. No brand policy changes.
How it was verified
bash app/test.shwith Flutter 3.44.5: 138 opt-in spine tests and 2,355 regular tests passed (5 skipped).make preflight: all 24 selected checks passed.ruby app/ios/test/batch_audio_energy_test.rb: compiles and executes the production Swift writers; passed.Physical-device background/process-death validation remains outstanding. Native admission acknowledgement does not claim the OS microphone has stopped or all queues have drained.
Tests
Failure class (fixes)
Failure-Class: FC-split-mutation-authority
Review scope
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 2861 -> 2889 | Keep the existing capture owner responsible for mute integration and revision checks; extracting unrelated controller responsibilities would broaden this privacy fix.