Repository navigation
fix(ui): explain blocked Talk microphone access - #127673
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 21, 2026, 7:02 PM ET / 23:02 UTC. ClawSweeper reviewWhat this changesThis PR maps blocked browser microphone access in Chat Talk to localized recovery guidance and adds unit and browser-flow coverage. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the owner-level mapping is the right boundary, but the patch still shows raw browser error text and code beneath the new recovery guidance. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherChat creates a Talk session, then its browser transport acquires microphone media. A media-acquisition failure becomes the Chat alert and triggers Talk-session cleanup so the voice control can be used again. flowchart LR
A[Chat voice control] --> B[Talk session creation]
B --> C[Browser microphone request]
C --> D[Talk input error mapping]
D --> E[Chat error alert]
E --> F[Close failed Talk session]
F --> G[Voice control available again]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +49. Total +52 across 3 files. View PR surface stats
Review metrics
Mantis proof suggestionA redacted Chat capture would directly verify that the repaired alert contains only actionable recovery guidance. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Throw a public mapped microphone error without the DOMException cause, preserve AbortError and selected-device behavior, and assert the exact Chat alert text in the browser E2E. Do we have a high-confidence way to reproduce the issue? Yes: current main’s raw rethrow is source-proven, and the supplied real-browser before image shows that exact user-visible outcome; this review did not execute the flow locally. Is this the best way to solve the issue? No: mapping at the shared microphone owner is correct, but retaining the DOMException cause defeats the intended user-facing replacement text. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against be0bcb395d7a. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
07b219b to
0e2392b
Compare
|
Addressed every ClawSweeper finding and rank-up move on
Final local proof: owner tests 23/23; full Talk source-Chromium E2E 10/10; changed-gate formatting, guards, i18n, core/UI typecheck passed; focused final lint passed with 0 warnings/errors; fresh structured autoreview is clean at 0.96 confidence. |
0e2392b to
9579123
Compare
|
Land-ready on exact head All ClawSweeper findings and rank-up moves are addressed. The follow-up CI failure was diagnosed as the repository's no-new-production-suppression ratchet; the final owner now carries an explicit closed stream-or-sanitized-failure outcome, creates the public Error after the catch, and adds no suppression or baseline exception. Verification:
Production +19/-9 (net +10); tests +47/-0. The production growth is the closed outcome needed to satisfy both the public-error boundary and no-new-suppression policy while preserving |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where users starting Talk from Chat after blocking microphone permission would see only raw browser text such as “Permission denied,” with no guidance on how to recover.
Why This Change Was Made
The shared microphone-acquisition owner now routes non-cancellation browser media errors through its existing localized input-error description. The mapped public error intentionally omits the browser exception cause because Chat formats causes into its visible alert. Selected-device
OverconstrainedErrorguidance andAbortErrorlifecycle cancellation remain unchanged; no Gateway, provider, config, permission, or session contract changes.User Impact
When browser microphone access is blocked, Chat now shows only actionable browser-settings guidance. The failed Talk allocation still closes, and the Start voice input action becomes available again.
Evidence
deniedinstead of the existing localized recovery copy.The existing canonical helper was introduced for dictation and device discovery, but the direct Talk acquisition catch still rethrew browser
DOMExceptiontext. This patch completes that owner boundary with four production lines and adds one owner regression plus one user-path E2E. It also incorporates both ClawSweeper rank-up moves: remove the causal browser exception from the mapped public error and assert exact browser-visible text.