Skip to content

fix(app): live capture card — icon source, honest pause control, explained errors - #18953

Merged
Git-on-my-level merged 4 commits into
mainfrom
fix/mobile-live-card-ergonomics
Sep 25, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
fix/mobile-live-card-ergonomics

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

David reported problems with the Home live capture card:

  • The "Pendant" label took too much room.
  • Error states were cramped and cut off ("Transcription unavailable · savin…").
  • A ▶ Resume button sat next to a status that did not say Paused.

This PR redesigns the card. Its main parts:

  • The source is shown as an icon.
  • The status reads as two lines: a short state, then the time and what it means for the audio.
  • Problems are explained in a sheet.
  • The Pause/Resume control follows the real pause.
  • The Transcribe Later card uses the same layout.
  • A new backdrop stops list content from showing between the Ask Omi bar and the record button.

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)

  • The source is a glyph in a 36pt circle (pendant, phone or call). Its name ("Pendant", "Phone", "Call") is in the accessibility label only.
  • There is no status dot. Line 1 is a short status: Listening / Paused / Reconnecting… / Offline / Not transcribing / Starting… / Disconnected. Line 2 is muted: the timer, then the consequence ("0:14 · Audio saved, transcribes later"). It can wrap to two lines.
  • A problem state shows an amber warning glyph. Tapping the text opens a showOmiSheet that explains what happened, with a Got It button.
  • The trailing control is Pause while live. It shows Resume only when the reader paused capture.
  • The phone's RecordingState.interrupted covers several causes. They are now named through one shared helper, captureInterruption, used by both the card and the live page:
    • The OS holding the mic (isCallActive: a call, Siri, another app): "Paused · Mic in use by another app", with an explanation and no control, because the OS resumes capture.
    • Capture recovering on its own reads "Reconnecting…" and keeps Pause. With the transcription socket down it adds "· Still recording" and an explanation. A mic stall with the socket up adds nothing. Before, both read "Paused".
    • A pause the reader chose wins over a later interruption, so Resume stays offered.
    • Only the display derivation changed. It reads the existing isCallActive and transcriptServiceReady getters. Capture logic is untouched.
  • A phone recording that is still initialising reads "Starting…", not "Listening".
  • Pendant disconnect mid-capture. Before, the card vanished. Now it shows "Disconnected · Reconnecting…" with a details sheet.
    • The controller forgets the device on disconnect, so the widget remembers the last realtime pendant capture.
    • It clears that memory when the pendant reconnects, is unpaired, or the phone takes over.
    • The time stops at the drop.
    • A paired pendant that never captured stays hidden.

Transcribe Later card

  • It uses the live card's layout, with the timer as 0:14 (was 0m 14s).
  • The settings-copy note ("Works with the phone microphone and Omi or Limitless wearables…") is replaced by the consequence line.
  • Storage full no longer offers Pause, since it is already paused. It shows the warning glyph and "Phone storage full", with the low-storage explanation in the sheet.
  • On a Limitless pendant, the card shows the minutes stored. When storage is almost full it shows "Storage almost full" with an explanation.
  • Controls are OmiButton.secondary compact, 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)

  • New HomeChatBarBackdrop continues 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.

Defect Before After
▶ Resume shown during a transcription outage or buffering, and tapping it paused capture pendant-transcription-unavailable__t0m14__w393__s1.0__en Pause, plus ⚠ Not transcribing
Outage status cut off at every width ("Tran sc…" at 320) pendant-transcription-unavailable__t1h02m45__w320__s1.0__en Two lines, nothing lost in English
"Offline, buffering · 3 / min" split across lines pendant-buffering-offline-3m__t0m14__w393__s1.0__en ⚠ Offline · Audio saved, transcribes later
Row overflowed 3–34px at 2.0x (en/de/ru) and at 320pt/1.3x (de) pendant-listening__t12m34__w393__s2.0__de, …__w320__s1.3__de No overflow anywhere in the matrix
Dropped transcription socket read "Paused" with no control phone-socket-drop__t0m14__w393__s1.0__en ⚠ Reconnecting… · Still recording
OS or other-app mic interruption was indistinguishable from a user pause phone-os-interruption__t0m14__w393__s1.0__en ⚠ Paused · Mic in use by another app, with a sheet
Source label took about a third of the row phone-listening__t0m14__w393__s1.0__en Glyph only
List content showed between Ask Omi and the record circle bottom-row__idle__w393 Solid backdrop
Transcribe Later: Pause / New recording / Stop under 44pt; overflowed at 320pt/1.3x and 2.0x tl-phone-recording__t12m34__w320__s1.3__en, …__w393__s2.0__en 44pt+ targets that stack when needed
Transcribe Later storage full offered "Pause" next to "Paused" tl-phone-storage-full__t0m14__w393__s1.0__en No Pause; ⚠ with a sheet
Transcribe Later showed settings copy as status; timer read 0m 14s tl-phone-recording__t0m14__w393__s1.0__en Consequence line; 0:14
Pendant disconnect mid-capture hid the card pendant-disconnected__t0m14__w393__s1.0__en ⚠ Disconnected · Reconnecting…
Phone initialising read "Listening" phone-initialising__t0m14__w393__s1.0__en Starting…

