Skip to content

app: onboarding polish, transcript player, and instant local playback with honest sync status - #26706

Merged
Git-on-my-level merged 50 commits into
mainfrom
app/onboarding-player-local-playback
Dec 1, 2026
Merged

Git-on-my-level merged 50 commits into
mainfrom
app/onboarding-player-local-playback

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

One PR for the app improvements built over the last two days. It started from a teardown of the Bee, Fieldy and Plaud onboarding, and covers onboarding, the transcript player, and local playback with honest sync status. Every part went through renders, a phone build, and a Luna + DeepSeek review round.

1. Onboarding polish (Flutter, release arm "pocket")

  • Pairing through Apple's AccessorySetupKit sheet (iOS 18+) for every BLE device type, including migration of already-paired peripherals.
  • "Turn on Omi" step: three numbered steps (press until it vibrates, look for a red light, keep it close). The render shows the red light an unconnected pendant really shows (new omi-without-rope-red asset); blue stays for connected.
  • Pairing recovers from a wrong pick: a device picked in the sheet that does not connect is never handed back on its own. The app disconnects it and removes its AccessorySetupKit authorization, so the next try opens the sheet. Before, Try Again looped on the same pendant with no way out. The failure screen leads with "Choose a different device", with Try again for the same one. A connect past 20 s says "Still connecting…" and offers the switch. The connecting screen has a back button.
  • "Having trouble?" opens Omi pairing help: what the light colors mean (per firmware set_led_state), how to turn it on and off, and tips. All supported devices stay one tap away.
  • Accessory picker naming (iOS 26.1+): when several identical devices are found, the closest is labeled "{name} · Nearest" by RSSI.
  • Paywall: both plans lead with a per-month price. The yearly card and the terms above the button keep the yearly charge ("7 days free, then US$22.49/mo, billed yearly at US$269.91") and show the saving as a percent. Google Play keeps Play's own strings.
  • Voice step: the target is halved to 12 s of speech. Continue waits for the bar (or 60 words for a quiet speaker), and a full bar shows "Got your voice" and moves on by itself.
  • Device tour: the End conversation demo settles into a saved conversation. Titles are sentence case. The name step comes first and is prefilled from the account (Pocket resume key v3).
  • One permission per screen: each screen primes the system prompt, skips permissions already granted, and offers Open Settings when a permission is blocked.
  • Consent with plain privacy promises: Encrypted, Open source, Delete anytime, Not used for training. "Use a Different Account" is now small and quiet.
  • First conversation, "Omi is already listening": free talk with hints and a live transcript. The voice profile is learned from the device mic, with the phone mic as fallback, and the button tour is merged into this step.
  • Language before pairing.
  • Fewer interruptions: the firmware prompt moves out of onboarding to the next app open, and the trial paywall shows on the next app open, never on a tap.

2. One voice-teaching experience

  • Onboarding, the Home "Teach Omi your voice" card, and Settings > Voice Profile share one view.
  • The old guided "Let Omi get to know you" flow is deleted, about 10k lines including its tests, analytics wrappers and six translation keys. Its ten Guided Intro events are marked deprecated, not removed.
  • The voice page never interrupts a running recording, whether phone or Omi, live or Transcribe Later. It re-checks after every await, resumes a handed-off Omi on exit, and never closes a conversation that started before the page opened.
  • The admin onboarding funnel's speech step counts any of the three voice-step events. Note: "Speech Profile Continued" means Continue was pressed, not that a profile was saved.

3. Transcript player

  • Speed is a tap that cycles 1× → 1.5× → 2× and is remembered.
  • Skip back and forward 15 s, measured in heard audio across gaps.
  • The bar is one row when paused and grows to two rows (a rounded rectangle) while playing.
  • "Back to Current" appears only while playing and scrolled away, with an arrow pointing toward the playing line.
  • The speaker naming sheet shows talk time and up to three voice clips per speaker.
  • Bug fix (also on main today): for a conversation cut from a longer recording, the waveform spanned the whole recording file, so the audio ended halfway across the bar. The window now matches the conversation.

4. Local playback and honest "Catching up"

Design and decisions: omi-workspace/data/run-2026-11-29-local-playback/DESIGN.md.

  • Playback analytics: a new Conversation Audio Ready event (source, coverage, load time, polls, conversation age). Audio Playback Failed now reports real reasons instead of unknown.
  • "Catching up" shows only while audio is moving from the pendant to the phone.
  • Uploads read "Uploading 20m". Repeated failures read "Not uploading · safe on this phone".
  • Backup copies of conversations the server already has never count as waiting.
  • Local playback: when the phone holds every recording of a conversation, it plays locally with the server's wall-clock mapping, so tap-to-seek and follow are unchanged.
    • A drift guard compares against captured_duration and the conversation edges.
    • Partial coverage plays from the server.
    • Conversations transcribed on the phone get a player.
  • "Keep audio on phone": Last 7 days (up to 2 GB, cleared under low disk) or Always.
    • New installs default to 7 days. Upgraded installs keep their current behaviour.
    • Choosing 7 days asks for confirmation first.
    • Never deleted: unconfirmed audio, Transcribe Later recordings, audio currently playing, or the only copy of an on-device conversation's audio.
  • Pendant playback copy: rolling cache files of live frames that were already delivered.
    • Never custody, never uploaded, never counted as waiting.
    • Deleted on sign-out.
    • A failed write drops the copy, never a frame.
  • PostHog kill switches: local_conversation_playback_off, pendant_playback_copy_off, local_audio_retention_v2_off (restores the 30-day sweep). Tuning payload: days, cap_mb, low_disk.

Decisions

  • David (2026-11-29):
    • 7 days / 2 GB for new installs only.
    • Pendant playback copy approved.
    • Server playback unchanged, with no eager builds.
    • "Catching up" means pendant transfer only.
  • David (2026-11-30), from two onboarding videos:
    • Paywall leads with per month, billed yearly.
    • Unique names in the picker, the voice step's short target with auto-finish, and the saving animation for End conversation.
    • Name step early and prefilled. The system-voice fallback and the AI-titled setup conversation stay as they are.
    • Pairing fixes A–F (step list, red light, wrong-pick recovery, "Choose a different device", 20 s nudge, Omi troubleshooting, back button) go into this PR.
  • Interim calls made while David was offline, to confirm:
    • Audio for conversations transcribed on the phone is exempt from cleanup, because it is the only copy.
    • The PCM→Opus re-encode (phase 6) is a follow-up PR.

UI evidence

Consent
Permission priming
Turn on your Omi
iOS pairing sheet
First conversation
Voice profile page
Player expanded
Sliced recording waveform
Speaker clips
Keep audio on phone
Not uploading
Catching up from pendant

Line-count exceptions

