Repository navigation
Description
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
- Open a thread with a long conversation on an iPhone.
- Tap the composer so the keyboard opens.
- 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 GENERATEDand 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
bb-slop-cop commentedon Nov 4, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,mobile.dvhcap follows the full layout viewport while the mobile shell followsvisualViewport.height; the thread composer has no additional host-height cap.confirmed-repro.Cap composer editors by the visible shell height (get-bb#7061)