Strings

Ten new keys, added to all 49 locales with scripts/l10n.py:

  • captureNotTranscribing
  • captureAudioSavedTranscribesLater
  • captureStillRecording
  • captureMicInUseElsewhere
  • captureMicInterruptedDetail
  • captureCustomSttUnreachableDetail
  • captureStarting
  • capturePhoneStorageFull
  • captureStorageAlmostFull
  • capturePendantDisconnectedDetail

Changed and removed strings:

  • Removed: transcriptionUnavailableSavingOnDevice, now unused, along with captureStateLabel's compact flag.
  • Shortened: de and ru reconnecting, to "Verbinde neu…" and "Подключение…", so the status line fits at 320pt/1.3x.
  • Reused for the sheet bodies: transcriptionUnavailableRecordingContinues, transcriptionPausedReconnecting, transcribeLaterStorageFull, pendantStorageAlmostFull and gotIt.

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)

  • A pendant the user switched off on purpose also reads "Disconnected · Reconnecting…" until it reconnects or is unpaired. No provider signal separates an intentional power-off from a drop.
  • The Limitless "storage almost full" sheet is titled "Recording", because the sheet takes the card's status as its title.
  • A pendant (device) transcription socket drop has no Reconnecting state. Only the phone path has a clean signal; transcriptServiceReady is also false at session start.
  • The ⌄ badge target is still 30pt, left as David approved in feat(app): one live capture card and a record-with-this-phone button #18843.
  • In de and ru, line 2 ("Audio gespeichert, wird später transkri…") ends in an ellipsis at 320pt/1.3x and at 2.0x. The status line fits.

Verification

  • flutter analyze on the touched lib, test and integration_test files: no issues.
  • flutter test passed 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 and test/visual_audit.
    • New tests cover: the transcription outage (Pause, the sheet), a dropped socket reading Reconnecting, a mic stall reading Reconnecting with Pause, the OS holding the mic (Paused, no control), a reader pause surviving an interruption, pendant disconnect (with the time frozen) and never-captured-stays-hidden, Transcribe Later storage full (no Pause, 44pt, the sheet), the Transcribe Later 0:14 timer, 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.dart literals dropped from 4/6/7 to 1/1/5.
  • The screenshot matrix was rendered hermetically with 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, uses viewPadding), the tap targets and the sheet usage.

Fixed (commit fix(app): interruption and pause-control fixes from review)

  1. P1. The live page named every interrupted Paused; the card had split it. Both now use captureInterruption.
  2. P1. An interruption on a recording the reader had paused hid Resume and blamed "Mic in use". The reader pause now wins. Tested.
  3. P2. With the socket back up, the state stays interrupted until 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. Only isCallActive hides the control. Tested (the Recording stops / stuck when other audio plays — Omi does not auto-resume (iPadOS) #4706 test is updated to this behaviour).
  4. P2, partly. The time on a dropped pendant kept counting. It now freezes at the drop. Tested.
  5. P2. The card's _togglePause had no error handling. It now shows the same error feedback as the live page.

Declined

  • Finding 4, rest: move the disconnect memory out of the widget into the controller. The coordinator ruled this display-only, with no capture-controller changes. The one case the widget cannot see is a drop that happened before this State existed, 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).
  • Finding 6 (P3): the buffering card drops the minutes buffered. The status line used to be "Offline, buffering · 3 min", which was the long, wrapping status this PR removes. The card's timer and the details sheet ("keeps your audio on this phone… Nothing is lost") carry what the reader needs.
  • Finding 7 (P3): captureNotTranscribing in 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

Git-on-my-level and others added 4 commits September 26, 2026 01:06
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]>
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]>
@Git-on-my-level
Git-on-my-level merged commit a9a8dee into main Sep 25, 2026
39 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/mobile-live-card-ergonomics branch September 25, 2026 19:01
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