Skip to content

SCA-4440: Remove phone microphone conversation recording - #26345

Merged
Git-on-my-level merged 14 commits into
mainfrom
agent/m1-studio-codex-sol/6c72423a3914
Dec 1, 2026
Merged

Git-on-my-level merged 14 commits into
mainfrom
agent/m1-studio-codex-sol/6c72423a3914

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Mobile capture is now wearable-only, and recordings always upload automatically (SCA-4440; David's rulings 2026-11-30 are recorded on the issue).

  • Phone-mic recording is removed, along with its automatic offline fallback, from Home, onboarding and the native bridges on iOS and Android. Siri listening controls use a connected recording device. Chat dictation and voice enrollment stay. Recovery and upload of existing phone recordings stay, and the backend still accepts source=phone from older builds.
  • The Transcribe Later opt-in ("Keep recordings on this phone") is retired, for wearables too. The Settings switch and its search entry are gone; on iOS the Recording section disappears, and Android keeps Background Mode. Startup turns the preference off once, before capture reads it. Recordings it already kept are never uploaded automatically: they stay held by their file marker (holdForUser) and wait in Activity → On this phone for Upload or Delete.
  • Home has no phone recording bar, record button or Transcribe Later row. When no wearable is paired, Home's single prompt slot (app: Home is one v3 model with one row shape (SCA-5226) #26548) shows the pairing prompt, ranked after payment.
  • Home's bottom bar is the Listening page's Ask Omi pill at full width: 56 pt raised glass, the "Ask Omi" headline label, resting where the Listening and conversation bars rest, in both the default and experimental designs. It was a 62 pt "Ask anything" pill beside the record button. Pause and End stay on the Listening page; a live recording's controls stay behind its Home row.
  • Voice teaching is Omi-only. Main had added a phone-mic fallback to the voice page and the onboarding voice step; without an Omi the voice page now asks to connect one (Skip stays), and onboarding's capture fails instead of starting the phone mic.

This PR stacks on the C1 capture contract revision (#26343, merged). Store rollout and seven days of zero phone-mic listen hours from current builds remain release checks. Rollback is the previous build.

Takeover and merge from main (2026-11-30)

The m5 Claude session took this PR over from the m1 lane at b825a6f.

  • bfab1ed merges main, which had moved 1,351 commits. It resolves the conflicts with the one-model Home (app: Home is one v3 model with one row shape (SCA-5226) #26548) by keeping main's Home, and it removes the phone paths main had added since: pause analytics, the vendor live-word phone listener, phone batch geolocation, the record button, the recording bar and their tests. The pairing prompt moves into Home's prompt slot.

  • e4fda30 retires Transcribe Later.

  • The next commit deletes ConversationCaptureWidget (processing_capture.dart), which Transcribe Later's removal left dead: its only production caller was Home's Transcribe Later row (app: Home is one v3 model with one row shape (SCA-5226) #26548 moved the call and capture rows to HomeRowShell). Tests that drove only that widget go with it, and the LiveCaptureCard pill and battery glyph tests stay. The addressability baseline, e2e flow covers and two docs drop their references to it.

  • preferences.dart stays within its line budget by dropping the now-unused phoneBatchAuto preference.

  • Tests that cover only phone-mic behaviour are deleted, including six in capture_provider_test and five in transcription_paused_warning_test. Those were already failing on b825a6f; one STT-failure case is kept on the device path instead.

  • aa118296dcb and 8c469fcafdc merge main again. The first makes main's new voice-teaching fallback Omi-only (scoped review in the PR comments: no blocking findings); the second keeps main's onboarding live words (the phone's speech recogniser shown over the Omi's transcript) and drops the phone-mic tap it reset.

  • 605a25f24a2 makes Home's bottom bar the Listening page's Ask Omi pill (David, 2026-11-30).

  • 4af928d721e makes VoiceOver read that pill's label once (scoped review: no blocking findings). 0c318969b81 merges main again, keeping its dictation finishing on the server's words (app: onboarding dictation completes on the server's words (#26833 review fixes) #26852) without the phone-mic labels.

The coordinator's batch transport and the native batch writer remain. They stay off once the preference is false, and the on-device overflow path still uses the writer, so removing them is a separate cleanup.

Product invariants affected

  • INV-DATA-1
  • INV-CAP-1

Verification

  • flutter analyze on lib, test and integration_test: no errors or warnings, apart from the locally ungenerated env and Firebase files.
  • Focused Flutter tests: 6,782 passed across test/services/capture, test/unit, test/pages, test/providers, test/widgets/home, test/widgets/settings, Siri, first capture and the Finish flow. The rest of test/widgets, test/services, test/spine, test/visual_audit and test/perf also pass, apart from two suites that need the generated env files locally (listen_custody_test, production_shell_gate_test).
  • scripts/pr-preflight: all 56 checks pass, including dead-code, line-count and addressability.
  • New: retire_transcribe_later_test (startup turns the opt-in off; kept recordings stay held) and recording_settings_render_test.
  • app/scripts/l10n.py check passes.

UI evidence

Home pairing prompt in the prompt slot

Recording & Transcription on iOS without Transcribe Later

Home's bottom bar: the Listening page's Ask Omi pill at full width

Line-Count-Exception: app/lib/services/capture/capture_coordinator.dart | 3261 -> 3269 | Preserve system-audio reconnect on its own stage when the phone recorder retires.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T03:12:33.185080Z 8c469fc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac124c8e0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

_stopInProgressConversationRefresh();
await _closeBleStream(disableNativeBackground: disableNativeBackground);
_activeSource = null;
updateRecordingState(RecordingState.pause);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve failed-start detection when cleaning up capture

When an unmuted device start cannot obtain a connection or audio subscription, _initiateDeviceAudioStreaming() returns without updating recordingState. Setting it to pause here now makes _startDeviceSessionBody() accept that failed start as successful, because it accepts either deviceRecord or pause. The coordinator consequently commits pendant ownership without an audio stream; repeated DeviceStartRequested events then short-circuit because that device already owns capture, and the keep-alive reconnect predicate requires deviceRecord. For devices without native ingress verification, this can also display Listening despite capturing nothing. Keep cleanup from assigning a successful paused state unconditionally; the existing _commitMutedStartAsPaused() already handles genuinely muted starts.

Useful? React with 👍 / 👎.

Comment on lines +1071 to +1072
} else if (capture.listening()) {
await capture.stop();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Forward Siri stop requests while a call suspends capture

If a connected pendant's capture is suspended for an Omi phone call, _reduceCall() clears the active owner, so liveCaptureSource is null and isPendantBatchRecording is false. This guard therefore skips pauseCapture(), yet StopOmiListeningIntent reports “Omi stopped listening.” When the call ends, _reduceCall() restores the suspension's unchanged wasPaused: false and recording resumes despite that stop request. Forward the stop intent to the coordinator even when capture is temporarily suspended: _reducePause() already handles this case by updating the suspended pendant's pause intent without interrupting the call.

Useful? React with 👍 / 👎.

Base automatically changed from agent/sca-4440-capture-contracts to main November 29, 2026 20:24
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui b825a6f079eb92d58fd905002debe69da6c5fbe2. A later head keeps the approval while the PR's own UI changes stay the same, including after a rebase or a merge from main; a new or edited UI change needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

Git-on-my-level and others added 5 commits November 30, 2026 17:04
Resolve conflicts with the one-model Home (#26548) and later capture changes.
Keep main's Home model and drop the new phone-mic code paths main added: pause
analytics, the vendor live-word phone listener, phone batch geolocation, the
record button, the recording bar and their tests. The wearable pairing prompt
moves into Home's single prompt slot, after payment.

Failure-Class: FC-merge-drops-branch-change

Co-Authored-By: Claude Opus 5.5 <[email protected]>
David, 2026-11-30: remove the "Keep recordings on this phone" (Transcribe
Later) opt-in, and stop recordings it already kept from uploading on their own.

- Settings drops the switch and its search entry. On iOS the Recording section
  is gone; Android keeps Background Mode.
- Startup turns batchModeEnabled and any onboarding suspension off once, before
  capture reads them. Kept recordings stay held for the user by their file
  marker (holdForUser) and wait in Activity for Upload or Delete.
- Home loses the Transcribe Later live row and the batch card and controls in
  ConversationCaptureWidget.
- Tests: remove phone-only and batch-card cases (including ones that already
  failed on this branch's head). Device stubs report a paired wearable, so
  Home's new connect prompt stays out of layout tests. Add a retirement test
  and an iOS Recording settings render.

The coordinator's batch transport and the native batch writer remain. They
stay off once the preference is false, and the on-device overflow path still
uses the writer, so removing them is a separate cleanup.

Failure-Class: FC-optin-hold-never-uploads

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(SCA-4440)

ConversationCaptureWidget's only production caller was Home's Transcribe Later
row (#26548 moved the call and capture rows to HomeRowShell). Remove it and its
unused status indicators, the tests that only drove them, and the stale
references in the addressability baseline, e2e flow covers, the telemetry
inventory and the ring firmware note. The LiveCaptureCard pill and battery
glyph tests stay. The stale dead-code allowlist entry for the deleted
phone_mic_interface.dart is dropped.

Failure-Class: FC-dead-ui-after-feature-removal

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tchAuto pref (SCA-4440)

Failure-Class: FC-line-count-ratchet

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Failure-Class: FC-format-drift

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui eebf38a4424925076c6e4a33bed7090eecb1b2b5. A later head keeps the approval while the PR's own UI changes stay the same, including after a rebase or a merge from main; a new or edited UI change needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

…h docs (SCA-4440)

Panel review-20261130t225455-3078:
- F1: the prompt tested `pairedDevice == null`, which is unset at cold start
  and is `BtDevice.empty()` after Forget. It now uses
  `DeviceProvider.hasRememberedDevice`. Tests cover a remembered pendant that
  is off (no prompt) and a forgotten device (prompt). Home test fakes gain the
  getter.
- F4/F5: CAPTURE_ARCHITECTURE, e2e SKILL and docs/home.md no longer describe
  Transcribe Later or ConversationCaptureWidget as live.

Failure-Class: FC-hydration-sentinel-misread

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 43539fcc69e42f0c84f2a5ed1d97244002bf43bd. A later head keeps the approval while the PR's own UI changes stay the same, including after a rebase or a merge from main; a new or edited UI change needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

…only

Main added a phone-microphone fallback to the voice page and the onboarding
voice step. Under the phone-mic removal (SCA-4440) both now listen only
through an Omi; without one the voice page asks to connect it first.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Scoped review of the merge-resolution hunks in aa11829 (voice teaching and onboarding voice step are now Omi-only; main had added a phone-mic fallback). omi-panel had used its one ordinary round on this PR and fix-checked F1 (PASS, REVIEW: SHIP (fixed)), so these hunks went to the review pool (codex gpt-6-luna, read-only): No blocking findings. Neither screen is a dead end without an Omi (Connect or Skip on both); no path starts the phone mic; standalone failure hands batch state back, first run defers restoration to Home's next capture session as before.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui aa118296dcb73f389a454a2a8ae6887994d47ad2. A later head keeps the approval while the PR's own UI changes stay the same, including after a rebase or a merge from main; a new or edited UI change needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

Git-on-my-level and others added 4 commits November 30, 2026 21:56
Keeps main's onboarding live words (the phone's speech recogniser shown
over the Omi's transcript) and drops the phone microphone tap it reset.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the phone Record button gone, Home's bottom bar was a lone 62 pt
"Ask anything" pill unlike the Listening page's bar. It is now that bar's
Ask Omi pill at full width: 56 pt raised glass, headline label, resting
at max(32, inset), the same in the default and experimental designs.
Pause and End stay on the Listening page (SCA-4440, David 2026-11-30).

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pill's semantics label merged with its Text, so VoiceOver read "Ask
Omi" twice. The node keeps the label and its own tap and excludes the
child's semantics (scoped review of 605a25f).

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps main's dictation finishing on the server's words (#26852) and drops
its phone-mic labels: onboarding listens only through an Omi (SCA-4440).

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 0c318969b817d26c9dc6bce118dc42c79ded66ba. A later head keeps the approval while the PR's own UI changes stay the same, including after a rebase or a merge from main; a new or edited UI change needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

/approve-ui 0c31896

@Git-on-my-level
Git-on-my-level merged commit 4749abf into main Dec 1, 2026
60 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/6c72423a3914 branch December 1, 2026 14:45
Git-on-my-level added a commit that referenced this pull request Dec 1, 2026
…hone capture was removed

#26875 added a phone-microphone case to one_capture_transport_test.dart and #26345 then removed
phone microphone capture (and phone_mic_pigeon.g.dart) without that case, so Dart Analyze fails on
main. Phone capture no longer exists, so the case goes; the pendant cases are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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