Repository navigation
fix(mobile): stabilize live episode timers, labels, and transcript frames - #23054
Conversation
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
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| return LiveEpisodeClock( | ||
| clock: episodes.now, | ||
| builder: (context, now) => _row(context, episodes, capture, now), |
There was a problem hiding this comment.
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 👍 / 👎.
| } else if (assigned != null) { | ||
| line.isUser = assigned == 'user'; | ||
| line.personId = line.isUser ? null : assigned; | ||
| line.speakerLabelSource = 'manual'; |
There was a problem hiding this comment.
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 👍 / 👎.
| void _start() { | ||
| _tick?.cancel(); | ||
| _tick = Timer.periodic(const Duration(seconds: 1), (_) { | ||
| if (mounted) setState(() {}); | ||
| }); |
There was a problem hiding this comment.
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 👍 / 👎.
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).
…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
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.liveextends 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
RangeError (length): ... 0..1: 69and passes after it.fd343aa34abaand head73b0a5afd7a; 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.infra/rollout/bin/review.shround 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.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 scenarioepisodes-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