Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Dec 2, 2025

Generated with mux

When accessing mux over HTTP (non-localhost), navigator.mediaDevices is undefined due to browser security restrictions. Previously this caused a crash or hidden button.

Now shows a disabled mic button with tooltip: "Voice input requires a secure connection. Use HTTPS or access via localhost."

Changes:

  • Add requiresSecureContext flag to useVoiceInput hook
  • Show disabled button with educational tooltip instead of hiding/crashing
  • Prioritize HTTPS message over API key message (check HTTPS first)

@ammar-agent ammar-agent force-pushed the voice-input-mode branch 2 times, most recently from 7f81ec6 to c39570a Compare December 2, 2025 06:44
@ammar-agent ammar-agent changed the title 🤖 fix: voice input mediaDevices check for non-HTTPS 🤖 fix: show disabled voice button with HTTPS tooltip on insecure contexts Dec 2, 2025
@ammario ammario enabled auto-merge December 2, 2025 06:46
navigator.mediaDevices is undefined in non-secure contexts (HTTP on
non-localhost). Now shows a disabled mic button with tooltip explaining
HTTPS is required, rather than hiding it entirely or crashing.
@ammario ammario added this pull request to the merge queue Dec 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 2, 2025
@ammario ammario merged commit 38d0f2c into main Dec 2, 2025
23 of 25 checks passed
@ammario ammario deleted the voice-input-mode branch December 2, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants