Skip to content

Mobile follow-up composer hides environment and context footer when expanded #3601

Closed

Description

@dillonzq

Summary

On iOS, expanding the follow-up composer in a compact thread view leaves the environment summary and context-window indicator hidden. The composer expands and the software keyboard is visible, but the status footer below it remains collapsed; the footer should become visible while the composer is expanded.

Versions and environment

  • bb 0.43.1, native iOS client connected through bb Connect
  • Reproduced in an active Codex thread; the layout bug is provider-independent
  • Confirmed in source on main at cf51227e1135309a3c9c0baf5630be1ca7ba2714
  • Exact iOS version was not collected
  • Investigation thread: thr_vvpf3ju8hq

Steps to reproduce

  1. Open a thread on iOS whose desktop follow-up footer shows an environment summary and context-window usage.
  2. Tap the follow-up composer and wait for the software keyboard and expanded composer layout.
  3. Inspect the area immediately below the composer.

Smallest source reproduction: in a promptbox shell below the 30 rem compact threshold, add data-follow-up-composer-expanded to the follow-up composer. The footer still receives max-height: 0, opacity: 0, and pointer-events: none from the compact container rule.

Expected vs actual

Expected: The expanded composer shows its environment summary, permission control, and context-window indicator footer.

Actual: The composer expands, but the environment summary and context-window indicator remain invisible because the footer stays at zero height.

Evidence

The React component marks the focused composer as expanded and renders the footer when isPromptBoxCompact is false:

const composerElement = (
<div
ref={composerInteractionRef}
className="relative z-20"
data-follow-up-composer=""
data-follow-up-composer-expanded={isInteractionExpanded ? "" : undefined}
hidden={hasPendingInteraction}
onBlurCapture={scheduleCollapseAfterFocusLoss}
onFocusCapture={handleComposerFocus}
onPointerDownCapture={handleComposerPointerDown}
>

{!isPromptBoxCompact ? (
<div
data-follow-up-composer-footer=""
className="mt-1 flex min-h-6 max-h-6 select-none items-center justify-between gap-2 overflow-hidden pl-[15px] pr-3.5 opacity-100 transition-[max-height,min-height,margin-top,opacity] duration-[180ms] ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none"
>
<div className="flex min-w-0 flex-1 items-center gap-1 overflow-hidden">
{environmentSummary}
</div>
<div className="flex shrink-0 items-center gap-2">
{permissionControl}
{contextWindowUsage ? (
<ThreadContextWindowIndicator usage={contextWindowUsage} />

The compact container rule collapses every follow-up footer without excluding a composer carrying data-follow-up-composer-expanded:

bb/apps/app/src/app.css

Lines 450 to 480 in cf51227

@container follow-up-composer style(--follow-up-composer-container-compact: true) {
[data-follow-up-composer] [data-promptbox-layout] {
height: 100%;
}
[data-follow-up-composer] [data-promptbox-main] {
position: static;
}
[data-follow-up-composer] [data-promptbox-submit-group] {
position: static;
z-index: 1;
}
[data-follow-up-composer] [data-promptbox-submit-action] {
width: 2rem;
height: 2rem;
margin-left: 0;
padding: 0;
}
[data-follow-up-composer] [data-promptbox-submit-label] {
display: none;
}
[data-follow-up-composer] [data-follow-up-composer-footer] {
min-height: 0;
max-height: 0;
margin-top: 0;
opacity: 0;
pointer-events: none;

The adjacent compact rules already scope their behavior to :not([data-follow-up-composer-expanded]), which identifies the missing guard on the footer rule.

What you ruled out

Suggested priority and effort

Medium, low effort: mobile users cannot inspect execution context while composing, but no work or data is lost. Scope the existing footer-collapse selector to unexpanded composers and add a CSS regression assertion.

Checks

  • Reproduced on the reported iOS client and confirmed on current main source.
  • Searched open and closed issues for the same problem.
  • The report links the investigation thread and ends with the required marker.

AGENT GENERATED

Activity

  1. added theissue type on Sep 13, 2026
  2. added
    ui
    mobile
    confirmed-repro
    on Sep 13, 2026
  3. bb-slop-cop commented on Sep 13, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Bug · Medium priority · Low effort, with ui and mobile.

    Reproduction report: REPRODUCED, high root-cause confidence. The compact footer-collapse selector also matches expanded composers. Repeated the browser reproduction and failing regression test in two clean trusted-main checkouts; native iOS keyboard interaction was not tested. Reproduction label: confirmed-repro.

    The locally authored guard passed the focused regression and all 4,587 app tests (3 skipped). No duplicate PR was opened or fix pushed because PR #3602 now links to this issue and contains the same guard.

    AGENT GENERATED

  4. ymichael commented on Oct 8, 2026

    @ymichael
    Collaborator

    Fixed by #4470: the expanded mobile composer keeps its environment and context footer visible.

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

    confirmed-repromobileui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions