[Bug]: iOS: scrolling up in a long thread teleports the viewport and draws rows outside the list bounds #12072
https://github.com/user-attachments/assets/f2979916-a525-4192-a0b3-2a895895b05f
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/mobile
Steps to reproduce#
This one is intermittent and I cannot trigger it on demand. It hits me several times a week. The screen recording below captures a full episode; here is the shape of it:
- Open a long thread that contains at least one very tall tool-output row (mine has a skill listing of roughly 100 rows).
- Let the agent finish a reply while the viewport is parked somewhere above the bottom.
- Tap the scroll-to-bottom button. This works — the feed lands at the end.
- Drag up a short distance to re-read the reply.
Expected behavior#
A short upward drag moves the viewport by the dragged distance, and rows stay inside the list bounds.
Actual behavior#
Three distinct symptoms, all visible in the recording:
- The viewport teleports. A short upward drag jumps to the start or the middle of the thread instead of moving by the dragged distance. It flips between the conversation region and the large tool-output table many screens away.
- Rows render outside the list bounds. Conversation text is drawn over the navigation header and below the composer, so the list stops clipping its rows.
- The scroll-to-bottom chevron floats mid-screen instead of sitting above the composer, which suggests the computed layout is wrong rather than just the scroll offset.
Hypothesis, from reading the source: apps/mobile/src/features/threads/ThreadFeed.tsx already documents this failure mode above getFixedItemSize:
every row above the viewport is assumed to be
estimatedItemSizetall, and scrolling up through unmeasured content corrects each row's height as it mounts — the feed visibly jumps
The mitigation from #4874 only assigns fixed heights to the small chrome rows. Message rows return undefined and fall back to LegendList's per-type running average against estimatedItemSize={180}. A single tool-output row an order of magnitude taller than that average would produce a large offset correction the moment it mounts while scrolling up, which matches symptom 1. Symptom 2 looks adjacent to #11813.
Question: #11813 landed after the 1.1.0 App Store build I am on. Does the 1.2.0 train already change this behavior? I am happy to re-test and close this if so — I just have no way to run that build yet.
Impact#
Major degradation or frequent failure
Version or commit#
App Store 1.1.0
Environment#
iPhone 15 Pro Max, iOS 27
Logs or stack traces#
Screenshots, recordings, or supporting files#
Screen recording attached in a follow-up comment.
Workaround#
Tapping the scroll-to-bottom button re-anchors the feed, but the next upward drag can teleport again.
juliusmarminge added labelsbug
juliusmarminge added labelsaccepted
Answering your question: the tall row is an assistant markdown table, not an expanded work-log tool result. Bordered cells, three columns — skill name, scope (
User/Project/Plugin/Built-in), and approximate token cost.I remembered where it came from, and it gives you a deterministic repro. It is the output of Claude Code's
/contextcommand. That single assistant message is not one table but several stacked ones:Table in /contextoutputRows in my case MCP tools ~170 Skills ~115 Custom agents 15 Memory files 10 Usage by category 10 So roughly 320 table rows in one message. The section visible in my recording is the Skills table. On a 15 Pro Max that message is many screens tall on its own, against
estimatedItemSize={180}.Repro:
- Claude Code provider, on a machine with a lot of MCP servers and skills installed. The more there are, the taller the message.
- Send
/contextin a thread. - Tap scroll-to-bottom, then drag up a short distance.
Your point about the follow latch matches what I see on device: the teleport fires on the first upward drag after scroll-to-bottom, not on a drag from a resting position. A second scroll-to-bottom re-anchors and the next drag can teleport again.
I will attach the recording and two stills shortly — one showing rows painted above the status bar, one showing the table.
Correction to my previous comment: please do not treat those three steps as a reliable repro. I overstated it.
I went back and ran
/contextagain in a fresh thread, and I could not make the feed teleport on demand. The tall message renders, scroll-to-bottom works, and dragging up behaves normally.So what
/contextgives you is the ingredient, not the trigger: a single assistant message holding ~320 markdown table rows, far taller thanestimatedItemSize={180}. Something else has to coincide with it — my guess would be the timing of a thread update landing while the row is being measured, which is the gap you described betweenmaintainScrollAtEndand JSmaintainVisibleContentPosition, but I have no evidence for that beyond the sequence I described.The bug itself stays as originally reported: intermittent, several times a week, no reliable repro on my side. Sorry for the noise.
juliusmarminge closed this
Sign in to join this conversation.
Triage: real iOS thread-feed bug. Not a duplicate, and not already fixed on the 1.2.0 train.
What you reported. On App Store 1.1.0 (iPhone 15 Pro Max, iOS 27), a long thread with one very tall tool-output / skill-listing row (~100 lines) intermittently teleports on a short upward drag after scroll-to-bottom. Rows also paint over the nav header and under the composer, and the scroll-to-bottom chevron can sit mid-screen. Re-tapping scroll-to-bottom re-anchors, then the next upward drag can teleport again.
Your hypothesis is right, and it is still true on
main.ThreadFeeddocuments this abovegetFixedItemSize: unmeasured rows are treated asestimatedItemSize(180) tall, and scrolling up through them corrects height on mount. #4874 only pins the small chrome rows (turn-fold, work-toggle, thinking, collapsed activity groups). Message rows and expanded activity groups still returnundefinedand use LegendList’s per-type running average. A single tool-output / skill table an order of magnitude taller than 180px is a multi-screen offset correction the moment that row mounts — that matches symptom 1.The scroll-to-bottom → short-upward-drag sequence makes that worse: while follow is armed, JS
maintainVisibleContentPositionis off andmaintainScrollAtEndis on. The first drag flips that on the next React render, so a huge measure can land in the gap.Does 1.2.0 / #11813 already change this? Only partly, and not the teleport.
getFixedItemSizeSo: please retest overflow/clipping (symptoms 2–3) on 1.2.0 when you have that build. Do not close this on the strength of #11813 — the estimate→actual teleport path is unchanged.
Not the same as #10960 (Android keyboard inset), #11992 (Android composer / working pill covering newest lines), or #10840 (combine scroll button with working timer). No open PR targets this tall-row teleport.
Where a fix should go.
apps/mobile/src/features/threads/ThreadFeed.tsx(getFixedItemSize,estimatedItemSize={180}, follow/MVCP toggle) and expanded tool-output sizing inthread-work-log.tsx. The chevron sitting mid-screen is a consequence of a blown content-size / overlay layout (floating-working-control.tsxisposition: absolute; top: -offseton the composer), not its own control bug.The screen recording mentioned in the report never landed. If you still have it, please attach it — especially useful for confirming whether the tall row is an assistant markdown table or an expanded work-log tool result.