These large shared files grow with this change. Splitting them belongs in its own refactor, not in this feature bundle:

Line-Count-Exception: app/lib/widgets/conversation_bottom_bar.dart | 1580 -> 2142 | expanding player bar, speed/skip, clip playback, local-audio source selection and the waveform window fix all live in the one player widget
Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 3444 -> 3750 | retention sweep, pendant playback copy and upload-health hooks belong to the single custody ledger (CUSTODY.md rule: one owner)
Line-Count-Exception: app/lib/backend/preferences.dart | 1770 -> 1802 | playback speed, Keep-audio-on-phone policy and first-run launch keys
Line-Count-Exception: app/lib/providers/sync_provider.dart | 1712 -> 1745 | upload-health status and the honest Catching up / Not uploading inputs
Line-Count-Exception: app/lib/pages/conversation_detail/page.dart | 2161 -> 2185 | the expanding player's padding/fade and the Back to Current pill
Line-Count-Exception: app/lib/providers/device_provider.dart | 2032 -> 2035 | defer the firmware prompt to the next app open

Product invariants

  • INV-CAP-1 (pendant audio never discarded). Retention only deletes audio the server has confirmed, plus playback copies. The pendant playback copy only duplicates frames that were already delivered. A playback-copy write failure drops the copy, never a frame. The phone never stops consuming pendant audio because of this change. CUSTODY.md rule 2 is amended for the never-custody playback copy, with tests in pendant_playback_copy_test.dart and the custody suites.
  • INV-DATA-1 (production data plane). app/lib/main.dart changes only add the first-run launch hook beside the existing local-dev reachability gate. No Firebase project, Auth authority or API routing changes.

Failure-Class: none

Verification

  • Full hermetic app suite on this branch: 11,244 passed, 13 skipped.
    • Ledger and custody suites: 1,386 passed.
    • Also: l10n.py check, the perf-shell fidelity check, the UX contract check and the event registry check.
  • Translations: every new string is translated into 48 locales via omi-l10n-fill, with a review pass.
  • Phone QA on an iPhone 15 Pro Max against the local stack:
    • Onboarding, consent, permissions and the AccessorySetupKit pairing sheet were tested in earlier sessions.
    • The transcript player (expanding bar, speed, skip, waveform fix) was tested and signed off.
    • Full onboarding end to end (2026-11-30): two runs by David, plus a new-user run that found the wrong-pick dead end. The polish build was approved.
    • The pairing fixes build is installed for the next run.
  • Not verified on a device: the "Nearest" picker label and the wrong-pick release with several pendants nearby (covered by flow and widget tests), local Opus decode speed, playback-copy disk use on a real pendant, and the local-versus-server timing match on live conversations.
  • Test-only fix: sync_display_truth_render_test used the wall clock and failed every night between 00:00 and about 01:00. It is now pinned to midday.

Review

Each part had one Luna + DeepSeek round. Every BLOCKING and HIGH finding is fixed:

  • Voice page: the busy-check race, Omi handback, and conversations that started before the page opened.
  • Player: the endless clip spinner, clip failures that turned into global player failures, and audio that kept playing after a clip failed.
  • Local playback:
    • the O(N²) retention pass, now linear: 20.5k rows take about 2.8 s;
    • the drift guard;
    • overlapping files;
    • "Always" leaking playback copies;
    • upgraded installs that showed "Off";
    • kill switches;
    • false "All synced" text;
    • the confirmation before deleting older audio.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

Git-on-my-level and others added 30 commits November 28, 2026 13:23
…priming)

The shipped (pocket) onboarding now:
- Splits permissions into one screen each (notifications, location; background on
  Android) with an illustration and a plain promise; allowed ones pass through.
- Asks for language before pairing, so the first conversation is transcribed in it.
- Pairs through "Turn on your Omi", then Apple's accessory sheet (AccessorySetupKit,
  iOS 18+) connected through the same tap-to-connect path; anything that path
  cannot finish falls back to the existing scan list.
- Adds "Omi is already listening": the reader talks a few sentences, the live
  transcript shows it, and on Continue the recording is closed so it becomes their
  first real conversation; its audio (decoded from the Omi's packets, or the phone
  mic without one) becomes their voice profile. The sample conversation is only
  seeded when they skip it.
- Starts the CV1 button tour at the button lessons and shows live device state.
- Leads the consent step with four plain privacy promises above the full disclosure.
- Holds the firmware-update prompt for the whole first-run launch.

New strings are English stubs (app/l10n-pending.json) awaiting the translation fill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- "Omi is listening" is now free talk: one instruction ("Tell Omi about your week"), example
  topics as small hints, and the transcript box there from the start with a sound meter and
  a placeholder, so it is clear Omi is hearing before words come back. The highlighted
  question list read like something to read aloud and never moved on.
- Light theme: the priming pictures and the pairing illustration no longer sit in a white
  box on the grey page; cards lift with a soft shadow (dark theme keeps raised surfaces).
- Consent: the vendor paragraph (which still named Deepgram) is gone; the privacy policy,
  linked under the promises, carries the current vendor list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…S 18+

On iOS 18+ AccessorySetupKit replaces the app's Bluetooth permission: once the
app declares it, iOS lists its devices under Settings > the app > Accessories,
Permission.bluetooth reads denied without a prompt, and the old gate blocked
every connection ("Allow Bluetooth access... Open Settings"). So the sheet is
now the only discovery and authorization path there.

- One long-lived ASAccessorySession (OmiAccessorySession), activated first in
  didFinishLaunching. OmiBleManager creates its CBCentralManager through the
  session's gate: at once on iOS 17 and older and when every saved device is
  already known to the session; otherwise after the one-time migration of saved
  devices (ASMigrationDisplayItem from flutter.btDevice/btDevices and the
  native saved-reconnect targets), which Apple requires before any central.
  Connects asked for meanwhile are replayed when the central powers on.
  Every session event case is handled.
- Picker items for every BLE type: Omi (CV1/DevKit/Neo/Glass), Limitless,
  PLAUD (service and NotePin S company id 0x005D + manufacturer data), Bee,
  Fieldy, Friend. Apple Watch and Ray-Ban Meta keep their own paths. Every
  descriptor is declared in Info.plist and Info-Dev.plist; Dart maps the
  picked descriptor back to its DeviceType.
- The picked device connects by its identifier through handleTap/
  ensureConnection (DeviceService.addAuthorizedDevice); no scan, no Bluetooth
  permission request. BluetoothReadiness reads the central's own state in this
  mode and never shows Open Settings guidance for it.
- Forget Device also removes the accessory. Home's Connect page offers Add
  Device instead of the scan list; the pocket and yinka onboarding steps no
  longer fall back to the list (Try again / Having trouble / Not now). The
  Settings permissions page hides the Bluetooth row there.
