Skip to content

feat(mobile): send a dictated message in one tap - #14712

Closed
shivamhwp wants to merge 1 commit into
mainfrom
t3code/ios-voice-transcription-controls
Closed

shivamhwp wants to merge 1 commit into
mainfrom
t3code/ios-voice-transcription-controls

Conversation

@shivamhwp

Copy link
Copy Markdown
Collaborator

On iPhone, dictating a message and sending it took two taps. While recording, the composer showed only cancel and a checkmark. The checkmark transcribes the speech into the input box, and only then does the send button come back.

Now there's a send button next to the checkmark while you record. One tap stops recording, transcribes, and sends the message. On the new-task screen it starts the task, or queues it when offline. The checkmark still drops the text into the input box so you can edit it first, and the X still throws the recording away.

Button What it does
X Discard the recording
✓ Transcribe into the input box
↑ Transcribe and send

VoiceInputController.stop() now resolves to whether the transcript reached the draft. Empty speech, a draft edited during transcription, a cancel, or a transcription error never send. If the send is blocked after transcribing, for example while attachments upload, the text stays in the input box. The send runs on the render after the transcript lands, so it reads the new draft and the idle voice state. The 5-minute recording cap still only inserts.

While recording, the send button takes the slot of the red "Stop agent" button. Cancelling or finishing dictation brings it back, and a send while the agent runs queues as usual. Android and web have no dictation, so they don't change.

Validation: 41 voice-input tests pass, including a new one for the stop() result. Mobile and client-runtime typecheck pass. I'll add before/after screenshots from a device run.

🤖 Generated with Claude Code

While dictating on iPhone, the composer offered only cancel and a checkmark
that inserts the transcript, so sending took a second tap after transcription.
A send button now sits beside the checkmark: it finishes recording,
transcribes, and sends the message (or starts the task) once the text lands
in the draft. The checkmark still inserts the text for editing.

VoiceInputController.stop() now resolves to whether the transcript reached
the draft, so empty speech, an edited draft, cancel, or an error never send.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Oct 2, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR adds a new one-tap dictation-to-send workflow that can send messages or start/queue tasks after transcription, spanning multiple production composer surfaces and shared voice runtime code. The change is user-facing and its mobile orchestration is not fully covered by the included tests, so it needs human review.

You can add or adjust custom eligibility rules. Learn more.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.5 KiB 13.5 KiB −29 B (−0.2%) 15.1 KiB ✅
Codex Thread snapshot wire 7.1 KiB 7.1 KiB −8 B (−0.1%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.5 KiB 6.4 KiB −21 B (−0.3%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 56.3 KiB 56.2 KiB −44 B (−0.1%) 66.4 KiB ✅
Codex Live turn messages 10 9 −1 (−10.0%) 21 ✅
Claude Total thread wire 13.5 KiB 13.5 KiB −2 B (−0.0%) 15.1 KiB ✅
Claude Thread snapshot wire 7.1 KiB 7.1 KiB −5 B (−0.1%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.4 KiB 6.5 KiB +3 B (+0.0%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 57.0 KiB 57.0 KiB 0 B (0.0%) 66.4 KiB ✅
Claude Live turn messages 9 9 0 (0.0%) 21 ✅

Baseline: 20012eb · PR result: b74244f · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 114.0 KiB
  • Claude decoded thread snapshot: 114.7 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@juliusmarminge

Copy link
Copy Markdown
Member

Note

Grok responding on behalf of Julius.

Thanks for putting this together, @shivamhwp! This PR changes how iPhone dictation submits a message, but it doesn't link a maintainer approval of that direction and scope, so I'm closing it under Establish the problem and scope first.

Today, the send button is hidden while dictation is preparing, recording, or transcribing (showsSend: false). The checkmark only inserts the transcript into the draft, and the voice-input notes say transcription edits the draft without submitting a turn. This PR adds a send button next to the checkmark on both the thread composer and the new-task screen. One tap stops recording, transcribes, and then sends the message or starts the task, and the button takes over the stop-agent slot while dictation is active. That's a new way to send from dictation. The current extra tap is the intended review-then-send step rather than a bug, and this PR doesn't make it a setting.

The before/after screenshots this UI change needs are also missing, per Provide evidence for the changed behavior. The description says they'll be added from a device run, but none are attached yet. The new stop() test checks whether a transcript reached the draft, but it doesn't show the recording controls or the one-tap send.

Skipping that extra tap is a fair product question, and it's one for the maintainers to decide. To have this reconsidered, link an explicit approval of this workflow's direction and scope, and attach before/after screenshots of the recording controls on both composers. A short recording of stop, transcribe, then send would help too. See Closure and reconsideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants