Skip to content

feat(transcript): Rewrite into native list - #62

Merged
Tarquinen merged 1 commit into
devfrom
proto-send-native
Nov 14, 2026
Merged

Tarquinen merged 1 commit into
devfrom
proto-send-native

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Replaces the transcript's iOS-ported motion with a standard Android chat list, and drops the send animation.

What changes

  • The list is anchored to the bottom like a texting app: a streaming reply pushes older messages up, and new messages fade in at the bottom
  • Sending clears the composer in one smooth motion, with no flying copy of the message
  • Jump to Latest glides to the end instead of racing past rows
  • Tool groups, tool rows, reasoning and Show More open and close in one smooth motion, and opening the last row keeps it above the composer
  • Tapping a row shows a flat highlight instead of a ripple, and tool headers stay on one line

Behind the scenes

  • About 6,700 lines of custom list and send motion code removed, plus its tests (78 files, +1,504 / −8,847)
  • AGENTS.md and docs/parity note that the list's motion is Android-native on purpose

Follow-ups

  • TalkBack reading order in the reversed list needs a full pass
  • No tests yet for the New messages divider, holding a tapped row in place, or scroll restore
  • The devtools motion watcher has no data source now

Verified with scripts/check.sh, emulator runs against 0.7.0, and on a Galaxy S24 Ultra.

@Tarquinen
Tarquinen marked this pull request as draft November 14, 2026 04:10
@Tarquinen Tarquinen changed the title feat(transcript): bottom-anchored native list and a flightless send feat(transcript): bottom-anchored native list, flightless send Nov 14, 2026
@Tarquinen
Tarquinen marked this pull request as ready for review November 14, 2026 17:01
The transcript list was a port of iOS's UIKit TranscriptListViewController: a
top-anchored LazyColumn with ~6,000 lines of custom motion on top (a bottom
follower, jump glides, row growth from one pixel, growth rides, row entrances)
plus a snapshot flight from the composer into the list on every send. That
motion fought LazyColumn's own layout, and sending felt unlike any Android
texting app. The list's motion is now Android-native on purpose; behaviour,
flows and copy still follow iOS (noted in AGENTS.md and docs/parity).

The list
- LazyColumn(reverseLayout = true), newest row at index 0, so new and growing
  rows (a streaming reply) push older content up at the end with no follower.
- New rows at the end: requestScrollToItem(0) however many arrive at once (a
  steer that brings several rows lands above the composer), and up to three
  animate in with AnimatedVisibility (expandVertically + fadeIn) on the M3 fast
  spatial spring.
- A growing row (a streaming reply) moves its height with animateContentSize on
  a 0.22 s spring, so older rows glide up rather than step by each chunk.
- TranscriptListScroller holds the list's own scrolls: Jump to Latest (cut to a
  screen above the end when far, then one glide on M3 standard easing, 0.35 to
  0.55 s by distance), the borrowed drag, scroll to top, the New messages
  landing, and holding a toggled row in place mid-list (it grows upward at the
  end so the opened tools stay above the composer).
- Disclosures (tool groups, inner tool rows, reasoning, Show More) move their
  height on one disclosure spring; a closing body takes its gap with it.
  Rows use a flat press tint instead of the ripple, and tool headers are one
  line with the glyph on the first line.
- Rebuilt on the new list: reply selection and its autoscroll (reversed), the
  drawer's selection-handle exclusion (#57), New messages decide/fit/passed/
  read and the divider glow, FirstContentFrameRendered, scroll restore by row
  key after process death, earlier-history paging, header backdrop, Jump to
  Latest visibility, the image viewport, link previews, the agent reveal, the
  empty loading mark, TalkBack coalescing and the timeline gate.

The send
- No flight. The composer card resets in one motion: a picture of the old
  content fades out while animateContentSize(alignment = BottomStart) slides
  the top edge down on the same spring; the sent photos are decoded before the
  bubble's first frame. The list's bottom padding reads the composer height
  while measuring, so the list end moves with the card.

Deleted
- TranscriptListController, TranscriptRowGrowth, TranscriptRowEntrance,
  TranscriptScrollSprings, TranscriptScrollBehavior, TranscriptMotionTrace,
  NewDividerMotion, SessionSendFlight, SendLift, SentImageFlight, SendLanding,
  ComposerSendTransition (its swipe input moves to ComposerFieldLink), the
  composer's shrink-on-send, image/link-preview row growth, and the tuning
  knobs that only served them.
- Ported tests for that motion (TranscriptScrollBehaviorTests,
  TranscriptRowGrowthTests, TranscriptGestureReleaseTests, SentImageFlightTests,
  ComposerSendTransitionTests and individual growth/hand-off tests); each is
  listed as dropped in docs/parity.

78 files, +1,497 / -8,847 vs dev.

Verified
- scripts/check.sh (all modules) on the VM: build, lint and unit tests pass.
- Emulator with session-lab: button, IME and Ctrl+Enter sends, steer, Queue,
  failed send then Retry, a new session's first message, streaming, keyboard
  open/close, selection (a leading-edge handle drag doesn't open the drawer),
  New messages divider, Jump to Latest short and far, history paging, tool
  group/Show More expand and collapse mid-list and at the end, header
  backdrop, scroll restore after process death, Reduce Motion, light and dark.
- Frame-by-frame audit (transcript-audit) against 0.7.0, including 0.25x
  slow-motion plots of collapse and Jump to Latest.
- Dan tested each round on a Galaxy S24 Ultra (120 Hz) with an R8 build.
@Tarquinen
Tarquinen merged commit 809f3dd into dev Nov 14, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 14, 2026
@Tarquinen Tarquinen changed the title feat(transcript): bottom-anchored native list, flightless send feat(transcript): Rewrite into native list Nov 15, 2026

This branch was previously deployed

1 inactive deployment
release — efa82a22 Deployed Nov 14, 2026 by Tarquinen via check #229
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