- Android and iOS 17 and older are unchanged; NSBluetoothAlwaysUsageDescription
  stays for iOS 17 and older.

New strings are English stubs (app/l10n-pending.json).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	app/l10n-pending.json
#	app/lib/l10n/app_ar.arb
#	app/lib/l10n/app_be.arb
#	app/lib/l10n/app_bg.arb
#	app/lib/l10n/app_bn.arb
#	app/lib/l10n/app_bs.arb
#	app/lib/l10n/app_ca.arb
#	app/lib/l10n/app_cs.arb
#	app/lib/l10n/app_da.arb
#	app/lib/l10n/app_de.arb
#	app/lib/l10n/app_el.arb
#	app/lib/l10n/app_en.arb
#	app/lib/l10n/app_es.arb
#	app/lib/l10n/app_et.arb
#	app/lib/l10n/app_fa.arb
#	app/lib/l10n/app_fi.arb
#	app/lib/l10n/app_fr.arb
#	app/lib/l10n/app_he.arb
#	app/lib/l10n/app_hi.arb
#	app/lib/l10n/app_hr.arb
#	app/lib/l10n/app_hu.arb
#	app/lib/l10n/app_id.arb
#	app/lib/l10n/app_it.arb
#	app/lib/l10n/app_ja.arb
#	app/lib/l10n/app_kn.arb
#	app/lib/l10n/app_ko.arb
#	app/lib/l10n/app_localizations.dart
#	app/lib/l10n/app_localizations_ar.dart
#	app/lib/l10n/app_localizations_be.dart
#	app/lib/l10n/app_localizations_bg.dart
#	app/lib/l10n/app_localizations_bn.dart
#	app/lib/l10n/app_localizations_bs.dart
#	app/lib/l10n/app_localizations_ca.dart
#	app/lib/l10n/app_localizations_cs.dart
#	app/lib/l10n/app_localizations_da.dart
#	app/lib/l10n/app_localizations_de.dart
#	app/lib/l10n/app_localizations_el.dart
#	app/lib/l10n/app_localizations_en.dart
#	app/lib/l10n/app_localizations_es.dart
#	app/lib/l10n/app_localizations_et.dart
#	app/lib/l10n/app_localizations_fa.dart
#	app/lib/l10n/app_localizations_fi.dart
#	app/lib/l10n/app_localizations_fr.dart
#	app/lib/l10n/app_localizations_he.dart
#	app/lib/l10n/app_localizations_hi.dart
#	app/lib/l10n/app_localizations_hr.dart
#	app/lib/l10n/app_localizations_hu.dart
#	app/lib/l10n/app_localizations_id.dart
#	app/lib/l10n/app_localizations_it.dart
#	app/lib/l10n/app_localizations_ja.dart
#	app/lib/l10n/app_localizations_kn.dart
#	app/lib/l10n/app_localizations_ko.dart
#	app/lib/l10n/app_localizations_lt.dart
#	app/lib/l10n/app_localizations_lv.dart
#	app/lib/l10n/app_localizations_mk.dart
#	app/lib/l10n/app_localizations_mr.dart
#	app/lib/l10n/app_localizations_ms.dart
#	app/lib/l10n/app_localizations_nl.dart
#	app/lib/l10n/app_localizations_no.dart
#	app/lib/l10n/app_localizations_pl.dart
#	app/lib/l10n/app_localizations_pt.dart
#	app/lib/l10n/app_localizations_ro.dart
#	app/lib/l10n/app_localizations_ru.dart
#	app/lib/l10n/app_localizations_sk.dart
#	app/lib/l10n/app_localizations_sl.dart
#	app/lib/l10n/app_localizations_sr.dart
#	app/lib/l10n/app_localizations_sv.dart
#	app/lib/l10n/app_localizations_ta.dart
#	app/lib/l10n/app_localizations_te.dart
#	app/lib/l10n/app_localizations_th.dart
#	app/lib/l10n/app_localizations_tl.dart
#	app/lib/l10n/app_localizations_tr.dart
#	app/lib/l10n/app_localizations_uk.dart
#	app/lib/l10n/app_localizations_ur.dart
#	app/lib/l10n/app_localizations_vi.dart
#	app/lib/l10n/app_localizations_zh.dart
#	app/lib/l10n/app_lt.arb
#	app/lib/l10n/app_lv.arb
#	app/lib/l10n/app_mk.arb
#	app/lib/l10n/app_mr.arb
#	app/lib/l10n/app_ms.arb
#	app/lib/l10n/app_nl.arb
#	app/lib/l10n/app_no.arb
#	app/lib/l10n/app_pl.arb
#	app/lib/l10n/app_pt.arb
#	app/lib/l10n/app_ro.arb
#	app/lib/l10n/app_ru.arb
#	app/lib/l10n/app_sk.arb
#	app/lib/l10n/app_sl.arb
#	app/lib/l10n/app_sr.arb
#	app/lib/l10n/app_sv.arb
#	app/lib/l10n/app_ta.arb
#	app/lib/l10n/app_te.arb
#	app/lib/l10n/app_th.arb
#	app/lib/l10n/app_tl.arb
#	app/lib/l10n/app_tr.arb
#	app/lib/l10n/app_uk.arb
#	app/lib/l10n/app_ur.arb
#	app/lib/l10n/app_vi.arb
#	app/lib/l10n/app_zh.arb
- Consent: "Use a Different Account" stays reachable but is a small, quiet link.
- "Omi is listening": no header pill ("looks like AI slop"); where Omi hears from is now the
  transcript box's own label next to the sound meter.
- Device tutorial: the intro had both a close X and a bottom Skip; the X is the one way out.
  The "ask a question" lesson offers "Skip this step" after a failed reply, so a stack without
  AI or a dropped connection never traps the reader there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Home re-show of the trial paywall fired on the first tap in Home in the same launch
as onboarding, opening over what the reader tapped (the third paywall in a row). It now
waits for a later launch and opens on its own once Home settles. FirmwarePromptFirstSession
becomes FirstRunLaunch, shared by the firmware prompt and this.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Home's "Teach Omi your voice" card, Settings > Voice Profile and the
control onboarding arm now show the same free-talk screen as first run's
"Tell Omi about your week" step. The old "Let Omi get to know you" flow
(sentence starters, typed answers, review, goal) is deleted.

- TeachVoiceView (lib/pages/voice_profile/) is the whole experience;
  FirstMemoryStep frames it in the onboarding card, VoiceProfilePage on a
  pushed page with a back button.
- PipelineActivationCapture(standalone: true) records a new sample even
  when a profile exists, restores Transcribe Later after closing the
  conversation, and reconnects capture once the upload succeeds.
