Repository navigation
feat(ui-react): integrated voice accessibility — announcements, focus and keyboard flows (#3701) - #3971
Conversation
… focus through voice flows The live and dictation state labels are polite live regions; D7, D8 and L9 are assertive, and an L6 approval request says what to tap assertively. A Start card notice change is announced politely. Ending a live conversation returns focus to the mic, and a live-field control that is disabled or removed while focused (Interrupt once the reply stops) hands focus to Mute or the first usable control. Refs #3701 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…duced motion and axe in the app Refs #3701 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 3971 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 3971 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
Closes #3701
What changed
This is the integrated accessibility pass for voice (epic #3690). The app now uses the kit's
liveprops, which #3692 left to the app.Announcements
role=alert).Focus
No kit component changed.
Why this shape
ConversationStartCard,packages/ui-react/src/components/voice/start-card.tsx): Start is the card's primary control, and focusing it puts focus inside the card's labelled group ("Start a live conversation"). A screen reader announces the group's name and then Start, whicharia-describedbyties to the card's notice. Making the card itself focusable would add a tab stop that does nothing. The test asserts that focus lands inside the card on Start, and that Escape cancels.liveonVoiceStateLabelandVoiceNotice, documented as "the integrated app decides (ui-react: integrated accessibility for voice — announcements, focus and keyboard flows #3701)". The Start card's notice has no live prop, so the app adds a politesr-onlymirror instead of changing the kit.aria-liveat the same moment as the text is announced unreliably. The approval prompt says what to tap, which is what the user needs straight away.Proof
{"version":1,"kind":"brain-check-pr-receipt","head":"25be3f799284c7872c1d6e9674bacdd371a742e8","base":"origin/main","mode":"focused","startedAt":"2026-11-11T12:28:32.739Z","finishedAt":"2026-11-11T12:29:10.301Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12144.874247},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":103.81221899999946},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":66.19958100000076},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":16.508856000000378},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":25215.071773999996}]}New app browser test:
packages/ui-react/tests/browser/voice-accessibility.offline.tsx. It runs in theui-react-layoutproject, which emulatesreducedMotion: "reduce". It uses the real ChatPage in the shell, at 1280×720. The live states are inert client state, set asconversation-controls.offline.tsxdoes: no microphone or provider is opened, and the test asserts that noconversation_audioframe is sent. Dictation uses a scripted recognizer. All fixtures are Odysseus. 3 cases pass.The test records every change to
[aria-live],role=statusandrole=alertwith its politeness. At every state it runsaxe.runon the integrated screen, and it checks thatdocument.getAnimations()has nothing running that moves. The kit'sbreathekeeps running under reduced motion with a single-frame keyframe by design (tokens.css, "Reduced motion"), so the check counts only animations whose keyframes differ.role=alert. Focus moves from the removed End to Close, and Tab reaches Start again.role=alert, and its OK is reachable by Shift+Tab. OK returns focus to the mic.role=alert. Dismiss and Try again are both in the tab order. Dismiss returns focus to the mic.Mutation receipts. Each guard was broken, the new file was run, and the named assertion failed. Every mutation was restored with
git checkout; kit mutations were rebuilt before and after. The restored file passes 3/3.live: "polite"expected null to be 'polite'(label'saria-live)""L6 is assertivelive="assertive"expected undefined to be 'Live conversation stopped…'(last assertive)a disabled Interrupt hands focus to Mute: expected <body>…onLeavefocuses the text field, as beforeEscape returns focus to the mic: expected <textarea …>, and End's mic assertionexpected undefined to be 'The Ithaca relay is slow…'D7 is assertiveD8 is assertiveliveexpected null to be 'polite'.bk-voice-spinis removed (rebuilt)S5: reduced motion runs no animationaria-label(rebuilt)the live field in L1: axe(button-name), andreachable in tab orderLoad: the new file passed 3/3 three times in a row with a
yesprocess on every core.Existing files touched or affected, all passing on this head (local pinned Chromium):
ui-react-layoutfiles pass, 342 cases:voice-accessibilityconversationconversation-controlsconversation-consentconversation-continuousconversation-discardconversation-endpointconversation-contextualdictation-geminidictation-provider-endspoken-turn-marksdialogue-qualifiersdictation-notice.pointer.tsxandcomposer-mic.pointer.tsxpass inrail-fine(37),rail-coarse(37) andrail-mixed(45).dictation-noticenow expects D8's single announcement to come from arole=alert.tsc --noEmitandbun run buildare clean.Refresh: merged main
40dbae0a2(#3726, ui-server relay binding), then0f6296a79(#3980, the tracker announcer fix for red-main incident #3973, which cancelled this PR's first candidate proof), then3c44ac6fc(#3977, safety client). Neither touches a file in this PR. The browser receipts above were taken at00071f451on base4a8c43f38; the receipt is from the merged head.Collisions (
bun scripts/collisions.ts --pathson the changed sources): 29closurereports against long-lived drafts and other open PRs. There are nopathcollisions.bun scripts/collisions.ts --json --pr 3971at head00071f451: 29closurereports and nopathcollisions.Checklist
docs/reflect the change, or nothing documented moved.Anything left open
scripts/runtime-test-builds.tsis unchanged.🤖 Generated with Claude Code