Mobile chat follows the composer

Recorded on Limrun iOS simulators against a local dev host, with real chat-v3 sessions holding long Claude replies. The code is PR #8548.

Expand
Scrolled to the bottom, the last lines ride up with the card and finish just above it. During the fastest part of the keyboard rise, the card overlaps the last lines for about 3–4 captured frames (roughly 100 ms at the 30 fps capture).
Drag
The gap stays the same: the text moves down with the card, springs back with it, and comes down with it when the composer collapses.
Approach
No new dependency. An invisible marker inside the composer is read every frame, and the chat's bottom margin is set to the composer's actual top edge.

Version 3: re-check of PR #8548

A new simulator, a new chat, and the code exactly as committed in the PR. The behaviour matches version 2.

Expand, scrolled to the bottom

Chat scrolled to the bottom, composer collapsed
Before: at the end of the chat.
Composer expanded, last paragraph and its actions visible above it
After: the last paragraph and its copy and branch actions sit above the expanded card.
Real time.
¼ speed.

Frame by frame (every captured frame, 1.5–2.0 s)

Frames 8–11 show the overlap: the card rises over the last lines, then the text catches up and settles above it.

Fourteen captured frames of the expand

Drag, hold, spring back, then dismiss

Real time: two drags. The first springs back, the second passes the threshold and dismisses.
¼ speed: the text comes down with the collapsing composer and ends just above the small one.

Version 2: chat tied to the composer's top edge

A display link reads where the composer actually is on screen every frame: the keyboard, the expand and the drag. JS sets the chat's bottom margin to that one number through a Reanimated shared value. Because the list shrinks a few points per frame instead of 300 pt at once, LegendList keeps it pinned to the end.

Expand, scrolled to the bottom

Real time.
¼ speed. "The cron route returns 401…" moves up with the card instead of dropping out of view.
Composer expanded, end of the chat pinned above it
Settled: the end of the chat sits on the card. Compare with the clipped version-1 still below.

Frame by frame (30 fps capture)

Frames 3–5 show the brief overlap at peak speed: the list re-pins one frame after it resizes.

Sixteen frames of the version 2 expand

Drag, hold, spring back, then dismiss

Real time.
¼ speed: the text moves down with the card.
¼ speed: release past the threshold; the text comes down with the collapsing composer.

Version 1 (for comparison)

This version moved the chat's edge with the composer, but the list kept its scroll position when you were at the bottom.

Version 1: drag to dismiss

A slow pull of the grabber, a hold, back up, then a second pull past the threshold to dismiss.

Real time.
The pull at ¼ speed. Watch "then pass props…" and "6.5 Done criteria" come into view above the card as it moves down.

Version 1: expand

A tap on the collapsed composer, starting at the bottom of the chat.

Real time.
¼ speed. The list keeps its scroll offset, so "6.5 Done criteria" and the lines below it drop out of view instead of moving up.
Chat scrolled to the bottom, composer collapsed
Before the tap: scrolled to the end.
Composer expanded, last section of the chat hidden
After: the end of the chat is clipped, not pinned above the card.

Frame by frame (15 fps)

Eighteen frames of the expand animation

How this was recorded