- The page reports "Voice Profile Capture Started/Completed/Skipped" with
  entry home|settings; onboarding keeps "Onboarding First Memory *"; the
  control arm still fires Speech Profile Continued/Skipped.
- Deleted: speech_profile_widget.dart, guided_voice_{controller,io,payoff,
  requests}.dart, goal_text_cleanup.dart, their tests and the header
  capture fixture, the guided-intro AnalyticsManager wrappers, six l10n
  keys, and the voice-profile scenarios in both compat suites.
- Visual audit: settings-voice-profile, -device, -microphone.
- Docs, e2e flow, addressability baseline and failure classes updated;
  FC-guided-intro-transcription-has-no-answer-path is dormant.

New string voiceProfileNotesOnTheWay is an English stub in
app/l10n-pending.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…unts every voice step

The voice profile page (Home card, Settings) records through the same
capture session as any recording the reader already has running, so it
cannot pause that recording and resume it afterwards: the dictation
would land in that recording's conversation and Continue would close it.
It now checks first and does not start. It shows "Omi is recording a
conversation right now. Finish it first…" with only Skip and back.
- Running means any phone recording (live, paused, interrupted by a
  call, Transcribe Later, or an Omi handed off to the phone), or an Omi
  conversation that already has words or photos.
- The check runs before Transcribe Later is suspended or any tap is set;
  cancel touches nothing; batch mode is restored only if the page
  suspended it. First run is unchanged.
- Visual audit: settings-voice-profile-recording.

web/admin mobile funnel: the "speech" step counts Onboarding First Memory
Completed (Pocket), Onboarding Step Speech Profile Continued (control)
and Guided Intro Completed (older builds), once per person.

New string voiceProfileRecordingInProgress is an English stub in
app/l10n-pending.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…deprecate guided-intro events in the PostHog doc

Review (Luna, blocking): the standalone voice page checked for a running
recording once, then awaited Transcribe Later's suspension and the wait
for the Omi. A conversation that started in that window could still be
force-processed before the reader spoke.
- start() now re-checks after the suspend, after every 250 ms device
  wait, after the microphone permission check, and once more with no
  await between the check and attaching to the Omi or starting the
  microphone. On busy it restores Transcribe Later and touches nothing
  else; cancel() then does nothing.
- A standalone page never force-processes at start. First run still
  closes the unboxing audio as before.
- Tests: an Omi conversation or a phone recording that starts during the
  suspend, and an Omi that connects mid-conversation during the device
  wait, all get busy with nothing force-processed. An Omi that starts
  streaming silence still listens. The three race tests fail against
  the previous start().

web/admin/docs/posthog-events.md: the ten Guided Intro events are marked
deprecated with their properties kept and the links to deleted files
removed. New rows cover Onboarding First Memory *, the control arm's
Speech Profile Continued/Skipped, and Voice Profile Capture *, plus the
funnel's speech step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…usy screen, analytics)

DeepSeek review of 6d1d364, each item verified against the code:

#1 (refuted as stated): an Omi recording for Transcribe Later is not
busy, and the page's suspend is the Settings toggle's own path. Both
reducers keep the session and flip its transport, then _resetState().
The native batch writers finalize the open file on the batch-off edge
(BatchAudioWriter.swift handle() -> stop("disabled");
OmiBatchAudioWriter.kt:79-81), so it uploads as usual. Tests pin it.

#2 (verified): an Omi that connected mid-page was parked behind the
page's phone recording, and Skip or back stopped with
resumeHandedOffPendant: expectDevice (false) -> keepDebt. Stopping now
always resumes; the reducer test shows it is a no-op without a parked Omi.

#3 (verified): busy now also counts a conversation the server has open
(liveTranscriptStartedAt). At Continue, a conversation that began
before the page (transcript landed late) is neither force-processed nor
used as the voice sample.

#4: no Continue on the busy screen. #5: Started is sent once per page.
#6: FirstMemoryStep.minWords removed. #7: guidedIntroPayoffShown and
guidedIntroPayoffContinued are deprecated in events.json (the other
Guided Intro events were never registered); TRACKING_PLAN.md
regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	app/lib/l10n/app_ar.arb
#	app/lib/l10n/app_be.arb
#	app/lib/l10n/app_bg.arb
#	app/lib/l10n/app_bn.arb
#	app/lib/l10n/app_bs.arb
#	app/lib/l10n/app_ca.arb
#	app/lib/l10n/app_cs.arb
#	app/lib/l10n/app_da.arb
#	app/lib/l10n/app_de.arb
#	app/lib/l10n/app_el.arb
#	app/lib/l10n/app_en.arb
#	app/lib/l10n/app_es.arb
#	app/lib/l10n/app_et.arb
#	app/lib/l10n/app_fa.arb
#	app/lib/l10n/app_fi.arb
#	app/lib/l10n/app_fr.arb
#	app/lib/l10n/app_he.arb
#	app/lib/l10n/app_hi.arb
#	app/lib/l10n/app_hr.arb
#	app/lib/l10n/app_hu.arb
#	app/lib/l10n/app_id.arb
#	app/lib/l10n/app_it.arb
#	app/lib/l10n/app_ja.arb
#	app/lib/l10n/app_kn.arb
#	app/lib/l10n/app_ko.arb
#	app/lib/l10n/app_localizations.dart
#	app/lib/l10n/app_localizations_ar.dart
#	app/lib/l10n/app_localizations_be.dart
#	app/lib/l10n/app_localizations_bg.dart
#	app/lib/l10n/app_localizations_bn.dart
#	app/lib/l10n/app_localizations_bs.dart
#	app/lib/l10n/app_localizations_ca.dart
#	app/lib/l10n/app_localizations_cs.dart
#	app/lib/l10n/app_localizations_da.dart
#	app/lib/l10n/app_localizations_de.dart
#	app/lib/l10n/app_localizations_el.dart
#	app/lib/l10n/app_localizations_en.dart
#	app/lib/l10n/app_localizations_es.dart
#	app/lib/l10n/app_localizations_et.dart
#	app/lib/l10n/app_localizations_fa.dart
#	app/lib/l10n/app_localizations_fi.dart
#	app/lib/l10n/app_localizations_fr.dart
#	app/lib/l10n/app_localizations_he.dart
#	app/lib/l10n/app_localizations_hi.dart
#	app/lib/l10n/app_localizations_hr.dart
#	app/lib/l10n/app_localizations_hu.dart
#	app/lib/l10n/app_localizations_id.dart
#	app/lib/l10n/app_localizations_it.dart
#	app/lib/l10n/app_localizations_ja.dart
#	app/lib/l10n/app_localizations_kn.dart
#	app/lib/l10n/app_localizations_ko.dart
#	app/lib/l10n/app_localizations_lt.dart
#	app/lib/l10n/app_localizations_lv.dart
#	app/lib/l10n/app_localizations_mk.dart
#	app/lib/l10n/app_localizations_mr.dart
#	app/lib/l10n/app_localizations_ms.dart
#	app/lib/l10n/app_localizations_nl.dart
#	app/lib/l10n/app_localizations_no.dart
#	app/lib/l10n/app_localizations_pl.dart
#	app/lib/l10n/app_localizations_pt.dart
#	app/lib/l10n/app_localizations_ro.dart
#	app/lib/l10n/app_localizations_ru.dart
#	app/lib/l10n/app_localizations_sk.dart
#	app/lib/l10n/app_localizations_sl.dart
#	app/lib/l10n/app_localizations_sr.dart
#	app/lib/l10n/app_localizations_sv.dart
#	app/lib/l10n/app_localizations_ta.dart
#	app/lib/l10n/app_localizations_te.dart
#	app/lib/l10n/app_localizations_th.dart
#	app/lib/l10n/app_localizations_tl.dart
#	app/lib/l10n/app_localizations_tr.dart
#	app/lib/l10n/app_localizations_uk.dart
#	app/lib/l10n/app_localizations_ur.dart
#	app/lib/l10n/app_localizations_vi.dart
#	app/lib/l10n/app_localizations_zh.dart
#	app/lib/l10n/app_lt.arb
#	app/lib/l10n/app_lv.arb
#	app/lib/l10n/app_mk.arb
#	app/lib/l10n/app_mr.arb
#	app/lib/l10n/app_ms.arb
#	app/lib/l10n/app_nl.arb
#	app/lib/l10n/app_no.arb
#	app/lib/l10n/app_pl.arb
#	app/lib/l10n/app_pt.arb
#	app/lib/l10n/app_ro.arb
#	app/lib/l10n/app_ru.arb
#	app/lib/l10n/app_sk.arb
#	app/lib/l10n/app_sl.arb
#	app/lib/l10n/app_sr.arb
#	app/lib/l10n/app_sv.arb
#	app/lib/l10n/app_ta.arb
#	app/lib/l10n/app_te.arb
#	app/lib/l10n/app_th.arb
#	app/lib/l10n/app_tl.arb
#	app/lib/l10n/app_tr.arb
#	app/lib/l10n/app_uk.arb
#	app/lib/l10n/app_ur.arb
#	app/lib/l10n/app_vi.arb
#	app/lib/l10n/app_zh.arb
#	app/lib/main.dart
…er voice clips

