Skip to content

Start a dictation in an empty field, and send it from the mic button - #3

Merged
djsincla merged 1 commit into
mainfrom
voice-submit-on-stop
Sep 28, 2026
Merged

djsincla merged 1 commit into
mainfrom
voice-submit-on-stop

Conversation

@djsincla

Copy link
Copy Markdown
Owner

What

Two changes to dictation, asked for after using it:

  • A dictation starts a new question. The field is cleared when the dictation is certain: straight away for the mic button, and once the hold is certain for space, so a tap of space never blanks the field. The old text comes back after a tap, after Esc, or if nothing was heard.
  • Stopping with the mic button sends the question. Letting go of space still leaves the text in the field to check before pressing Return.

The send passes along that the question was spoken, so its answer is read back under "When asked by voice". LiveTranscript.compose, which added speech to text already in the field, no longer has a caller and is removed along with its test.

Testing

  • swift test: all 120 tests in 21 suites pass.
  • By hand, on macOS 26.3 with the build installed in /Applications.

🤖 Generated with Claude Code

https://claude.ai/code/session_013iVkaT35YkmM7itiMcNXAt

Two changes asked for after using it.

A dictation now starts a new question rather than adding to whatever was in
the field. The old text is kept, not lost: a tap of space, Escape, or a
dictation that heard nothing puts it back. The field is cleared when the
dictation is certain - at once for the mic button, once the hold is certain
for space - so a tap never blanks the field, even for a moment.

Stopping from the mic button sends the question. Somebody who reached for
the mouse to end a dictation was going to reach for Return next. Letting go
of space still leaves the text in the field to check, because releasing a key
is not a decision to ask.

The send says outright that the question was spoken, rather than relying on
the flag the same moment has just set, so the answer is read back under
"When asked by voice". LiveTranscript.compose, which joined speech onto typed
text, has no caller left and is gone with its test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013iVkaT35YkmM7itiMcNXAt
@djsincla
djsincla merged commit 54c6b0a into main Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant