Skip to content

fix: unify mobile mute policy across Dart, Android, and iOS - #14848

Merged
Git-on-my-level merged 5 commits into
mainfrom
codex/capture-mute-authority
Sep 19, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
codex/capture-mute-authority

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

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.sh with Flutter 3.44.5: 138 opt-in spine tests and 2,355 regular tests passed (5 skipped).
  • Focused post-compatibility capture tests: 29 passed, including the unchanged protected composition contracts.
  • Targeted Dart analysis: no issues.
  • make preflight: all 24 selected checks passed.
  • Independent review found no release-blocking correctness defects.
  • ruby app/ios/test/batch_audio_energy_test.rb: compiles and executes the production Swift writers; passed.
  • Android JVM tests could not run locally because this host lacks the Android SDK and Gradle wrapper; the existing Android CI lane is required.

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

  • Shared Dart/Kotlin/Swift parsing vectors cover migration, malformed values, strict types, and fail-closed admission.
  • Production capture replay covers mute blocking new audio, explicit resume, automatic restart, file cuts, and controller reconstruction.
  • Native writer/streamer tests cover revoked queued frames and runtime mute policy.
  • Preference tests cover serialized intents and persistence failures.

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.

Review in cubic

@Git-on-my-level
Git-on-my-level merged commit 5f1cf14 into main Sep 19, 2026
42 of 44 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/capture-mute-authority branch September 19, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant