Skip to content

fix(desktop): announce chip state changes, not every five seconds - #1478

Merged
jonathan308 merged 1 commit into
codex/desktop-mac-preview-20261012from
fix/desktop-chip-announcements
Oct 15, 2026
Merged

jonathan308 merged 1 commit into
codex/desktop-mac-preview-20261012from
fix/desktop-chip-announcements

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Home's chip stage put its whole activity summary in an aria-live="polite" region:

Apple M4 Max: decode, generating tokens. 4 in progress, 0 waiting, about 60 tokens per second. GPU 99% busy.

The numbers change every second, and usePoliteSummary only 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:#f0fdf4
Loading

Legend: blue = data, red = defect, green = changed code / fixed outcome.

Changes

  • features/home/chip/stageText.ts: returns an announcement (name and state) alongside the existing summary.
  • features/home/chip/ChipStage.tsx: the live region speaks announcement, and summary is 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

cd desktop-app
npx vitest run tests/chipStage.test.tsx tests/chipStageText.test.ts   # 2 fail on base; all pass here
npx vitest run tests/chip*.test.ts* tests/app.test.tsx
npx tsc --noEmit
npx prettier --check src tests
make docs-impact-check BASE=origin/codex/desktop-mac-preview-20261012

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


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

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>
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 14, 2026 1:58am UTC
d-inference-console-ui-dev Ready Ready Preview Oct 14, 2026 1:58am UTC
d-inference-landing Ready Ready Preview Oct 14, 2026 1:58am UTC
darkbloom-status Ready Ready Preview Oct 14, 2026 1:58am UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 14, 2026 1:58am UTC

Request Review

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — bbe9b3bb Deployed Oct 14, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — bbe9b3bb Deployed Oct 14, 2026 by vercel[bot]
Preview – d-inference — bbe9b3bb Deployed Oct 14, 2026 by vercel[bot]
Preview – d-inference-landing — bbe9b3bb Deployed Oct 14, 2026 by vercel[bot]
Preview – darkbloom-status — bbe9b3bb Deployed Oct 14, 2026 by vercel[bot]
benchmarks — bbe9b3bb Deployed Oct 14, 2026 by jonathan308 via E2E Benchmarks #2634
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