Skip to content

fix(mobile): stabilize live episode timers, labels, and transcript frames - #23054

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/episodes-live-fixes
Oct 21, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/episodes-live-fixes

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

What changed and why

P33: live episode timers now advance each second using a local wall clock, independent of segment delivery and the unchanged 30-second server poll. Only the time display rebuilds on the live page; the shared live duration formatter keeps seconds in longer sessions too.

Manual owner/person labels survive revisions of existing live segments, translations, and same-conversation refreshes as well as new lines. Individual-line tags stay individual, and conversation rollover clears the speaker default. The live transcript also snapshots list membership for its lazy delegate: mutating the capture list after the delegate records its item count otherwise produces a reproducible RangeError.

Crash attribution remains open: the reproduced Dart range error is verified, but is not yet proven to be David's native iOS exit. At 14:18Z, 14:38Z, and 14:58Z ASC's latest native crash submission was Oct 18/build 1413 and Crashlytics returned no 1431 events in the Oct 21 report window. The lead is requesting the .ips; no exception or top frames from David's incident are available yet. ASC separately confirms build 1431 is valid and version 1.0.571. No customer content or identifiers were read or included. Crashlytics access used GCP tier ro-prod.

Product invariants affected

INV-UI-3: OmiDuration.live extends the shared duration primitive with localized seconds; existing compact durations keep their behavior. INV-PERF-1: the 1-second tick is scoped to the elapsed label, not the capture provider or transcript.

INV-CAP-1: capture edits affect transcript label projection only; audio ingestion, retention, uplink ownership, and capture control paths retain their current behavior.

How it was verified

  • 118 targeted Flutter tests pass: fake-clock per-second ticks on Home and the live page, minute rollover, no extra server reads, timer disposal, append/revise/translation/refresh label retention, individual tags, newer server manual edits, conversation-scope isolation, and localized long live durations.
  • The lazy-delegate regression failed before the snapshot with RangeError (length): ... 0..1: 69 and passes after it.
  • Visual audit passed at base fd343aa34aba and head 73b0a5afd7a; both production-widget captures were visually inspected. Artifacts are outside Git under /Volumes/Ephemeral/scratch/episodes-live-fixes/visual-verified/.
  • make preflight: 24 selected checks passed. The final revision also passed the bounded push gate, including generated-output checks.
  • Independent Luna review via infra/rollout/bin/review.sh round 1: SHIP; no P0/P1. One P2 about live-region timer announcements is deferred to Mobile: keep live episode clock updates quiet for screen readers #23055 under the urgent lane rules.
  • Native crash attribution, installed-device acceptance, and TestFlight rebuild remain with the lead. No backend/listen deploy is needed for these client changes.

Tests

app/test/widgets/episodes_ui_test.dart, app/test/providers/capture_provider_test.dart, app/test/unit/ui_format/omi_duration_test.dart; visual-audit scenario episodes-live-transcript.

UI evidence

UI-Evidence: none -- before/after production-widget PNGs and gallery are retained outside Git as required by the lane rules: /Volumes/Ephemeral/scratch/episodes-live-fixes/visual-verified/gallery.html

Failure class (fixes)

Failure-Class: none

Tick live elapsed labels independently of server updates, preserve manual
speaker identity on revised segments, and snapshot lazy transcript membership.

Failure-Class: none
Tick live elapsed labels independently of server updates, preserve manual
speaker identity on revised segments, and snapshot lazy transcript membership.

Failure-Class: none
Tick live elapsed labels independently of server updates, preserve manual
speaker identity on revised segments, and snapshot lazy transcript membership.

Failure-Class: none
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T14:52:15.198188Z 73b0a5a PR opened
ℹ️ 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: 73b0a5afd7

ℹ️ 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".

Comment on lines +46 to +48
return LiveEpisodeClock(
clock: episodes.now,
builder: (context, now) => _row(context, episodes, capture, now),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep per-second timers out of live regions

When a screen reader is enabled, this clock changes the enclosing row's Semantics(liveRegion: true) label every second; the page header uses the same clock inside another live region. During any live episode this can therefore trigger continuous announcements that interrupt navigation. Keep the visual timer outside the live-region semantics, provide a stable or coarser semantic value, or reserve announcements for actual recording-state transitions.

Useful? React with 👍 / 👎.

Comment on lines +23 to +26
} else if (assigned != null) {
line.isUser = assigned == 'user';
line.personId = line.isUser ? null : assigned;
line.speakerLabelSource = 'manual';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve authoritative carried labels

When this client has a whole-speaker default and the server sends a segment labeled carried, this branch unconditionally replaces the server's person/owner identity with the local default because only manual inputs are exempted above. carried also represents a confirmed user decision, so a newer assignment from another client—or any corrected carried projection—can be reverted to the stale local person on new lines, revisions, translations, and refreshes. Treat confirmed carried inputs as authoritative and apply the local default only to automatic or unlabeled projections.

Useful? React with 👍 / 👎.

Comment on lines +27 to +31
void _start() {
_tick?.cancel();
_tick = Timer.periodic(const Duration(seconds: 1), (_) {
if (mounted) setState(() {});
});

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 Stop the clock when its subtree is inactive

When the user switches from Home to Tasks or pushes the live episode page, the existing Home tab remains mounted under TickerMode, but Timer.periodic ignores TickerMode and continues calling setState every second. This schedules needless offscreen builds for the hidden live row—plus a second timer while the live page is open—for the duration of long captures. Observe TickerMode/route visibility and suspend the timer whenever this subtree is inactive, in addition to handling app lifecycle changes.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 8015f02 into main Oct 21, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/episodes-live-fixes branch October 21, 2026 15:03
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
Prepares App Store release notes for the next stable 1.0.571 build,
covering pendant audio continuity, scrolling/freezes/crashes,
catching-up status on the Device page, and the live recording timer.
Follows the existing 1.0.568 release JSON format and omits the
beta-gated episodes UI.

Store submission is separately gated on the processed TestFlight build
containing #23076, #23054, and #23044, green tests/CI and tester
eligibility. Submission will use MANUAL release with no phased release;
David controls release. Android rollout is unchanged.

Validation: mobile changelog schema and derived iOS notes passed; 14
preflight checks passed. Independent Luna review: SHIP, no P0/P1;
applied its suggested wording for catch-up details and the per-second
live-page timer. GitHub CI must finish green at the final head before
merge.

Product invariants: no production behavior changes (release-note data
only).
sauranshbhardwaj added a commit to sauranshbhardwaj/omi that referenced this pull request Oct 23, 2026
…unce

The live page status and Home's live row are live regions, and since BasedHardware#23054 the
running length ticks in their label once a second, so VoiceOver and TalkBack
re-read the status (and on Home the whole row) every second. Put the capture
state in the label and the length in the value, which is read on focus but not
announced. Visible text and the 1 s ticker are unchanged.

Closes BasedHardware#23055
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