Skip to content

fix(session): land sent messages and photos cleanly in the transcript - #58

Closed
Tarquinen wants to merge 1 commit into
devfrom
fix-send-flight-landing
Closed

Tarquinen wants to merge 1 commit into
devfrom
fix-send-flight-landing

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Sending a photo, sending from far up a long session, or sending text that wraps differently in the bubble made the message stutter on its way into the transcript.

Causes and fixes

  • Photo sends. The attachment row vanished at once and the composer card's animateContentSize kept its content pinned to the top, so the toolbar jumped up under the flying photo. The card now skips that resize while the photos fly, and the row's place closes on the photos' spring, as iOS shrinks the composer in the send's own transaction. The flight also waited only 6 frames for its bubble; it now waits up to sendBubbleWaitMax (0.3 s), as iOS SendFlight.waits does.
  • Scrolled-up sends and Jump to Latest. The cut scrolled to the end, and only stepped back to the glide's lead after that frame was drawn, so the end flashed for a frame. The cut and the step back now happen before the next frame, as iOS sizes the rows from the cut in one pass.
  • Wrapping text. The field kept drawing the sent text under its flying copy, and the copy and the bubble's own lines crossfaded linearly, so two wraps were readable at once. The field now hides the captured text until it clears; the words fade out by a third of the way and the bubble fades in from a fifth. The "Message" placeholder no longer shows for one frame under a photo send.

Verified on the VM emulator against session-lab, stepping through frames at 1× and 0.25×: one photo, three photos with long text, a wide photo while scrolled up, text only, keyboard open and closed. No regressions in IME Send, Ctrl+Enter, steer, queue into the pill, failed send then Retry, Revert to Here then send, the first message in a new session, Jump to Latest from far up, auto-follow while streaming, or dark mode. scripts/check.sh :feature:composer :feature:session :feature:transcript passes. There are no iOS tests for these paths to port.

Limits. Emulator timing is stretched (software rendering). Session-lab rejects large uploads, so the test photos are small (360×640, 640×240, 400×400).

Before / after

Left is the v0.7.0 release, right is this branch: a photo send, a send while scrolled up with a photo, and long text with three photos.

before-after.mp4

The same frame of a photo send: before, the toolbar has jumped up under the flying photo; after, the composer holds its shape.
Photo send, same frame before and after

The frame after tapping Send while scrolled up: before, the list flashes its end; after, it hasn't moved yet and cuts straight to the glide.
Scrolled-up send, same frame before and after

Sending a photo, sending from far up a long session, or sending text that
wraps differently in the bubble made the message stutter on its way in.

- Photo sends: the attachment row vanished at once and the card's own
  animateContentSize pinned its controls to the top, so the toolbar jumped
  up under the flying photo. The card now skips that resize while the
  photos fly, and the row's place closes on the photos' spring (iOS
  shrinks the composer in the send's transaction).
- The flight waited 6 frames for its bubble before guessing; it now waits
  up to sendBubbleWaitMax (0.3 s), as iOS SendFlight.waits does.
- Scrolled-up sends and Jump to Latest: the cut scrolled to the end and
  stepped back only after that frame was drawn, flashing the end. The cut
  and the step back now remeasure together (iOS sizes the rows from the
  cut in one pass).
- Wrapping text: the field kept drawing the sent text under its flying
  copy, and the copy and the bubble's own lines crossfaded linearly, so
  two wraps were readable at once. The field hides the captured text
  until it clears, the words fade out by p = 1/3 and the bubble fades in
  from p = 0.2. The "Message" placeholder no longer shows for the send's
  first frame under a photo send (its snap to hidden landed a frame late).

Verified on the VM emulator against session-lab, frame by frame at 1x and
0.25x: photo, three photos plus long text, wide photo scrolled up, text
only, keyboard open and closed; IME Send, Ctrl+Enter, steer, queue into
the pill, failed send then Retry, Revert to Here then send, first message
in a new session, Jump to Latest from far up, auto-follow while
streaming, light and dark. scripts/check.sh :feature:composer
:feature:session :feature:transcript passes.
@Tarquinen

Copy link
Copy Markdown
Member Author

Replaced by #62, which drops the send flight completely. It uses a bottom-anchored native list, and the composer resets with standard Compose animations. Closing this; the branch is kept.

@Tarquinen Tarquinen closed this Nov 14, 2026

This branch was previously deployed

1 inactive deployment
release — fe78fbd4 Deployed Nov 13, 2026 by Tarquinen via check #180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant