Repository navigation
fix(app): live capture card — icon source, honest pause control, explained errors - #18953
Merged
Merged
Conversation
The Home live capture card spent a third of its row on the "Pendant" label,
cut its error states to "Transcription unavailable · savin…", and showed
Resume (▶) during a transcription outage. That Resume paused capture when
tapped, because the control read a "degraded" flag rather than the pause.
Card (live_capture_card.dart, processing_capture.dart):
- The source is a glyph in a 36pt circle, with its name in the semantics
label only.
- The status dot is gone. Line 1 is a short status ("Listening", "Paused",
"Reconnecting…", "Offline", "Not transcribing"). Line 2 is muted: the
timer, then the consequence ("0:14 · Audio saved, transcribes later").
- A problem shows an amber warning glyph, and tapping the text opens a
showOmiSheet explaining it with a "Got It" button.
- The trailing control is Pause while live. Resume appears only when the
reader paused capture.
- A phone `interrupted` state with the transcription socket closed (and
the OS not holding the mic) now reads "Reconnecting… · Still recording".
Before, it read "Paused". A mic taken by the OS or another app reads
"Paused · Mic in use by another app". Capture logic is unchanged: only
the display derivation reads the existing isCallActive and
transcriptServiceReady getters.
Home (bottom_nav_bar.dart, page.dart): HomeChatBarBackdrop continues the
tab bar's colour behind the Ask Omi + record row and fades out above it,
so list content no longer shows between the two controls. The record
circle and ⌄ badge are unchanged.
l10n: 6 new keys in 49 locales via scripts/l10n.py. The now-unused
transcriptionUnavailableSavingOnDevice key and captureStateLabel's
`compact` flag are removed.
Tests: capture_home_ui_test, transcription_paused_warning_test (#4706
now asserts the warning glyph and cause, plus a new socket-drop case) and
capture_state_labels_test are updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ive card
Transcribe Later card (processing_capture.dart):
- Uses the live card layout: the source glyph, a bold status and a muted
line with the timer as 0:14 and its consequence ("Audio saved,
transcribes later"). This replaces the settings-copy note.
- Storage full drops the Pause control (capture is already paused). It
shows the warning glyph with "Phone storage full", and tapping the text
opens the storage-full explanation.
- On a Limitless pendant, the card shows the minutes stored. When storage
is almost full it shows "Storage almost full" with an explanation sheet.
- Controls are compact OmiButtons (at least 44pt targets). The first two
sit side by side only when both labels fit whole at the current width
and text size; otherwise each takes its own row, so there is no
overflow at 320pt/1.3x or at 2.0x.
Pendant disconnect mid-capture: the card shows "Disconnected ·
Reconnecting…" with a details sheet instead of vanishing. The controller
forgets the device on disconnect, so the widget remembers the last
realtime pendant capture and its start time. It clears that memory when
the pendant reconnects, is unpaired, or the phone takes over. A paired
pendant that was never capturing stays hidden. Known limit: a pendant
the user switched off on purpose also reads Disconnected until it is
unpaired or reconnects.
Phone initialising reads "Starting…" (RecordingState.initialising), not
"Listening".
l10n: 4 new keys in 49 locales (captureStarting, capturePhoneStorageFull,
captureStorageAlmostFull, capturePendantDisconnectedDetail). de and ru
get shorter captureNotTranscribing and reconnecting strings so the status
line fits at 320pt/1.3x.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Findings from a Cursor Grok review of this PR:
- The live page and the Home card now name `RecordingState.interrupted`
the same way, through the new `captureInterruption` helper:
- The OS holding the mic (`isCallActive`) reads Paused, with no control.
- Capture recovering on its own reads Reconnecting and keeps Pause:
a dropped socket, or a mic stall and its restart.
- Before, the live page called every interruption Paused. The card
called a stall, and a socket that had just reconnected, "Mic in use
by another app".
- A reader pause wins over a later interruption. Resume stays offered,
and the card does not blame another app.
- With the socket up, Reconnecting claims neither "Still recording"
nor a problem, because the microphone itself is restarting.
- The card's Pause/Resume catches failures and says so, as the live
page does.
- A pendant that dropped mid-capture freezes its time at the drop.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
David reported problems with the Home live capture card:
This PR redesigns the card. Its main parts:
The ▶ was a real bug. During a transcription outage or offline buffering, the card showed "Resume", and tapping it paused capture. The icon read a "degraded" flag, but the handler checked
provider.isPaused.Before/after gallery (every state × timer, widths 320/375/393/430, text scale 1.0/1.3/2.0, en/de/ru, bottom row, battery chip, details sheets): https://claude.ai/artifact/PGwsyAUFyo2wqR7NJr3UU2
What changed
Live card (
live_capture_card.dart,processing_capture.dart)showOmiSheetthat explains what happened, with a Got It button.RecordingState.interruptedcovers several causes. They are now named through one shared helper,captureInterruption, used by both the card and the live page:isCallActive: a call, Siri, another app): "Paused · Mic in use by another app", with an explanation and no control, because the OS resumes capture.isCallActiveandtranscriptServiceReadygetters. Capture logic is untouched.Transcribe Later card
0:14(was0m 14s).OmiButton.secondarycompact, so every target is at least 44pt (they were about 36pt before). The first two sit side by side only when both labels fit whole; otherwise they stack. There is no overflow at 320pt/1.3x or 2.0x.Home bottom row (
bottom_nav_bar.dart,page.dart)HomeChatBarBackdropcontinues the tab bar's colour behind the [Ask Omi | record] row and fades out above it. The record circle and the ⌄ badge are unchanged.Defects found → fixed
Filenames are from the screenshot matrix (
<state>__t<timer>__w<width>__s<scale>__<locale>.png) in the gallery.pendant-transcription-unavailable__t0m14__w393__s1.0__enpendant-transcription-unavailable__t1h02m45__w320__s1.0__enpendant-buffering-offline-3m__t0m14__w393__s1.0__enpendant-listening__t12m34__w393__s2.0__de,…__w320__s1.3__dephone-socket-drop__t0m14__w393__s1.0__enphone-os-interruption__t0m14__w393__s1.0__enphone-listening__t0m14__w393__s1.0__enbottom-row__idle__w393tl-phone-recording__t12m34__w320__s1.3__en,…__w393__s2.0__entl-phone-storage-full__t0m14__w393__s1.0__en0m 14stl-phone-recording__t0m14__w393__s1.0__en0:14pendant-disconnected__t0m14__w393__s1.0__enphone-initialising__t0m14__w393__s1.0__enStrings
Ten new keys, added to all 49 locales with
scripts/l10n.py:captureNotTranscribingcaptureAudioSavedTranscribesLatercaptureStillRecordingcaptureMicInUseElsewherecaptureMicInterruptedDetailcaptureCustomSttUnreachableDetailcaptureStartingcapturePhoneStorageFullcaptureStorageAlmostFullcapturePendantDisconnectedDetailChanged and removed strings:
transcriptionUnavailableSavingOnDevice, now unused, along withcaptureStateLabel'scompactflag.reconnecting, to "Verbinde neu…" and "Подключение…", so the status line fits at 320pt/1.3x.transcriptionUnavailableRecordingContinues,transcriptionPausedReconnecting,transcribeLaterStorageFull,pendantStorageAlmostFullandgotIt.Translations are machine-written; a native check is wanted. The least confident are kn, ta, te, mr, bn and ur, and the ru
captureNotTranscribing"Нет текста", which was shortened to fit.Known gaps (deliberately not fixed here)
transcriptServiceReadyis also false at session start.Verification
flutter analyzeon the touched lib, test and integration_test files: no issues.flutter testpassed 170 tests:test/unit/capture_state_labels_test.dart,test/widgets/{transcription_paused_warning,capture_home_ui,conversation_detail_ux,bottom_nav_bar,semantics_baseline,home_announcement_timer,home_product_mounted_guard}_test.dart, the live-page capture tests andtest/visual_audit.0:14timer, and Starting….python3 scripts/l10n.py check: ok, 49 locales.check_mobile_ux_contract.py: the card, nav bar and Home page are clean.processing_capture.dartliterals dropped from 4/6/7 to 1/1/5.flutter test(real widgets, fake providers, SF fonts, iOS platform). It was not run on an installed phone: BLE disconnects, OS audio interruptions and socket drops still need a device check on the next TestFlight build.Product invariants affected
none
Failure class (fixes)
Failure-Class: FC-waiting-copy-ignores-pipeline-state
The card presented a healthy or wrong state after the pipeline had changed: "Paused" for a dropped transcription socket, and a Resume control during an outage that actually paused capture. The same card also hid itself when the pendant dropped mid-capture. The copy and the control are now composed from the live capture signals.
Review (Cursor Grok 4.7 High via agentctl, read-only)
Grok raised 7 findings. It confirmed the steady-state pause mapping, the backdrop (
IgnorePointer, Home tab only, usesviewPadding), the tap targets and the sheet usage.Fixed (commit
fix(app): interruption and pause-control fixes from review)interruptedPaused; the card had split it. Both now usecaptureInterruption.interrupteduntil frames flow, so the card flipped to "Mic in use by another app" and hid Pause. A mic stall (or its restart) now reads "Reconnecting…" with Pause kept. OnlyisCallActivehides the control. Tested (the Recording stops / stuck when other audio plays — Omi does not auto-resume (iPadOS) #4706 test is updated to this behaviour)._togglePausehad no error handling. It now shows the same error feedback as the live page.Declined
Stateexisted, such as a cold launch after a disconnect. That case was already hidden before this PR, so nothing regresses. Grok confirmed there are no false positives for idle, user stop, unpair, Transcribe Later, or the Conversations tab (which does not mount this widget).captureNotTranscribingin de/ru/it/nl/pl/pt reads "no transcript/transcription". That meaning is intended. Line 2 always says the audio is saved. The de and ru strings were shortened on purpose to fit 320pt/1.3x. This is covered by the native-check note above.🤖 Generated with Claude Code