Repository navigation
Send while dictating stops it and sends the words, in one press - #2824
Merged
Merged
Conversation
Send was off while live dictation listened, so a dictated message took Stop, then Send. Send now stops listening, waits for the recognizer's last words, and sends through the same submit path and checks as any other send. If dictation fails, or nothing was heard and the box is empty, nothing is sent and the notice above the box says why. Enter still only stops, so the person can read what was heard first.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 00:19
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.
What was wrong
Found in dogfooding (#openbot-dogfooding, 2026-12-02): someone dictated a message and pressed Send, and nothing happened. Send was turned off while live dictation listened, so a dictated message took two presses: Stop, then Send.
What changes
submitDraftpath as every send, with the same checks (empty, over the file cap, card needed, queued mid-turn).LiveDictation.stop()now returns a promise that settles true once the last words are in, and false when listening ended any other way (failed, or typing in the box let it go). Existing callers ignore the result.Tests
The report was from OpenBot Desktop. The Desktop path is what most of these tests drive: the desktop app is faked by its Tauri channel contract (
tests/desktop-shell.fixture.ts), soapp/src/lib/desktop/speech.tsand the Desktop branch ofliveDictationSourcerun for real, and "tonight" is the word the desktop hands over only once it is asked to stop.app/tests/composer-live-dictation.test.tsx(the real composer, with the recorded Chrome speech fake and the Desktop channel fake): Send while listening sends the dictated words, including the last word handed over only after the stop, in the compact and default composer, Chrome and Desktop; a failed dictation sends nothing and says why; nothing heard sends nothing and says why; Send during the permission wait sends the box as it is; on Desktop, the last words still arrive when the channel delivers its messages out of order. The existing tests that Enter only stops still pass. The 5 Send-while-listening tests fail on main.app/tests/composer-send-while-dictating.test.tsx(new, real browser, added to the Chromium + WebKit job): live dictation (Chrome speech fake and Desktop fake) in Chromium and WebKit, Send sends in one press; Enter only stops; a recording in Chromium through the realMediaRecorderon a fake microphone (Chromium's fake capture device on Linux CI), with the transcription answered by the test. The 4 live Send tests fail on main in both engines.Changelog
Send while dictating
Pressing Send while dictating now stops dictation and sends your words in one press.