Skip to content

fix(app): stop announcing Home's live episode clock every second to screen readers - #23417

Merged
kodjima33 merged 2 commits into
mainfrom
issues-improver/23055-quiet-live-clock-announcements
Oct 24, 2026
Merged

kodjima33 merged 2 commits into
mainfrom
issues-improver/23055-quiet-live-clock-announcements

Conversation

@kodjima33

@kodjima33 kodjima33 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

What changed and why

Home's live episode row and the live episode page's status line both wrapped their elapsed-time text in Semantics(liveRegion: true). A live region re-announces on every semantics change, and the elapsed-time ticker changes every second while a capture is live — so VoiceOver/TalkBack users got the whole row (or status line) re-read out loud once a second, interrupting transcript reading.

Added CaptureStateAnnouncement (app/lib/ui/components/omi_live_indicators.dart), which announces only on a real capture-state transition (listening started/paused/stopped), not on every tick, and dropped liveRegion from both ticking widgets. The current elapsed time still reads out on manual screen-reader navigation (default semantics on the Text/label are unchanged) — it just no longer forces a repeat announcement every second.

This was deferred from PR #23054 (P33) as issue #23055, a P2 "independent Luna review" finding: "actual screen-reader behavior has not been verified on a device."

How it was verified

Added a regression test (app/test/widgets/episodes_ui_test.dart, "the ticking elapsed time never re-announces the row, only a real state change does"):

  • Confirmed it fails on unmodified main: the row's semantics node has isLiveRegion == true (the exact reported defect).
  • With the fix: isLiveRegion is false, zero accessibility announcements fire across 5 seconds of ticking while still listening, exactly one fires when the capture state changes (paused), and no further announcements repeat on subsequent ticks in the new state.

Full targeted suite: flutter test test/widgets/episodes_ui_test.dart — 19/19 pass. flutter analyze on all 4 touched files — no issues.

Not verified on a physical device with VoiceOver/TalkBack (no accessible device in this session) — the fix is verified at the semantics-tree level, which is what drives the native announcement behavior on both platforms.

Tests

app/test/widgets/episodes_ui_test.dart

UI evidence

UI-Evidence: none -- accessibility-only change (screen-reader announcement timing); no visible pixel difference to screenshot.

Product invariants affected

none

Failure class (fixes)

Failure-Class: none

Narrow, scoped accessibility-announcement fix; not a recurring class.


Auto-generated from issue feedback by the mini issues-improver — tested and merged.

View guided diff Turn on auto-fix

…creen readers

Home's live episode row and the live episode page's status line both wrapped
their text in Semantics(liveRegion: true), and that text includes the
elapsed-time ticker, which changes every second. A live region re-announces
on every semantics change, so VoiceOver/TalkBack users got the whole row
re-read out loud once a second while a capture was live, interrupting
transcript reading.

Add CaptureStateAnnouncement, which announces only on a real capture-state
transition (listening started/paused/stopped), not on every tick, and drop
liveRegion from both ticking widgets so the current elapsed time still reads
out on manual navigation without forcing a repeat announcement.

fixes #23055
@kodjima33
kodjima33 merged commit 7039929 into main Oct 24, 2026
49 checks passed
@kodjima33
kodjima33 deleted the issues-improver/23055-quiet-live-clock-announcements branch October 24, 2026 14:39
kodjima33 added a commit that referenced this pull request Nov 1, 2026
## What changed and why

Require Nik's explicit current-head approval for UI PRs involving
Git-on-my-level as opener or linked commit author/coauthor. Other
accounts and provider/backend-only work pass. The account introduced the
transparent Home live row in commit 30b960c (#23366); #23417 only
preserved it.

A read-only job resolves the immutable head before SHA-scoped
concurrency. Replaced pending events therefore re-evaluate that same
head, including current approval revocations, without scanning evidence
for unrelated PRs. File/author evidence is bound to immutable base/head
SHAs; SwiftUI source is inspected as data for arbitrarily named
components. Trusted base workflow code reads API data, publishes `UI
author approval` on the exact head and mentions @kodjima33 once per
head. Nik approves with `/approve-ui <full head SHA>` and withdraws with
`/reject-ui <full head SHA>`. No PR code executes with write
credentials. API errors and incomplete author evidence fail closed.

## Verification

Node tests cover opener/author/committer/coauthor, unrelated work,
rename detection, stale/wrong-user approval, revocation, API truncation,
repeated notification deduplication, fresh-head notification and API
failure. actionlint passes. Independent security review found and fixed
shared-SHA status leakage, mutable PR evidence races, dropped pending
revocations, and desktop UI location gaps. Twelve focused tests pass.
Fresh independent security review approved 150e7d0. A live read-only
API run on #24200 took 18.89 seconds and 11 API invocations, expanding
to about 29 HTTP requests across 950 open PRs in ten summary pages
(writes intercepted).

## Activation

Parent owns merging. After the workflow is on main, add required status
`UI author approval`, bound to GitHub Actions app 15368, preserving
Mobile Release Eligibility and strict=false. Do not require the status
before the workflow exists. Existing administrator bypass remains
unchanged (enforce_admins=false). No account access is revoked. Live
Actions behavior is unverified until merged.

## Product invariants affected

none

## Failure class (fixes)

Failure-Class: none
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