Skip to content

fix(ui): keep microphone input settings usable on narrow screens - #101377

Merged
fuller-stack-dev merged 2 commits into
openclaw:mainfrom
fuller-stack-dev:codex/fix-talk-microphone-popover
Jul 7, 2026
Merged

fuller-stack-dev merged 2 commits into
openclaw:mainfrom
fuller-stack-dev:codex/fix-talk-microphone-popover

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

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 deviceId constraint.

Release note: Microphone input selection now lives under Chat settings > Voice and remains usable on mobile-width screens.

Evidence

  • Exact head: 23da7f2611
  • Focused state/render tests: 130 passed
  • Browser E2E: 8 passed
  • Responsive browser coverage: 55 passed
  • Production Control UI build: passed (1010 modules)
  • Formatting and git diff --check: passed
  • Independent behavior validation: 10/10 contract clauses passed
  • Fresh Codex autoreview: no findings, patch correct (0.87 confidence)

Visual proof

Desktop Voice settings with a selected USB microphone:

Desktop Chat settings with microphone input under Voice

Mobile blocked-permission state contained inside the settings panel:

Mobile Chat settings with contained microphone permission guidance

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 1440x1000 and mobile 320x720 viewports.

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 getUserMedia calls; 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Jul 7, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Jul 7, 2026
@clawsweeper

clawsweeper Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 3:05 AM ET / 07:05 UTC.

Summary
The branch removes the composer microphone caret/picker and moves microphone selection, refresh, loading, empty, and permission-error states into Chat settings > Voice with responsive styling and coverage.

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
Persistent data-model change detected: serialized state: ui/src/pages/chat/chat-realtime.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #101377
Summary: This PR is the canonical narrow follow-up for the microphone selector’s narrow-screen usability; the earlier merged feature PR and closed issue explain the adjacent feature history but do not supersede this patch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] Physical microphone hardware and the native browser permission dialog were not exercised; the proof uses deterministic browser mocks plus screenshots for the responsive layout and permission-error state.

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is indicated; the remaining action is maintainer proof-sufficiency and merge review for a protected user-visible microphone workflow.

Maintainer decision needed

  • Question: Is the screenshot and deterministic-browser proof enough to land this settings-owned microphone selector, or should maintainers require physical microphone/native permission-dialog proof first?
  • Rationale: The patch changes a user-visible microphone permission and device-selection workflow; the source and tests are strong, but the PR body explicitly leaves physical hardware and native permission-dialog proof untested.
  • Likely owner: steipete — He authored the original microphone-selector issue and merged the predecessor implementation that this PR revises.
  • Options:
    • Land with existing proof (recommended): Accept the mocked browser coverage plus inspected desktop/mobile screenshots as sufficient for this responsive UI follow-up, then merge after current-head CI and normal maintainer review.
    • Request hardware proof: Ask for a short redacted run with a physical microphone and browser permission dialog before merging, trading speed for higher end-to-end confidence.
    • Pause the follow-up: Hold or close this PR if maintainers want the microphone selector to remain in the composer caret until a broader Talk control design is revisited.

Security
Cleared: The diff stays within Control UI rendering, CSS, and tests and does not add dependency, credential, workflow, package, or supply-chain changes.

Review details

Best 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 changes

Label justifications:

  • P2: The PR fixes a bounded Control UI usability bug for realtime Talk microphone selection on narrow screens.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body includes inspected after-fix desktop and mobile screenshots plus command summaries showing the settings placement, contained 320px permission guidance, passive settings open, explicit refresh, and exact deviceId capture.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes inspected after-fix desktop and mobile screenshots plus command summaries showing the settings placement, contained 320px permission guidance, passive settings open, explicit refresh, and exact deviceId capture.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body includes inspected after-fix desktop and mobile screenshots plus command summaries showing the settings placement, contained 320px permission guidance, passive settings open, explicit refresh, and exact deviceId capture.
Evidence reviewed

PR surface:

Source -62, Tests +140. Total +78 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 7 191 253 -62
Tests 4 216 76 +140
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 407 329 +78

