Skip to content

Add one-tap Send during voice dictation - #4551

Merged
ymichael merged 3 commits into
get-bb:mainfrom
mattwynne:feature/voice-stop-and-send
Sep 30, 2026
Merged

ymichael merged 3 commits into
get-bb:mainfrom
mattwynne:feature/voice-stop-and-send

Conversation

@mattwynne

@mattwynne mattwynne commented Sep 30, 2026 •

Copy link
Copy Markdown

Human comments

What was wrong

The voice recording bar offered only a completion action that transcribed into the draft. Its normal Send action was hidden while recording, so sending a dictated message required another tap after transcription. Sending the pre-existing draft before transcription finished would omit the new words. See #4422.

What changed

  • Add separate Stop (transcribe into the draft) and Send (stop recording, transcribe, then submit the combined prompt once) actions to the existing recording row, using BB’s square Stop and curved-return Send visuals.
  • Carry send intent through a successful transcript only; clear it on cancellation, failure, or unmount. Do not submit when transcription fails or submission is unavailable. Keep existing draft text intact.
  • Add coverage for control appearance/order, callbacks and disabled states, successful one-time submission with existing text, and cancellation/failure cases.
  • No server/daemon wire changes or CLI changes; this is a composer interaction.

How you verified

  • pnpm exec turbo run test --filter=@bb/app -- src/components/promptbox/VoiceRecordingBar.test.tsx src/components/promptbox/usePromptVoice.test.tsx src/components/promptbox/PromptBoxInternal.test.tsx src/hooks/useVoiceInput.test.tsx — 162 tests passed.
  • pnpm exec turbo run typecheck lint --filter=@bb/app — passed (lint reported existing warnings, no errors).
  • git diff --check origin/main...HEAD — passed.
  • Tested the fork in a live BB session; author confirmed the UI and dictated messages. Physical-phone testing has not been confirmed.

Fixes #4422

AGENT GENERATED

@mattwynne
mattwynne force-pushed the feature/voice-stop-and-send branch from 91d46db to efc435e Compare September 30, 2026 06:18
Keep the pressed completion button at full strength with the spinner while
transcribing, add Add to draft / Send tooltips, use the composer's configured
submit icon for Send, and point the mobile webview probe at the renamed
add-to-draft label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 4b8574b into get-bb:main Sep 30, 2026
30 of 31 checks passed
ymichael added a commit that referenced this pull request Sep 30, 2026
…#4585)

## Human comments

## What was wrong

At phone touch widths, the compact follow-up composer used 32px actions
while the new-thread composer used 40px. Both the compact action utility
and an unlayered follow-up container rule forced the smaller size. Voice
activity also unconditionally expanded the composer, even when there was
no draft content to show. See #4584.

## What changed

- Match compact touch actions to the existing 40px new-thread sizing and
remove the follow-up CSS size override.
- Keep empty recording and transcription in the single-row composer;
expand for text, attachments, or pending uploads so existing draft
content remains visible.
- Give compact recording controls the full row and hide the empty editor
visually and from accessibility traversal.
- Preserve the Stop-to-draft, Send-after-transcription, cancellation,
and failure behavior introduced by merged #4551. No voice hooks,
transport contracts, server policy, SDK, or CLI behavior changed.

## How you verified

- `pnpm exec turbo run test --filter=@bb/app --
src/components/promptbox/VoiceRecordingBar.test.tsx
src/components/promptbox/usePromptVoice.test.tsx
src/components/promptbox/PromptBoxInternal.test.tsx
src/hooks/useVoiceInput.test.tsx` — 165 tests passed.
- `pnpm exec turbo run lint typecheck --filter=@bb/app` — passed; lint
reports existing warnings and no errors.
- `git diff --check` — passed.
- Final CI on `4c60862a20046cbbf026770453cdd1f43f6e0acb`: 17 successful
checks, 3 skipped, no failures or pending jobs. The skipped jobs include
iOS and Android flows; no physical-device claim is made.
- Actual source app, isolated `pnpm start:worktree`, seeded idle thread,
Chromium 390 × 844 with touch: compact primary action and recording
controls are 40 × 40px; empty recording stays 50px tall (baseline:
156px).
- At 320px and 430px touch widths, all three 40px recording controls
remain on screen and usable. Nonempty text and uploaded attachments stay
visible; cancel recording preserves text, cancel transcription leaves
the empty draft untouched.
- A real Codex transcription followed by voice Send produces exactly one
`/send` request containing the preexisting draft, transcript, and
retained attachment; the agent replies `compact voice send verified.`,
and the draft clears. Stop run measures 40 × 40px.
- Matched source-app before/after screenshots and QA details are in the
originating BB thread storage, `HANDOFF.md`. The labeled capture fixture
supplies synthesized speech to the real browser recorder; physical
microphones and Safari/iOS are not verified.

Fixes #4584

> AGENT GENERATED
bborn added a commit to bborn/bb that referenced this pull request Oct 12, 2026
…rk-only)

Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bborn added a commit to bborn/bb that referenced this pull request Oct 12, 2026
…rk-only)

Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bborn added a commit to bborn/bb that referenced this pull request Oct 13, 2026
…rk-only)

Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bborn added a commit to bborn/bb that referenced this pull request Oct 14, 2026
…rk-only)

Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bborn added a commit to bborn/bb that referenced this pull request Oct 22, 2026
…rk-only)

Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

One-click Send during voice dictation

2 participants