Voice mode: Connection closed code 1011 - Internal server error

Resolved 💬 5 comments Opened Mar 3, 2026 by chuxusave Closed Apr 15, 2026

Bug description

Voice mode fails with Voice stream error: Connection closed: code 1011 — Internal server error after recording speech.

Steps to reproduce

  1. Run /voice to enable voice mode
  2. Hold Space to record
  3. Release Space to submit

Expected behavior

Speech should be transcribed and submitted as text input.

Actual behavior

Sometimes shows "No speech detected." (even when speaking), other times shows:

Voice stream error: Connection closed: code 1011 — Internal server error

Environment

  • OS: macOS 14 (Darwin 23.6.0)
  • Terminal: VS Code integrated terminal
  • Microphone: MacBook Pro built-in / iPhone (Continuity Camera)
  • sox: installed via Homebrew
  • Microphone permissions granted to VS Code
  • sox can record audio successfully (verified manually)

Notes

  • Local recording works fine (sox -d captures audio)
  • The error appears to be server-side (WebSocket 1011 = Internal Server Error)
  • Happens consistently, not intermittent

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