Skip to content

Compact composer shrinks touch actions and expands empty voice input #4584

Closed

Description

@ymichael

Summary

At phone touch widths, the collapsed follow-up composer keeps its primary action at 32px while the new-thread composer uses 40px. Starting voice input with an empty draft also expands the follow-up composer and leaves unnecessary space above the recording controls.

Versions and environment

  • Source baseline: 4b8574b5e3da3733efd9c6cd63012373f9071cc3 (includes merged Add one-tap Send during voice dictation #4551).
  • macOS, Node 22.23.1; isolated pnpm start:worktree store and synthetic Codex thread.
  • Headless Chromium, 390 × 844 CSS pixels, touch enabled. Capture fixture supplies synthesized speech to the browser's real MediaRecorder; this is not a physical-phone or iOS test.

Steps to reproduce

  1. Run the source app at the baseline commit in a fresh store and create an idle thread.
  2. Open the thread at a 390 × 844 touch viewport; leave the follow-up draft empty and unfocused.
  3. Measure the primary voice button and compare it with the empty new-thread composer.
  4. Start voice input with an empty draft; measure the composer again.
  5. Cancel recording, enter Review the compact composer., blur the draft, and start recording again to verify existing text stays visible.

Expected vs actual

Observed source-app measurements:

Collapsed primary touch action: 32 × 32 px
Empty composer before recording: 50 px tall
Empty composer during recording: 156 px tall

Expected: touch actions match the 40px new-thread actions, and empty recording/transcription keeps the composer at its compact height. A nonempty draft should stay visible while recording.

Evidence

The component forces expansion whenever voice controls are active:

const showCompactLayout =
compact?.isCompact === true && !showVoiceActionGroup;

An unlayered container rule independently forces follow-up primary actions to 2rem, overriding their touch sizing:

bb/apps/app/src/app.css

Lines 488 to 494 in 4b8574b

[data-follow-up-composer] [data-promptbox-submit-action] {
width: 2rem;
height: 2rem;
margin-left: 0;
padding: 0;
}

Baseline empty recording, labeled Chromium speech capture fixture

Screenshot access requires Michael's existing BB account session. Investigation: BB thread thr_qbgqwhee67.

What you ruled out

AGENT GENERATED

Activity

  1. added theissue type on Sep 30, 2026
  2. added
    mobile
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mobile

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions