[Bug]: Chat snaps back to the bottom while a turn is running when scrolled up (regression of #4668 in 0.1.0) #20366
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- On 0.1.0, open a thread and start a turn that streams for a while.
- While the turn is running, scroll up in the timeline over plain chat text (no inline HTML render involved) to read earlier messages.
- Keep reading while the turn produces output.
Expected behavior#
Scrolling up while a turn is running turns off live-follow, and the timeline stays where I scrolled until I scroll back to the end or press the scroll-to-end pill. This is how it behaved after #5566 fixed #4668.
Actual behavior#
The timeline keeps snapping back to the bottom while the turn is working, so you can't read earlier messages until the turn finishes. It started after updating to 0.1.0, so it looks like a regression of #4668.
This differs from #17056: that one only happens with the pointer over an html_render frame. Here the pointer is over ordinary chat text.
Impact#
Major degradation or frequent failure
Version or commit#
0.1.0 (desktop app and server)
Environment#
macOS 26.6.2, T3 Code (Beta) desktop app 0.1.0, connected to a local 0.1.0 server (t3 serve)
Workaround#
Wait for the turn to finish before scrolling up.
juliusmarminge added labelsneeds more info
juliusmarminge added labelsvia-triage
It's intermittent. It doesn't happen every time I scroll up during a running turn, but it has happened a handful of times since I updated to 0.1.0.
- Magic Trackpad, two-finger scroll, on the desktop app. No mouse is attached.
- I didn't notice whether a reasoning section or tool-call row was open at the time. I believe it was Claude Agent with Opus 5.5, but I don't remember which thread it was in.
- I'm not on the nightly, so I can't say yet. Next time it happens I'll try to capture a recording.
I too have found this issue in v0.1.0 (81493efb71e8)
When scrolling on MacBook Air M2 trackpad, the viewport constantly snaps back to the bottom, making real-time reading of earlier data impossible.
The only reliable fix is to click on or arrow-navigate the chat window via the left-side thread selector (horizontal dashes that represent interaction timestamps inside the chat window).
Clicking there allows the viewport to recognize scroll, and "Scroll to end" appears at the bottom as a button, confirming you've disengaged auto-scroll. Normal scroll actions do not disengage auto-scroll, and "Scroll to end" never appears.
I'm using a Mouse with a normal scroll wheel on a M2 Pro MacMini with MacOS latest and got this, too. Weirdly enough, I encountered it all the time 2 days ago and not at all today, now that I'm trying to reproduce it. I'll try to record if/when it happens the next time, for now it seems good.
It happened again in this command chain. Every time one of the commands triggered or finished (not sure, it was very quick), the view auto-scrolled down, even if I scrolled up in between. Screenshot cropped for privacy reasons.
Same here on Windows, desktop app 0.1.0 (stable), connected to
t3 servev0.1.0. Adding my data point since the reports so far are all macOS.Frequent rather than intermittent for me: during a long running turn, nearly every tool call that starts or finishes pulls the viewport back to the bottom, even after scrolling up over plain chat text. Reading earlier messages mid-turn is effectively impossible until the turn finishes.
Triage answers:
- Trackpad, two-finger scroll, Windows laptop, no mouse attached.
- Tool-call rows were streaming at the time; running the Claude Code agent.
- Haven't tried the nightly yet. The timing is consistent enough (fires on tool-call start/finish boundaries) that a recording should be easy to capture if it would help.
It does seem to be intermittent. It just happened to me on macos using the scroll wheel on a bluetooth mouse, t3 version: Version 0.1.1-nightly.20261019.3360 (1451e7cb2303)
Still reproduces on the latest nightly:
0.1.2-nightly.20261021.3473, macOS 26.6.2, T3 Code (Nightly) desktop app.- Scroll method: built-in MacBook trackpad, two-finger scroll. No external mouse.
- Behavior: while a turn is running, the timeline snaps back to the bottom even after scrolling up over ordinary chat text — cannot read earlier messages until the turn finishes.
Happy to capture a recording next time it happens if that helps.
This was generated by AI during triage.
Adding a reproducible late-history-load / missing-listener path on the source matching
0.1.2-nightly.20261021.3499. This establishes one mechanism that leaves live-follow enabled after upward navigation; it does not establish that every report here has the same cause.Before submitting#
- Searched existing reports; adding evidence here instead of creating a duplicate.
- Reproduced the failure with neutral data and ran a distinguishing control.
Area#
apps/web
Steps to reproduce#
- Run an isolated dev checkout at b5a226e, using
vp run dev --no-seed. Prepare a long neutral transcript. - Emulate slow history delivery by adding
yield* Effect.sleep("3 seconds");at the start of the server'sthreadBoundedSnapshothandler. The real snapshot payload is unchanged. - Clear only the isolated dev origin's cached thread snapshots, then reload the transcript and wait for history.
- Focus the main timeline and press native Page Up. For automation, the existing
.messages-timeline-scrollelement was giventabIndex = 0and focused withpreventScroll:true; noscrollTopassignment was used. - Resize the viewport from 1240×800 to 1240×780.
Expected behavior#
Upward navigation disables follow, shows “Scroll to end,” and preserves the reader's position across the resize.
Actual behavior#
The button stays absent and the resize returns the timeline to its end.
Measurement Original attach(12)Diagnostic attach(600)Listener retries exhausted, ms after navigation 1,855 Never List first available, ms 4,660 4,635 Listeners attached, ms Never 4,802 Scroll top after Page Up 20,795 20,795 Button after Page Up Absent Present Scroll top after resize 21,469, at end 20,795, retained Both trials used the same transcript, 3-second delay, keyboard input, content height of 22,197 px, and viewport change. The delayed-load baseline snapped in three trials; the extended-retry control held in one.
Verified mechanism: the follow effect exhausts its finite animation-frame retries before a scroll node exists. Later list availability does not rerun that effect. Its wheel/touch/pointer/key/upward-scroll listeners therefore remain unattached. The empty/loading branch can render without a list. The at-end callback then suppresses the away-from-end transition while the live-follow generation is still current.
Extending the retry window was a diagnostic experiment, not a proposed durable fix. Attachment should track the actual scroll-node lifecycle.
Impact#
Major degradation or frequent failure when this loading condition occurs.
Version or commit#
Dev checkout b5a226e, matching the installed nightly
0.1.2-nightly.20261021.3499source. This was not a test of the packaged server bundle.Environment#
Windows x64; T3 Code native Browser panel; Chromium 152.0.7977.167 / Electron 44.9.3. Synthetic transcript only.
Logs or stack traces#
Timing probes recorded
performance.now()at retry exhaustion, first list availability, and successful listener attachment. Measurements and full reproduction procedure include the raw trace.Screenshots, recordings, or supporting files#
- Baseline recording: upward navigation followed by snap to end
- Diagnostic control recording: position retained
The reproduced input was on ordinary main-timeline text, not in an HTML frame. This measured snap occurred on an idle transcript after resizing. I have not directly reproduced the active tool-start/finish trigger or a physical mouse-wheel gesture. T3's
preview_scrollusesscrollBy, so its results were not counted as wheel evidence. A separate healthy-load streaming trial retained its chosen position.Workaround#
No end-user workaround verified for the delayed-load case. All probes, artificial latency, and the diagnostic retry change were removed afterward; no T3 fix or PR was created.
github-actions[bot](GitHub profile, opens in a new tab) removed labelsneeds more info
tanstack-source added labelsbug
juliusmarminge linked this to #22788
Still happens on today's nightly, T3 Code (Nightly) desktop app 0.1.10-nightly.20261113.4616 (59e64ee), macOS 26.5.1, Claude Agent / Opus 5.5.
- Long thread (about 1,600 runs), a turn running with 2 runs queued.
- When I scroll up to read older messages, the timeline keeps jumping back to the latest messages at the bottom. It jumps instantly rather than scrolling, so I lose my place.
- Expected: any manual scroll up leaves live-follow until I scroll back to the end or press "Scroll to end". The pill already covers getting back.
For triage: at 59e64ee, listener attachment no longer uses the finite rAF retries described in the late-mount comment above; it is wired through the list's ref callback and
attachTimelineViewportinuseTimelineFollow.ts. I haven't established the cause of this occurrence.@grahamfarrar Could one of you capture a screen recording of it happening on the latest nightly, showing whether 'Scroll to end' appears at any point while you are scrolled up, and what is under the pointer as you scroll (plain text, a table, a code block, a tool-call row or its output)?
juliusmarminge added labelsneeds more info
github-actions[bot](GitHub profile, opens in a new tab) removed labelsneeds more info
Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.
juliusmarminge closed this
I can no longer reproduce this bug in the latest release.
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
We can't reproduce this from the code yet, so we need a few details before we accept it as a regression of #4668.
This isn't #17056. That one only happens when the pointer is over an inline
html_renderframe. We also looked at #19334 (live reasoning stays scrolled to the newest text), which shipped in 0.1.0. It only scrolls the reasoning box itself, and it doesn't move the main timeline. The live-follow escape added in #5566 (wheel, touch, scrollbar drag, PageUp/Home/ArrowUp) is still on main.Can you tell us:
If we don't hear back in 14 days, this will close automatically. You can comment at any time to reopen it.