Skip to content

fix(webui): detect Chrome voice recording support - #5027

Merged
chengyongru merged 9 commits into
HKUDS:mainfrom
chengyongru:fix/chrome-voice-input
Jul 22, 2026
Merged

chengyongru merged 9 commits into
HKUDS:mainfrom
chengyongru:fix/chrome-voice-input

Conversation

@chengyongru

@chengyongru chengyongru commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fix WebUI voice recording capability detection in Chrome.
  • Use the browser-owned standard window.MediaRecorder constructor.
  • Keep the modern navigator.mediaDevices.getUserMedia path without legacy fallbacks.
  • Distinguish a missing microphone from blocked browser/system permission.
  • Clear voice errors on retry and fade them out automatically after a few seconds.
  • Localize the concise voice access messages across all supported locales.

Verification

  • cd webui && npm run test -- src/tests/i18n.test.tsx src/tests/thread-composer.test.tsx (73 passed)
  • cd webui && npm run build
  • cd webui && npm run lint
  • git diff --check

@chengyongru chengyongru added priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. bug Something isn't working fix webui test labels Jul 22, 2026
@chengyongru
chengyongru merged commit 63bc6e9 into HKUDS:main Jul 22, 2026
5 checks passed
@chengyongru
chengyongru deleted the fix/chrome-voice-input branch July 22, 2026 06:10
okwillbe pushed a commit to okwillbe/nanobot that referenced this pull request Aug 15, 2026
StefanoParadisi pushed a commit to StefanoHernandez/nanobot that referenced this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fix priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. test webui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant