Conversation
added 7 commits
September 27, 2026 17:18
Chromium exposes SpeechRecognition on plain-http origins but every session fails at once with not-allowed, so the mic showed "voice input failed" immediately. Browser dictation is now only offered in a secure context; the cloud engine keeps working over http. Refs xintaofei#844
This was referenced Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #844
First PR of the speech stack for #844; it targets
maindirectly.What
Dictation for the composer. A mic button records speech and inserts the text into the prompt, using either the browser's speech recognition or an OpenAI-compatible transcription endpoint. It also adds a Speech settings page (engine, language, endpoint and API key; the key never leaves the backend) and microphone entitlements for the desktop app. On plain-http web deployments, browser dictation is reported as unavailable instead of failing on the first click; the cloud engine keeps working.
Commits to review
Checks
pnpm lint .,pnpm test,pnpm build; desktopcargo check,cargo clippy --all-targets --features test-utils -- -D warningsandcargo test --features test-utils; servercargo check,cargo test --libandcargo clippy -D warnings; codeg-mcpcargo checkandclippy. All pass at the tip of the stack, and the behaviour was exercised in web mode in Chromium. No new npm or cargo dependencies.