You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: A dropped dictation connection keeps the speech engine busy for up to 10 minutes #41069
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Use a remote environment as the voice destination (here over Tailscale), with a local streaming model.
Start a dictation and speak.
Cut the client's network for 20–30 s (Wi-Fi off or tailscale down), then reconnect.
Start a new dictation right away.
Expected behavior
The server notices the dead connection within a few seconds and frees the speech engine, so the next dictation starts.
Actual behavior
The server keeps the dead WebSocket and the single speech slot it holds. Every new dictation is refused within ~1 ms with SpeechBusyError, and the client shows "Live transcription failed. Please try recording again." This lasts until the server finally sees the socket close. Here that took 133 s. The only limit in runSpeechSocket (apps/server/src/speech/stream.ts) is a 10-minute timeout.
GET /api/voice/status reports state: "transcribing" during this time, so the condition is visible but nothing clears it.
The main /ws socket from the same client also stayed open on the server until 19:18:41.9 UTC, so dead connections are not specific to speech. Speech is hit hardest because one stale socket blocks every new dictation.
Activity