Skip to content

Thread composer covers the whole conversation on iPhone with the keyboard open #7057

Closed

Description

@vlasovsmm

Summary

On an iPhone with the keyboard open, a long draft in the thread (follow-up) composer covers the whole conversation and its top slides under the app header. You cannot read the agent's question while typing the answer to it.

The editor cap is min(calc(50dvh - 3rem), var(--composer-editor-available-height, 100dvh)). On iOS dvh does not shrink when the keyboard opens, while the app shell does follow the visible area. In the thread composer --composer-editor-available-height is empty, so nothing else limits the editor. The new-thread composer is not affected: with the same simulated keyboard its cap drops to 344px and it fits.

Versions and environment

bb 0.48.1, server on macOS, opened from an iPhone (393 x 852 CSS px) through bb connect, in the home-screen app.

Steps to reproduce

  1. Open a thread with a long conversation on an iPhone.
  2. Tap the composer so the keyboard opens.
  3. Type or paste about 15 lines.

Without a phone: use Chromium with a 393 x 852 touch viewport, focus the composer, and add html.bb-app-shell-root { height: 516px !important } to imitate the shell shrinking to the visible area, plus .ProseMirror { min-height: 2000px !important } to imitate a long draft.

Expected vs actual

Expected: the composer stays inside the visible area and leaves part of the conversation readable above it.

Actual: the editor is 378px tall (50dvh - 48px), the composer starts at y=42 under a 48px header, and no messages are visible.

Evidence

Measured in the simulation above:

State Editor height Top of composer
Empty, no keyboard 103 653
Long draft, no keyboard 378 378
Long draft, keyboard imitated 378 42

availVar read from the editor element in a thread is an empty string. The message edit form has the same problem: in the same simulation its top reached y=-160.

On the real iPhone the top border of the composer is off screen and the text is cut by the header, which matches the numbers.

What you ruled out

  • It does not come from our plugin: the measurements above were taken before any layout CSS existed, and the plugin only translates labels.
  • The new-thread composer fits, so the available-height logic works where it is passed.
  • We have not tested the real iOS keyboard in an emulator, only on the phone by eye. The numbers come from the simulation.

We work around it with a user plugin that caps the editor at 120px on phones. A fix in bb could pass the available height to the thread composer as the new-thread one does, or base the cap on the visible viewport.

Suggested priority and effort (optional)

Small change, high annoyance for anyone answering questions from a phone.

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.

Reproduced on 0.48.1; not checked against main. The thread with the report is private, so there is no link.

AGENT GENERATED

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Low · Areas: ui, mobile.
    • Reproduction and root-cause report: REPRODUCED, high root-cause confidence. Repeated in two clean trusted checkouts using the actual app and a simulated visible-viewport resize; native iOS keyboard behavior remains unverified.
    • Root cause: The editor's dvh cap follows the full layout viewport while the mobile shell follows visualViewport.height; the thread composer has no additional host-height cap.
    • Reproduction label: confirmed-repro.
    • Fix: PR #7061, ready for review. The 75-line, two-file change tracks the visual viewport while retaining existing host limits and fallbacks. Both focused regressions fail before the fix and pass afterward; all 247 relevant tests and typechecks pass, with zero lint errors. The browser check reduces the editor from 409.5 px to 212 px and restores readable conversation space.

    AGENT GENERATED

  4. added a commit that references this issue on Nov 6, 2026
    9519ec6
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