Repository navigation
fix(ui): keep microphone input settings usable on narrow screens - #101377
fuller-stack-dev merged 2 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 3:05 AM ET / 07:05 UTC. Summary PR surface: Source -62, Tests +140. Total +78 across 11 files. Reproducibility: yes. from source and PR proof, though I did not run a live failing session locally: origin/main still renders the microphone picker as a composer popover, while the PR head screenshots and E2E cover the settings-panel path at 320px. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the settings-owned microphone selector after maintainer review and current-head CI, keeping browser-local device selection and exact capture constraints in the existing realtime input path. Do we have a high-confidence way to reproduce the issue? Yes from source and PR proof, though I did not run a live failing session locally: origin/main still renders the microphone picker as a composer popover, while the PR head screenshots and E2E cover the settings-panel path at 320px. Is this the best way to solve the issue? Yes: moving microphone selection into the existing Voice settings removes the narrow nested popover without adding a second setting owner, while preserving browser-local state and exact capture constraints. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c87225fb4a17. Label changesLabel justifications:
Evidence reviewedPR surface: Source -62, Tests +140. Total +78 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
Land-ready verification for prepared head
The broad local |
|
Merged via squash.
Thanks @fuller-stack-dev! |
…nclaw#101377) Merged via squash. Prepared head SHA: 17329d4 Co-authored-by: fuller-stack-dev <[email protected]> Reviewed-by: @fuller-stack-dev
…nclaw#101377) Merged via squash. Prepared head SHA: 17329d4 Co-authored-by: fuller-stack-dev <[email protected]> Reviewed-by: @fuller-stack-dev
What Problem This Solves
Fixes an issue where users choosing a realtime voice microphone would get an unusable nested composer popover on narrow screens, with long permission guidance collapsing into a thin vertical column.
Why This Change Was Made
Moves microphone input selection into the existing Chat settings Voice section and removes the composer caret/popover. Opening settings only enumerates available inputs; the adjacent refresh action is the explicit permission-request path.
User Impact
Users can select and refresh their microphone alongside Voice, Model, and Sensitivity settings. The selected input still persists per gateway and is passed to capture as an exact
deviceIdconstraint.Release note: Microphone input selection now lives under Chat settings > Voice and remains usable on mobile-width screens.
Evidence
23da7f2611130 passed8 passed55 passed1010modules)git diff --check: passed10/10contract clauses passed0.87confidence)Visual proof
Desktop Voice settings with a selected USB microphone:
Mobile blocked-permission state contained inside the settings panel:
Behavior addressed: Moves microphone input selection out of the narrow composer popover and into Chat settings > Voice.
Real environment tested: Live local Control UI mock gateway in Chromium-compatible Chrome at desktop
1440x1000and mobile320x720viewports.Exact steps or command run after this patch:
node scripts/run-vitest.mjs ui/src/pages/chat/chat-controls.test.ts ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-realtime.test.ts;node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/browser-talk-start-stop.e2e.test.ts ui/src/e2e/chat-composer-redesign.e2e.test.ts;pnpm ui:build;pnpm format:check -- <changed files>.Evidence after fix: Desktop settings show the selected USB input in a full-width Voice row; mobile settings show the microphone control and blocked-permission callout fully contained within the panel. Opening settings made zero
getUserMediacalls; explicit refresh made exactly one.Observed result after fix: Device selection persists, capture uses
{ audio: { deviceId: { exact: "usb" } } }, and the composer exposes a single microphone action without a device caret.What was not tested: A physical microphone device and a real browser permission dialog were not exercised; media-device discovery, permission denial, selection persistence, and exact capture constraints were validated with deterministic browser mocks.