- Playback speed 0.75x-2x from a speed button over the player, kept across
  conversations (SharedPreferencesUtil.playbackSpeed). Positions drive the
  playhead and transcript follow, so both stay right at any speed.
- Back/forward 15 s over the player once audio loads, measured in heard audio
  through the timeline mapper so a skip never lands in a collapsed gap; seeks
  go through ConversationPlaybackController.seek and clamp at both ends.
- Back to Current shows only while audio plays and the reader has scrolled
  away, filled so it reads over text, with an arrow toward the playing line.
- Name-a-speaker sheet: talk time and up to three 8 s clips (longest lines,
  in time order) that play on the existing player and pause at their end;
  only lines on this conversation's clock are offered.
- Visual audit scenarios conversation-detail-player-controls and
  speaker-naming-voice-clips; fixture backend answers playback URLs.

UI strings are English stubs listed in app/l10n-pending.json for the fill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
….5x/2x

Review changes (David):
- No separate capsule. The player bar is today's single row while paused or
  idle; while audio plays the same bar grows to two rows (waveform and time on
  top; back 15 s, pause, forward 15 s and the speed below) and folds back on
  pause. The height animates over OmiMotion.standard (zero under Reduce
  Motion), growing upward from the bar's resting edge.
- The transcript's foot and the page's fade follow the bar's current height
  (ConversationPlaybackController.playerExpanded); the capsule's fixed extra
  padding and fade are gone. Back to Current stays above the bar.
- Speed is a tap that cycles 1x -> 1.5x -> 2x -> 1x, kept across
  conversations; a stored value that is not offered (1.25 from the previous
  build) plays at 1x. Its screen-reader label says what the tap does.
- The speed sheet and its string (playbackSpeed) are removed; the new
  playbackSpeedChange string is an English stub in l10n-pending.json.
- The playback sync harness floats the bar over the transcript, as the page
  does, so the taller bar never resizes the list's viewport.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A clip is refused unless a mounted player can start it
  (ConversationPlaybackController.canPlay / canPlayAt). While the page drops
  the bar (keyboard up) the sheet's clip rows stay, disabled, instead of
  spinning forever. Attach/detach notify after the frame, so the bar's
  dispose no longer clears the clip while the tree is locked.
- Clips are offered only where the line start maps strictly into captured
  audio (the loaded map, or the map expected from the conversation before
  loading); none when the audio has no wall map. A clip that still cannot
  map ends on its own (reportClipUnplayable): the bar never shows Audio
  Unavailable for a clip and keeps no unmappable pending point.
- A playback failure during a clip goes through stopClip, so it pauses.
- The 8 s clip end is enforced from Dart position reports; just_audio's
  setClip reloads a single clipped URI with clip-relative positions, which
  would break the playlist and wall mapping. The sheet stops a clip when the
  app is hidden or paused.
- The page fade's solid part stays at the one-row bar height; the extra 44 pt
  of the expanded bar is gradient only.
- Speed is stored only after the player takes it; a refused speed reverts
  the label. Skip buttons are hidden (not dimmed) without a wall map, and
  skipWallTarget drops its no-mapper branch. Stale speed docs fixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds the typed `Conversation Audio Ready` event (source, local coverage,
load ms, pending polls, conversation age in hours) emitted once per load
when the player becomes playable, with a consumer question whose p90 age
sets the on-phone retention window. `Audio Playback Failed` now keeps the
player's own failure kinds and `http_<status|kind>` instead of folding
them all into `unknown`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sation's audio

- Shape: the bar's corner radius eases from the one-row capsule (28) to
  OmiRadius.xl (24) as it grows to two rows, instead of keeping a pill radius
  whose 50 pt ends squeezed the waveform row. FooterGlassSurface takes an
  optional radius so the experimental glass bar follows. The waveform row
  keeps 16 pt side padding; Ask stays level with the bottom row.