What I checked:

  • Repository policy read: Read full root AGENTS.md and scoped ui/AGENTS.md; the OpenClaw review policy required checking current source, PR head behavior, tests, proof, related PR context, and feature history before verdict. (AGENTS.md:1, c87225fb4a17)
  • Current main still has the narrow composer picker: origin/main still renders the composer Microphone input caret and renderRealtimeTalkInputPicker path, so the PR is not redundant with current main. (ui/src/pages/chat/components/chat-composer.ts:2441, c87225fb4a17)
  • PR head moves the control into Voice settings: The PR head renders the microphone select, fallback selected-device option, explicit refresh action, loading, empty, and error states inside renderRealtimeTalkOptions. (ui/src/pages/chat/components/chat-realtime-controls.ts:96, 17329d4f30d5)
  • PR head preserves passive-open and explicit-permission behavior: Chat settings receives the realtime input state and refresh callbacks; opening settings performs passive discovery while the refresh button requests permission. (ui/src/pages/chat/chat-pane.ts:857, 17329d4f30d5)
  • PR head defers missing-device errors until permissioned discovery: The selected-device-unavailable warning now requires permissioned discovery with no lower-level warning, so passive settings open does not reject an incomplete browser device list. (ui/src/pages/chat/chat-realtime.ts:118, 17329d4f30d5)
  • Behavior coverage targets the changed workflow: The PR head E2E verifies no composer Microphone input button, selects USB from Chat settings, starts capture with exact deviceId, and keeps blocked-permission guidance inside a 320px settings panel. (ui/src/e2e/browser-talk-start-stop.e2e.test.ts:121, 17329d4f30d5)

Likely related people:

  • steipete: Authored the original feature issue and merged the microphone input selector in feat(ui): select microphones from the Talk control #101100, which touched the same chat, realtime input, and responsive CSS paths this PR revises. (role: introduced behavior and adjacent feature owner; confidence: high; commits: 92cfceac0924; files: ui/src/pages/chat/components/chat-realtime-controls.ts, ui/src/pages/chat/components/chat-composer.ts, ui/src/pages/chat/chat-pane.ts)
  • fuller-stack-dev: Authored the recent merged Control UI composer redesign in feat(ui): redesign chat composer controls #100461, which touched the same composer/settings boundary, and authored this focused follow-up branch. (role: recent area contributor; confidence: high; commits: 17d3c2eb0a80, 23da7f261141, 17329d4f30d5; files: ui/src/pages/chat/components/chat-composer.ts, ui/src/pages/chat/components/chat-controls.ts, ui/src/pages/chat/chat-pane.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-07T05:30:11.092Z sha 23da7f2 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 7, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Land-ready verification for prepared head 17329d4f30d5de29f78994c5361027ce5c4ff5d3:

  • Canonical-fix review: this is the only focused open fix for the narrow microphone-picker failure. It moves microphone selection into the existing Voice settings owner without adding a second state path.
  • Focused Testbox proof (blacksmith-testbox, tbx_01kwxmbww355gt8z99tsg9sq9k): 139 UI tests passed; 2 Control UI browser E2E tests passed.
  • Browser proof: at 320x720 the settings dialog and permission alert remain contained and usable; at 1440x1000 the selector, refresh button, long labels, keyboard selection, Escape close, and focus restoration work without overlap.
  • Regression coverage: a persisted device missing from passive discovery remains selectable, while explicit successful permissioned discovery can report that it disappeared; permission guidance keeps precedence.
  • Static proof: path-scoped oxfmt --check, oxlint, and git diff --check passed. The local build passed.
  • Broad authority: exact-head GitHub Actions CI run https://github.com/openclaw/openclaw/actions/runs/28847579441 passed build, production/test type checks, lint, and test shards.

The broad local pnpm check was interrupted with exit 130 because an unrelated shared test lock was held by #101293; this was orchestration status, not a code failure. Exact-head hosted CI is the broad authority. Browser screenshots were kept out of the branch; artifact publishing was unavailable due an authorization error. Physical microphone hardware and the native permission dialog were not exercised; deterministic browser mocks cover those states.

@fuller-stack-dev
fuller-stack-dev merged commit d8ffb1f into openclaw:main Jul 7, 2026
75 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

Thanks @fuller-stack-dev!

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
…nclaw#101377)

Merged via squash.

Prepared head SHA: 17329d4
Co-authored-by: fuller-stack-dev <[email protected]>
Reviewed-by: @fuller-stack-dev
sheyanmin pushed a commit to sheyanmin/openclaw that referenced this pull request Jul 8, 2026
…nclaw#101377)

Merged via squash.

Prepared head SHA: 17329d4
Co-authored-by: fuller-stack-dev <[email protected]>
Reviewed-by: @fuller-stack-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant