Skip to content

fix(windows): share the dictation engine before the microphone primes, and report no streams in hex service - #3175

Merged
opencodejr[bot] merged 1 commit into
devfrom
agent/issue-3173
Nov 30, 2026
Merged

opencodejr[bot] merged 1 commit into
devfrom
agent/issue-3173

Conversation

@opencodejr

@opencodejr opencodejr Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #3173, from @Wstnn's report and analysis. #3170 links here as the blocker.

Windows app: windows::dictation::run started and shared the TranscriptionEngine only after prime_microphone returned. With no microphone, priming waits in the recovering input's retry loop forever (could not reopen dictation microphone; retrying). TranscriptionEngine::shared() then stayed empty and POST /streams answered 503 engine-unavailable while a streaming model was loaded. The engine is now started and shared before priming, as Linux and macOS already do.

hex service (including --embedded): this process has no dictation engine, so /streams can never run there, but /capabilities hardcoded streams: true. LocalApiOptions gets a without_streams flag, set by run_service and start_embedded. In those processes /capabilities reports streams: false and creating a stream answers 503 engine-unavailable. The running app is unchanged.

Docs: the availability section of docs/streams.md now covers both cases.

Testing:

  • New test: local_api::streams::tests::a_service_without_the_apps_engine_reports_no_streams_and_refuses_them. It checks that the embedded service reports streams: false and refuses a stream, and that an app API with an engine reports streams: true.
  • python3 scripts/code-shape.py --check passes.
  • Not compiled or tested yet: there was no Rust toolchain in this environment, so scripts/check local_api::streams and clippy need to run before merge.
  • The Windows reorder is not tested on a PC without a microphone.

Fixes #3173

@opencodejr opencodejr Bot added the agent-strict-review Issue pipeline: flagged patch approved by the strict reviewer label Nov 30, 2026
@opencodejr
opencodejr Bot merged commit 4c8db6e into dev Nov 30, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-strict-review Issue pipeline: flagged patch approved by the strict reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: /streams answers 503 engine-unavailable without a dictation microphone (also in hex service), though a streaming model is loaded

0 participants