- Window: once the audio loads, the waveform spans the mapped wall duration
  (or the playable parts' length without a map), widened only by the
  conversation's own transcript (#19243). Audio-file metadata no longer
  widens it. Before load, estimateConversationAudio counts each audio file
  only where it overlaps the conversation (first line to the later of last
  line and finish), so recording-level parts of a sliced conversation no
  longer stretch the window or the time left. This bug is on main.
- Tests: sliced-recording window before and after load, shrink on load,
  time left, the estimate, radius and padding. Sync tests that relied on
  file-based widening now give their conversations a finish time, and the
  missing-part dim range ends at the conversation's last line.
- Audit: conversation-detail-player-sliced-recording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	app/lib/l10n/app_ar.arb
#	app/lib/l10n/app_be.arb
#	app/lib/l10n/app_bg.arb
#	app/lib/l10n/app_bn.arb
#	app/lib/l10n/app_bs.arb
#	app/lib/l10n/app_ca.arb
#	app/lib/l10n/app_cs.arb
#	app/lib/l10n/app_da.arb
#	app/lib/l10n/app_de.arb
#	app/lib/l10n/app_el.arb
#	app/lib/l10n/app_en.arb
#	app/lib/l10n/app_es.arb
#	app/lib/l10n/app_et.arb
#	app/lib/l10n/app_fa.arb
#	app/lib/l10n/app_fi.arb
#	app/lib/l10n/app_fr.arb
#	app/lib/l10n/app_he.arb
#	app/lib/l10n/app_hi.arb
#	app/lib/l10n/app_hr.arb
#	app/lib/l10n/app_hu.arb
#	app/lib/l10n/app_id.arb
#	app/lib/l10n/app_it.arb
#	app/lib/l10n/app_ja.arb
#	app/lib/l10n/app_kn.arb
#	app/lib/l10n/app_ko.arb
#	app/lib/l10n/app_localizations.dart
#	app/lib/l10n/app_localizations_ar.dart
#	app/lib/l10n/app_localizations_be.dart
#	app/lib/l10n/app_localizations_bg.dart
#	app/lib/l10n/app_localizations_bn.dart
#	app/lib/l10n/app_localizations_bs.dart
#	app/lib/l10n/app_localizations_ca.dart
#	app/lib/l10n/app_localizations_cs.dart
#	app/lib/l10n/app_localizations_da.dart
#	app/lib/l10n/app_localizations_de.dart
#	app/lib/l10n/app_localizations_el.dart
#	app/lib/l10n/app_localizations_en.dart
#	app/lib/l10n/app_localizations_es.dart
#	app/lib/l10n/app_localizations_et.dart
#	app/lib/l10n/app_localizations_fa.dart
#	app/lib/l10n/app_localizations_fi.dart
#	app/lib/l10n/app_localizations_fr.dart
#	app/lib/l10n/app_localizations_he.dart
#	app/lib/l10n/app_localizations_hi.dart
#	app/lib/l10n/app_localizations_hr.dart
#	app/lib/l10n/app_localizations_hu.dart
#	app/lib/l10n/app_localizations_id.dart
#	app/lib/l10n/app_localizations_it.dart
#	app/lib/l10n/app_localizations_ja.dart
#	app/lib/l10n/app_localizations_kn.dart
#	app/lib/l10n/app_localizations_ko.dart
#	app/lib/l10n/app_localizations_lt.dart
#	app/lib/l10n/app_localizations_lv.dart
#	app/lib/l10n/app_localizations_mk.dart
#	app/lib/l10n/app_localizations_mr.dart
#	app/lib/l10n/app_localizations_ms.dart
#	app/lib/l10n/app_localizations_nl.dart
#	app/lib/l10n/app_localizations_no.dart
#	app/lib/l10n/app_localizations_pl.dart
#	app/lib/l10n/app_localizations_pt.dart
#	app/lib/l10n/app_localizations_ro.dart
#	app/lib/l10n/app_localizations_ru.dart
#	app/lib/l10n/app_localizations_sk.dart
#	app/lib/l10n/app_localizations_sl.dart
#	app/lib/l10n/app_localizations_sr.dart
#	app/lib/l10n/app_localizations_sv.dart
#	app/lib/l10n/app_localizations_ta.dart
#	app/lib/l10n/app_localizations_te.dart
#	app/lib/l10n/app_localizations_th.dart
#	app/lib/l10n/app_localizations_tl.dart
#	app/lib/l10n/app_localizations_tr.dart
#	app/lib/l10n/app_localizations_uk.dart
#	app/lib/l10n/app_localizations_ur.dart
#	app/lib/l10n/app_localizations_vi.dart
#	app/lib/l10n/app_localizations_zh.dart
#	app/lib/l10n/app_lt.arb
#	app/lib/l10n/app_lv.arb
#	app/lib/l10n/app_mk.arb
#	app/lib/l10n/app_mr.arb
#	app/lib/l10n/app_ms.arb
#	app/lib/l10n/app_nl.arb
#	app/lib/l10n/app_no.arb
#	app/lib/l10n/app_pl.arb
#	app/lib/l10n/app_pt.arb
#	app/lib/l10n/app_ro.arb
#	app/lib/l10n/app_ru.arb
#	app/lib/l10n/app_sk.arb
#	app/lib/l10n/app_sl.arb
#	app/lib/l10n/app_sr.arb
#	app/lib/l10n/app_sv.arb
#	app/lib/l10n/app_ta.arb
#	app/lib/l10n/app_te.arb
#	app/lib/l10n/app_th.arb
#	app/lib/l10n/app_tl.arb
#	app/lib/l10n/app_tr.arb
#	app/lib/l10n/app_uk.arb
#	app/lib/l10n/app_ur.arb
#	app/lib/l10n/app_vi.arb
#	app/lib/l10n/app_zh.arb
One derivation, AudioPipelineStatus, now drives the device stat tile,
On the Way, the Offline Sync card and Activity (ruling David 2026-11-29):

- "Catching up · {d} · from your Omi" only while a pendant download runs;
  audio waiting on the pendant is On Device again.
- Phone uploads are a quiet "{d} uploading" caption. Repeated server or
  account failures (UploadHealth: 3 failures over 10 min, or any 401/403;
  pacing and refusals excluded) read "Not uploading · safe on this phone",
  and On the Way, Offline Sync and Activity say "Uploads aren't going
  through / {n} recordings are safe on this phone".
- Backup copies of saved conversations, server processing, retained
  audio, on-device and Transcribe Later queues never count. Copies are
  listed only in the sync details sheet ("Backup copies of saved
  conversations"); "Uploaded, awaiting server" is now "Transcribing".

UploadHealth is display only and never changes custody, retries or
deletion. New strings are English stubs in app/l10n-pending.json; eleven
unused keys are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the phone still holds every recording of a conversation, the player
plays them directly instead of waiting on GET /urls and the server's
on-demand MP3 build. LocalConversationAudio matches ledger rows by the
conversation's snapshot stamp (or on-device result id), else by a
trusted capture clock, owner-scoped, one device per conversation, and
places them with the server artifact's span shape so transcript
tap-to-seek and follow are unchanged. Each file decodes lazily to a temp
WAV (existing opus_dart worker) behind a just_audio StreamAudioSource;
the next file is decoded ahead. Partial coverage, a missing file or a
failed local load plays from the server as before (D4), reported as
server_after_local_failure. Conversations transcribed on the phone, which
have no server audio, now get a player when the phone has their audio.

Reader only: no custody, upload or deletion change. Kill switch: PostHog
local_conversation_playback_off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
New installs (not yet onboarded on the first launch of this build) get
the on-phone audio policy David chose on 2026-11-29: confirmed audio
stays until its recording is 7 days old (and at least a day after
confirmation), retained audio is capped at 2 GB oldest-first, and below
2 GB free the oldest goes until 2.5 GB is free. A PostHog payload
(local_audio_retention: days 1-30, cap_mb 256-10240) tunes it. Upgraded
installs keep the legacy Auto-Remove sweep.

Under every policy retention never deletes custody, holds, on-device
pending audio, files the player has leased, or the audio of an on-device
result (its only copy). "Always" keeps everything.

Settings: "Store Audio on Phone" becomes "Keep audio on phone" with
"Last 7 days" / "Always"; the 7-day policy hides Auto-Remove Synced
Copies. English stubs in app/l10n-pending.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On installs with the 7-day policy, live pendant frames the socket
delivered (dropped at once until now) are appended to rolling 5-minute
files in the app cache and indexed as playbackCopy rows, so recent pendant
conversations play from the phone (ruling David 2026-11-29, CUSTODY rule
2 amendment).

A copy is never custody: never uploaded, stamped, judged for transcript
repair or counted as pending, and the Documents orphan census never sees
it. Retention deletes copies first (age, cap, low disk), sign-out deletes
them, account purge removes them. The writer runs after acceptance and
delivery, off the capture queue; a write failure drops the copy, never a
frame, and takes no admission reservation (INV-CAP-1). Local playback
now joins stamped custody files with unstamped copies of the same device.

Kill switch: PostHog pendant_playback_copy_off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level and others added 8 commits November 29, 2026 01:52
Review fixes (DeepSeek H1, M3, M5, low findings):

- H1: one retention pass is now linear. One file-reference census, O(1)
  tracked-list membership, concurrent delete batches of 32 with a yield
  between them, one list rebuild (removeWhere) and one index save. Sizes
  come from the index (storageTotalBytes, else the codec rate); files are
  statted only when the cap or low disk is in play, and only for rows the
  age rule keeps. The startup sweep runs after walReady instead of before
  it. 20.5k rows: ~2.8 s of file I/O, linear (5.5k ~1.0 s, 10.5k ~1.8 s).
- M3: playback copies age out (7 days) under every policy, Always and the
  kill switch included, so a policy change never strands one.
- M5: PostHog local_audio_retention_v2_off restores the 30-day sweep for
  new installs; the payload's low_disk:false disables low-disk eviction;
  payload values are clamped (whole numbers only, bools only).
- Playback-copy rows whose file is missing are pruned at the next sweep.
- Sign-out persists the index after dropping playback copies.
- Low-disk floor/target are static constants (the payload never tuned them).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review fixes (DeepSeek M1, M2, M7, M8, low finding on reasons):

- M1: drift guard from DESIGN §4.4. With the server's capturedDuration,
  local audio plays only within 2% of it; without one, local runs must
  start and end within 2 s of the conversation. Otherwise the server plays.
- M2: no more binary skip. Each file is clipped to the conversation
  window and a head overlapping the previous file is trimmed (sample
  aligned, served as a sliced WAV by LocalWalAudioSource), so overlaps of
  any size play once and nothing is dropped.
- M7: phone-only audio with a file gone keeps the player in its "Audio
  unavailable" state (and Try Again says so again) instead of vanishing.
- M8: a play or seek before the open-time probe answers awaits it.
- Audio Playback Failed: the bar's failure kinds use wire names
  (load_failed, ...); seek_failed and local_audio_missing are allowed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…talls

Review fixes (DeepSeek M4, M6, M9, low finding on status priority):

- M6: with only backup copies of saved conversations left (not uploaded),
  the Offline Sync card reads "No new recordings to sync" instead of
  claiming "All recordings synced".
- Status priority: failing uploads win over a pendant transfer; the
  transfer stays visible ("catching up from your Omi" on the device tile,
  the moving-audio line on On the Way), so neither hides the other.
- M4: upgraded installs show what they keep today ("30 days", or "Until
  you delete it" with Auto-Remove off) as the row value and as a
  read-only current row above the two choices; never "Off".
- M9: choosing Last 7 days asks first ("Keep only the last 7 days?"),
  with Cancel; conversations and cloud audio stay.
- Removes the unused enableLocalStorage string. New strings are English
  stubs in app/l10n-pending.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…optional central

The AccessorySetupKit change made OmiBleManager's central optional and added
deferred connects; the saved-reconnect policy harness now models both.

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 34e275358eef9d93506e6ca2cabafe06ba00ea6f. 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 34e2753

@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 6476b27cd311e3e3f682b4c516e30d1a81709971. 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 16:42
- Paywall: plans lead with a per-month price; the yearly card and the terms
  above the button keep the yearly charge ("billed yearly at US$269.91"),
  with the saving as a percent. Google Play keeps Play's own strings.
- Pairing: on iOS 26.1+ the accessory picker filters discoveries itself and
  labels the closest of several identical devices "{name} · Nearest"
  (pendants all advertise "Omi").
- Voice step: target halved to 12 s of speech; Continue waits for the bar
  (or 60 words for a quiet speaker), a full bar shows "Got your voice" and
  moves on by itself. Removes the "rough draft" note.
- Device tour: End conversation demo settles the waveform into a saved
  conversation ("Saved. New conversation started."); sentence-case titles;
  "A quick hands-on tour", "About 2 minutes". Settings keeps its Title Case
  mute label via a separate onboarding string.
- Pocket flow: the name step comes first (only when sign-in gave none),
  prefilled from the account, so Omi's greeting uses it; resume key v3.
- l10n: new strings translated into all 48 locales; unused keys removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	app/integration_test/perf/production_shell.dart
#	app/lib/l10n/app_ar.arb
#	app/lib/l10n/app_be.arb
#	app/lib/l10n/app_bg.arb
#	app/lib/l10n/app_bn.arb
#	app/lib/l10n/app_bs.arb
#	app/lib/l10n/app_ca.arb
#	app/lib/l10n/app_cs.arb
#	app/lib/l10n/app_da.arb
#	app/lib/l10n/app_de.arb
#	app/lib/l10n/app_el.arb
#	app/lib/l10n/app_es.arb
#	app/lib/l10n/app_et.arb
#	app/lib/l10n/app_fa.arb
#	app/lib/l10n/app_fi.arb
#	app/lib/l10n/app_fr.arb
#	app/lib/l10n/app_he.arb
#	app/lib/l10n/app_hi.arb
#	app/lib/l10n/app_hr.arb
#	app/lib/l10n/app_hu.arb
#	app/lib/l10n/app_id.arb
#	app/lib/l10n/app_it.arb
#	app/lib/l10n/app_ja.arb
#	app/lib/l10n/app_kn.arb
#	app/lib/l10n/app_ko.arb
#	app/lib/l10n/app_lt.arb
#	app/lib/l10n/app_lv.arb
#	app/lib/l10n/app_mk.arb
#	app/lib/l10n/app_mr.arb
#	app/lib/l10n/app_ms.arb
#	app/lib/l10n/app_nl.arb
#	app/lib/l10n/app_no.arb
#	app/lib/l10n/app_pl.arb
#	app/lib/l10n/app_pt.arb
#	app/lib/l10n/app_ro.arb
#	app/lib/l10n/app_ru.arb
#	app/lib/l10n/app_sk.arb
#	app/lib/l10n/app_sl.arb
#	app/lib/l10n/app_sr.arb
#	app/lib/l10n/app_sv.arb
#	app/lib/l10n/app_ta.arb
#	app/lib/l10n/app_te.arb
#	app/lib/l10n/app_th.arb
#	app/lib/l10n/app_tl.arb
#	app/lib/l10n/app_tr.arb
#	app/lib/l10n/app_uk.arb
#	app/lib/l10n/app_ur.arb
#	app/lib/l10n/app_vi.arb
#	app/lib/l10n/app_zh.arb
#	app/lib/widgets/conversation_bottom_bar.dart
@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 f289769a39b8744f0dbb9b1d4524fbd352577488. 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 3 commits November 30, 2026 17:08
From the second onboarding video (new user, a house full of pendants):

- Wrong-device dead end: a device picked in Apple's sheet that does not
  connect is never handed back on its own. It is skipped, and the app gives
  up its access (disconnect + remove the AccessorySetupKit authorization),
  so the next try opens the sheet instead of looping on the same pendant.
- Failure screen leads with "Choose a different device", keeps Try again
  for the same one. A connect past 20 s says "Still connecting…" and offers
  the switch, which stops the attempt and reopens the sheet.
- Visible back button on the connecting screen, back to "Turn on Omi".
- "Turn on Omi" is three steps (press until it vibrates, look for a red
  light, keep it close), and the render shows the red light a switched-on,
  unconnected pendant shows (new omi-without-rope-red asset; blue stays for
  connected). Firmware: red = on, blue = connected, blinking red = clock
  not set; on = press, off = 3 s hold.
- "Having trouble?" opens Omi pairing help (light meanings, on/off, tips)
  with all supported devices one tap away, instead of the brand catalog.

Strings are English stubs listed in app/l10n-pending.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pose header on the Add Device panel

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 2c229cebb007f81b15c9c878bb1cbc38bcded898. 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 2c229ce

…tivity test meets this PR's upload-failure row)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit c89fa27 into main Dec 1, 2026
53 checks passed
@Git-on-my-level
Git-on-my-level deleted the app/onboarding-player-local-playback branch December 1, 2026 00:21
Git-on-my-level added a commit that referenced this pull request Dec 1, 2026
…rding (#26833)

Follow-up to #26706, from David's onboarding run on an iPhone 15 Pro Max
(iOS 27.2.1, local stack).

## What changes

**No "Find Nearby Accessories" consent sheet before the Omi picker (iOS
18+).**
#26706 set `ASPickerDisplaySettings.Options.filterDiscoveryResults` on
iOS 26.1+ so it could label the closest of several pendants "{name} ·
Nearest". That option hands the app raw discovery results, so iOS first
shows "Omi wants to discover nearby accessories". Recordings from before
and after #26706 show the sheet appearing only with that option. This PR
drops app-side filtering:
- The first pick of an app run uses Apple's
`ASDiscoveryDescriptor.bluetoothRange = .immediate`, so only accessories
right next to the phone are offered: the Omi being held, not one across
the room. A second pick (Try Again) uses the normal range.
- The "· Nearest" label, the `nearestName` channel argument and the
`accessoryPickerNearestName` string are removed. Both callers
(onboarding pairing step and the capture connect panel) are migrated.
- Android and iOS 17 and older don't use AccessorySetupKit and are
unchanged.

**Live words on "Tell Omi about your week".**
The live text came a sentence at a time, 5–7 s after the first word was
spoken, because speech-to-text returns only finished chunks. Locally,
Parakeet ends an utterance after a 0.6 s pause. In production,
parakeet-window has a 6 s pace and emits only finished sentences. The
app showed each chunk immediately; BLE and the socket add under 0.2 s.
- `PipelineActivationCapture` now runs the phone's own on-device
recogniser (the existing `services/live_preview` engine:
SpeechTranscriber / SFSpeech on iOS, the on-device engine on Android)
while the step listens. It shows the recogniser's words after the
server's words that already cover them (`LivePreviewCoverage`).
- Display only: audio routing, the `local_preview` declaration and the
server transcript are untouched. The dictation is still matched to its
conversation and enrolled as a voice sample on the server's words alone.
- `LivePreviewController` gains a third reason to run,
`setScreenCapture`, next to the server grant and the
`vendor_recognizer_on_opened_app` front-capture reason. A capture end
clears it, and the page asserts it again on the next capture change.
- With no installed on-device model or speech permission, the engine
never prompts or downloads, and the step shows the server's words as
before.

## Verification

- `flutter test` on live_preview, devices, teach-voice, the yinka
activation flow, onboarding first-run steps and
`voice_profile_running_recording_test.dart`: 422 passed. New tests cover
the screen reason (it starts without a grant, survives grant and front
changes, and is cleared by a capture end) and the onboarding page
(recogniser words show before server words and ignore words from before
the page; leaving the page stops the recogniser; the server's words lead
and alone decide the dictation's transcript).
- `flutter analyze` on the changed directories: no new issues.
- Profile build installed on a physical iPhone (iOS 27.2.1) against the
local stack. Fresh install and onboarding: no consent sheet, the held
Omi offered first with other Omis on nearby, and words appeared as
spoken. Confirmed by David.

## Product invariants affected

- INV-CAP-1: `OmiAccessorySetupPlugin.swift` changes only how Apple's
picker discovers and offers accessories. Connection, subscription and
audio routing are untouched, and the onboarding recogniser takes a
copied tap of frames already delivered, so pendant audio retention is
unchanged.

UI-Evidence: none -- no layout or copy change on any screen; the picker
is Apple's system sheet and the live text box is unchanged, only when
words arrive in it differs, which a screenshot cannot show.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/26833?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/26833?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26833&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
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