Skip to content

Narrow side-chat composer collapses when opening the model picker #2394

Done

Description

@celeroncoder

Summary

When the side-chat panel is narrow, the composer starts as a pill. Clicking the pill expands it, but clicking the model selector immediately collapses the composer again instead of opening the model picker.

The model picker works normally when the panel is wide enough for the full composer to stay visible.

Versions and environment

  • bb 0.39.0 (web app), Ubuntu 24.04
  • pi, Gemini 3.7 Flash via CLIProxyAPI
  • local environment, bb Connect paired

Steps to reproduce

  1. Open a side chat in a narrow panel.
  2. Click the composer pill to expand it.
  3. Click the model selector.
  4. The composer collapses back into a pill.
  5. The model picker never opens.

Expected vs actual

Expected: The model picker should open and the composer should stay expanded.
Actual: The composer collapses back into the pill, so the model picker can't be used.

Evidence

Screen.Recording.2026-08-25.at.12.59.58.PM.mov

What you ruled out

  • The model picker is not generally broken. It works when the side-chat panel is wide.
  • This only reproduces at narrow side-chat widths.
  • No matching open BB issue or PR was found.

Suggested priority and effort (optional)

Medium - The side chat still works if the panel is widened, but model switching is blocked at narrow widths. Suggested effort is small to medium, depending on where the responsive collapse state is handled.

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

AGENT GENERATED

Activity

  1. added theissue type on Aug 25, 2026
  2. added
    ui
    side-chat
    on Aug 25, 2026
  3. SawyerHood commented on Aug 27, 2026

    @SawyerHood
    Collaborator

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2394.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): The desktop popover blurs the side-chat editor before the picker opens, so the narrow composer hides the trigger before pointer release.
    • Proposed fix: Remove the premature desktop popover blur. Keep the compact mobile blur. Add a held-pointer test for the narrow composer.
    • Caveats: The revised reproduction passed from a clean browser page. The temporary fix passed 46 focused tests. The full app suite and iOS Safari require more checks.

    The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at the base commit, and repro artifacts. It was independently re-run by a second agent (see its Verification section).

    AGENT GENERATED: by GPT-5.6-Sol

  4. added
    confirmed-repro
    on Aug 27, 2026
  5. jonolee-kr commented on Aug 28, 2026

    @jonolee-kr
    Contributor

    Additional reproduction surface

    This bug also occurs in the main thread follow-up composer.

    Reproduction condition

    1. Narrow the window until the composer footer disappears.
    2. Expand the follow-up composer.
    3. Click the model selector.

    The composer collapses instead of opening the model picker.

    The hidden footer contains these controls:

    • Project
    • Environment
    • Branch
    • Permission mode
    • Context usage

    The model picker works while the footer remains visible. The footer disappearance is a reliable breakpoint marker.

    This evidence indicates that the defect is not limited to side chat.

    AGENT GENERATED

  6. jjanousek commented on Sep 6, 2026

    @jjanousek

    Third reproduction surface, with the exact trigger

    This also reproduces on a phone in plugin-mounted ThreadChat (a plugin panel hosting a thread via the Plugin SDK), and on the plain thread page at phone width. The footer that holds permission mode, project/environment/branch, and the context meter is laid out at full width and then hidden with zero height, so there is no way to change permission mode from a phone.

    Versions and environment: bb 0.42.0 (npm bb-app), Linux server, phone client Safari/Chrome on iOS, and Chromium at 390 x 844. Code unchanged at main 6cdb4ba.

    Steps (bb's own thread page, no plugin needed)

    1. Open any thread at 390 x 844 (or Chrome device mode iPhone 14).
    2. Tap into the reply textbox.
    3. Tap the model chip: the bottom sheet opens normally.
    4. Look for the permission mode control: it is in the DOM but has no height and no pointer events.

    Measured (390 x 844, light, textbox focused, sidebar closed; getBoundingClientRect on the rendered tree)

    element box
    [data-follow-up-composer] x=16 y=712 358 x 116
    [data-follow-up-composer-footer] x=16 y=828 358 x 0
    "Permission mode" button inside it 56 x 24 at 272,816 (exists, clipped)

    Trigger is a width container query, not focus or pointer:

    bb/apps/app/src/app.css

    Lines 428 to 452 in 6cdb4ba

    }
    @container promptbox-shell (max-width: 30rem) {
    [data-follow-up-composer] {
    --follow-up-composer-container-compact: true;
    }
    }
    @container thread-pane ((min-height: 1px) and (max-height: 26rem)) {
    [data-follow-up-composer] {
    --follow-up-composer-container-compact: true;
    }
    }
    @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;
    sets --follow-up-composer-container-compact: true for promptbox-shell at max-width: 30rem (and for a short thread-pane), and the style() container block then applies opacity: 0; pointer-events: none; min-height: 0; max-height: 0; margin-top: 0 to the footer rendered at
    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} />
    ) : null}
    </div>
    </div>
    ) : null}
    </div>
    . So every viewport at or under 480 px hits it regardless of the premature-blur cause in the report above; fixing the blur alone will still leave the footer unreachable on phones.

    Captures (throwaway thread, content is only "OK"): composer focused, no footer · model sheet opens from the same composer · measurements and the matched CSS

    What a plugin cannot do about it: ThreadChat is a host component. permissionPolicy="editable" is set; there is no SDK prop to keep the footer open, no exposed setter for a thread's permission mode, and no slot inside the composer for a replacement control.

    Smallest host change that would work: keep the footer as a single 44 px row under the textbox while the composer is focused or expanded on compact, or add permission mode as a third section of the existing model/reasoning bottom sheet. Either gives one tap to change mode on a phone.

    Ruled out: not focus-related (values do not change with the textbox focused or blurred); not plugin-specific (same on the plain thread page); still present on main at 6cdb4ba.

    AGENT GENERATED (Claude, Chief of Staff thread on a bb install; findings from a mobile audit of six plugins on 2026-09-05/06)

  7. ValentinDutra commented on Nov 17, 2026

    @ValentinDutra

    This looks fixed by #2912, which closed #2911 (the same bug in a narrow follow-up composer).

    The hidden footer from the third comment (no way to change permission mode on a phone) was fixed separately in #4470, which also closed #3601.

    @celeroncoder does this still happen for you on 0.49.0? If not, I think this can be closed.

  8. celeroncoder commented on Nov 24, 2026

    @celeroncoder
    Author

    can't retest on my end rn, don't have bb running anymore. but traced it and side chat renders the same FollowUpPromptBox (via ThreadChat → ThreadScreen), so #2912's fix covers it, and it's still on main. good to close, i'll reopen if it shows up again

    AGENT GENERATED: sent by my agent on my behalf

  9. ymichael commented on Nov 25, 2026

    @ymichael
    Collaborator

    Closing per the reporter's trace: side chat renders the same FollowUpPromptBox, so #2912's fix covers this. Reopen if it shows up again.

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-reproside-chatui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions