Skip to content

feat(dictation): dictated prompts carry an [STT] marker - #18

Merged
collissimo merged 2 commits into
collin/mainfrom
t3/speech-to-text-prompt-marker
Oct 31, 2026
Merged

collissimo merged 2 commits into
collin/mainfrom
t3/speech-to-text-prompt-marker

Conversation

@collissimo

Copy link
Copy Markdown
Owner

Dictated prompts looked exactly like typed ones, so nobody reading them, agents included, could tell they were spoken and might hold transcription errors.

Dictation now puts [STT] in front of the first dictated text of a draft, on desktop, web and iPhone. It sits before the spoken text rather than at the start of the draft, so a typed /command stays the first word. Rewritten ("Reinschrift") prompts and the clipboard fallback carry it too; thread title seeds leave it out.

The helper has its own subpath export because importing voice-input/index.ts pulls controller.ts into web's typecheck, which fails on Promise.withResolvers. Two existing effects in useDictation.ts also got the lint reasons the pre-commit hook requires.

Tests: vp test run for the controller, marker and title files, and for mobile's voice-input folder; tsc for client-runtime, web and mobile. Not tried by hand in a running app.

Done with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Whoever reads a prompt, agents included, can now tell it was spoken and may
hold transcription errors. The marker goes in front of the first dictated text
of a draft, on desktop, web and iPhone, and stays out of thread titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Oct 31, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@collissimo
collissimo merged commit e178fdd into collin/main Oct 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant