Skip to content

Bound composer action groups to preserve submit access - #4575

Merged
SawyerHood merged 2 commits into
mainfrom
slopcop/issue-4448
Oct 1, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
slopcop/issue-4448

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The composer footer puts plugin actions and submit controls in an unbounded, non-wrapping, non-shrinking group. A single plugin contributing three usage indicators pushes Send entirely beyond a 360px viewport and overlaps the prompt-actions button. Both clean trusted-main checkouts reproduce this host-layout defect.

Reproduction and root-cause report. The public HTML and screenshots are committed to get-bb/reports; its shared GitHub Pages deployment is currently blocked by an earlier deployment, so this link points to the published report source.

What changed

  • Bound and wrap the footer's action group and individual plugin action mounts; retain the submit group's non-shrinking behavior.
  • Keep the left action group on a zero flex basis with a floor at the plus button's width (min-w-9 flex-1), so wide footer controls such as a long model name truncate instead of wrapping Send onto a second row, while oversized plugin actions still wrap without overlapping the plus button.
  • Add a Ladle fixture and a real-browser geometry/touch regression script, including ordinary indicators, one oversized indicator and no plugin actions.
  • Four files in the existing app composer subsystem: 181 total added/deleted text lines (177 additions, 4 deletions). No binaries, dependencies, lockfiles, generated files, stored-data changes, public contracts or protocols change.

How you verified

  • Added the focused browser regression before the production repair: unchanged trusted main fails at 320×740 with control outside composer: 7d usage: 65% remaining and Send's center-point hit test is false. Repeated the failure in a second clean checkout myself.
  • After the repair, all 18 browser cases pass, covering 320–430px portrait, 740×360 landscape and a reduced 360×320 viewport. Each case checks containment, non-overlap, Send hit-testing and a real touchscreen submission.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/plugin/PluginComposerActions.test.tsx src/components/promptbox/PromptBoxInternal.test.tsx: 148 tests pass.
  • App lint and typecheck pass. A broad app run has 5219 passes but hits three failing assertions and one hook timeout in unrelated FilePreview/CommandPalette suites. All three files and both composer suites then pass together with --maxWorkers=2: 247 tests across five files. No unrelated files were changed.
  • git diff --check passes; git diff --numstat origin/main confirms four text files and 181 changed lines.
  • Browser regression: open the plugins--composer-actions--narrow-usage-actions Ladle story in preview mode, then use BB Browser Automation to run apps/app/.ladle/tests/composer-actions.mjs. The report includes the script, fixture, exact failure output, passing output and screenshots inline.
  • Follow-up commit 08ce62bd6b: the original flex-auto change wrapped Send onto a second row when no plugins were installed and the left controls were wider than the remaining space (e.g. "Claude Opus 5.5 (1M context)" at 360px; reproducible from 280px with mock model names). With min-w-9 flex-1, no-plugin composers match main from 240px to 1280px (row height and Send position), the 18-case regression script passes, and the composer suites pass (148 tests).
  • Physical Android keyboard and iOS Safari checks remain unverified; a reduced viewport is not a native keyboard test.

Fixes #4448

AGENT GENERATED

With flex-auto, the left action group's line-break size was its full
content width, so a long model name pushed the submit group onto a
second row even with no plugin actions. Restore the zero flex basis and
floor the group at the plus button's width so it truncates first, while
oversized plugin actions still wrap.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@SawyerHood
SawyerHood merged commit da11f3b into main Oct 1, 2026
20 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-4448 branch October 1, 2026 16:09
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.

Mobile portrait: composer footer controls overlap and Send button is inaccessible

1 participant