Repository navigation
fix(desktop): announce chip state changes, not every five seconds - #1478
Merged
jonathan308 merged 1 commit intoOct 15, 2026
Merged
jonathan308 merged 1 commit into
jonathan308 merged 1 commit into
Conversation
Home's chip put its whole activity summary, including requests in progress, waiting requests, tokens per second and GPU busy, in a polite live region. Those numbers change every second, so usePoliteSummary's five-second throttle let a screen reader re-announce about 20 words every five seconds for as long as Home was open, even with the animation paused or reduced motion on. Announce only the chip's name and state, and keep the detailed summary as screen-reader text outside the live region. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 01:57 — with
GitHub Actions
Error
jonathan308
merged commit Oct 15, 2026
1d8ef18
into
codex/desktop-mac-preview-20261012
20 of 22 checks passed
This branch was successfully deployed
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
Home's chip stage put its whole activity summary in an
aria-live="polite"region:The numbers change every second, and
usePoliteSummaryonly throttles to one update per 5 s. In headless Chrome the region changed 9 times in 45 s (about 20 words each), and still 3 times in 25 s with the chip animation paused and reduced motion on. A screen-reader user on Home heard this repeatedly, interrupting whatever else they were doing.After: the live region carries only the chip's name and state (Apple M4 Max: live activity. / …: provider stopped., or the phase in preview), so it speaks when the state changes. The full summary with current numbers stays in the chip region as screen-reader text, readable on demand but not announced. The visible readouts are unchanged.
Found during the second desktop UI audit pass (keyboard and screen reader). Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["Numbers change every second"]):::user --> B2["aria-live = full summary<br/>(throttled to 5 s)"]:::bad B2 --> B3(["~20 words re-announced every 5 s"]):::bad end subgraph After["After"] direction TB A1(["Numbers change every second"]):::user --> A2["aria-live = name + state only"]:::fix A2 --> A3(["Silent until the state changes"]):::good A1 --> A4["full summary: screen-reader text,<br/>not live"]:::fix end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = data, red = defect, green = changed code / fixed outcome.
Changes
features/home/chip/stageText.ts: returns anannouncement(name and state) alongside the existingsummary.features/home/chip/ChipStage.tsx: the live region speaksannouncement, andsummaryis rendered as non-live screen-reader text.tests/chipStage.test.tsx,tests/chipStageText.test.ts: the live region has no live numbers, the detail is still present, and the announcement text is checked. Both fail on the base branch.CHANGELOG.md: Unreleased entry.Validation
Limitations
In the development preview, the simulated phase (prefill and decode) still alternates, so the preview announces those phase changes. Live mode says live activity and changes only with the provider state.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.