Repository navigation
Match compact composer touch actions and keep empty recording compact - #4585
Merged
ymichael merged 1 commit intoSep 30, 2026
Merged
Conversation
ymichael
deleted the
bb/fix-discrepancies-in-the-compact-composer-thr_qbgqwhee67
branch
September 30, 2026 21:55
ymichael
added a commit
that referenced
this pull request
Oct 1, 2026
## Human comments ## What was wrong PR #4585 (`c1d72f0ee2`) removed the narrow follow-up composer’s fixed width/height to allow 40px touch controls, but retained its padding reset. The narrow follow-up composer also hides submit labels. Expanded icon-only buttons then shrink to the glyph width while retaining their normal height: the microphone was 16 × 40 pixels on touch screens. ## What changed Give submit actions in the existing compact container query an automatic width and a 1:1 aspect ratio. This preserves the existing 32px desktop and 40px touch heights and makes the microphone, send, and stop controls square in collapsed and expanded follow-up composers. Two CSS declarations; no API, CLI, schema, or host-daemon protocol change. ## How you verified - `pnpm start:worktree --dryrun` and `pnpm start:worktree` built and launched the actual production source app at commit `20f204214b0b12bd4333ab8da93dd5eb48f750cb`; fresh isolated data and one idle thread fixture, no provider turn. - Chromium touch emulation: collapsed and expanded microphone/send buttons are 40 × 40. Restoring the prior CSS in the same source app reproduces the expanded microphone at 16 × 40; matched screenshots are in the originating thread storage. - Narrow desktop follow-up: collapsed and expanded submit buttons are 32 × 32; new-thread microphone/send controls retain 32px desktop and 40px touch sizing, with empty and typed drafts. - iOS 26.5 Simulator Safari on iPhone 17 Pro: collapsed follow-up microphone visibly square. Expanded Safari and recording/transcription are not covered; no simulator input driver is available. Touch emulation is distinct from the Safari screenshot. - Final-head CI passed, including all three app shards. App-3 initially failed a sidebar hide-menu assertion at `NavigationPlugin.test.tsx:557`; all 51 tests in that file passed locally, and rerunning only that CI job passed. No test or sidebar change was needed. - `pnpm exec turbo run lint --filter=@bb/app`: passed, with existing warnings and zero errors. `pnpm exec oxfmt --check apps/app/src/app.css` and `git diff --check`: passed. > AGENT GENERATED
brsbl
added a commit
that referenced
this pull request
Oct 1, 2026
## Human comments ## What was wrong On phones, the follow-up composer's action button squeezed to 16px wide once the composer expanded: the mic when the draft is empty, Send once text is typed, and Stop while a run is active. A compact-container rule in `app.css` sets `padding: 0` on `[data-promptbox-submit-action]`. It used to sit next to `width: 2rem; height: 2rem`, which #4585 removed. The expanded variants size themselves with horizontal padding (`px-2` / coarse `px-3`) rather than a fixed width, so with the padding zeroed they collapse to the 16px icon. The collapsed variants set `p-0` and a fixed size themselves and never needed the rule. ## What changed - `apps/app/src/app.css`: drop `padding: 0` from the compact `[data-follow-up-composer] [data-promptbox-submit-action]` rule and keep `margin-left: 0`. - With this change, expanded phone actions are 40×40 again, matching the collapsed composer. Desktop and the new-thread composer are unchanged. ## How you verified - Dev web app in headless Chrome for Testing (BB Browser Automation), 390×844 at 2×, touch emulation. Before is `main` at `2573ad5e8`; after is this branch at `39097d801`. - Measured the expanded composer's action button: mic 16×40 → 40×40, Send 16×40 → 40×40, Stop 16×40 → 40×40. - The Stop pair was captured during two separate runs, so the timelines differ; the composer state is the same. | State | Before | After | | --- | --- | --- | | Expanded, empty draft (mic) |  |  | | Expanded, with text (Send) |  |  | | Expanded, run active (Stop) |  |  | BB-Thread-ID: thr_nefp8h4g4r > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.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.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)./sendrequest containing the preexisting draft, transcript, and retained attachment; the agent repliescompact voice send verified., and the draft clears. Stop run measures 40 × 40px.HANDOFF.md. The labeled capture fixture supplies synthesized speech to the real browser recorder; physical microphones and Safari/iOS are not verified.Fixes #4584