GeezerVison is showing github.com — fix(desktop): chat stays at the end while the terminal drawer opens mid-turn by Spongman · Pull Request #32797 · pingdotgg/t3code
Conversation
Spongman
commented
Nov 8, 2026
•
edited by maria-rcks
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Opening the terminal drawer while a turn is running makes the chat lurch: the newest content dips below the visible area while the drawer grows, then slides back once it stops. When the agent is idle, or with "reduce motion" on, the chat stays pinned to its end. Reported in https://git.cafe/pingdotgg/t3code/issues/32778, which has before videos of both cases.
Change
While a turn runs, the timeline follows the end with the smooth maintainScrollAtEnd config, which copied the instant config's layout: true. Every viewport resize therefore started an animated scroll aimed at where the end was on its first frame, so the scroll trailed a viewport that kept resizing as the drawer opened.
The smooth config now leaves out layout. The timeline's existing viewport resize observer instead pins the end synchronously, before paint, when the viewport height changes and the smooth follow config is active, including while streamed content temporarily trails during a smooth scroll. The instant config is unchanged, so idle and reduced-motion behavior stay the same.
Scope and approval
Fixes https://git.cafe/pingdotgg/t3code/issues/32778. This is a small, focused fix of an obvious visual bug in one file (MessagesTimeline.tsx): idle and reduced-motion already keep the chat pinned while the drawer opens, and this makes the running-turn case match.
Verification
Before: the two videos in https://git.cafe/pingdotgg/t3code/issues/32778 (T3 Code 0.1.7 desktop, Windows 10). Opening the drawer while idle stays pinned, and opening it mid-turn lurches.
After (desktop dev build of this branch, Windows 10, same steps as https://git.cafe/pingdotgg/t3code/issues/32778, mid-turn):
Recording.2026-11-07.181250.mp4
vp test run on MessagesTimeline.browser.test.tsx, MessagesTimeline.logic.test.ts and MessagesTimeline.active-tools.test.ts: 3 files, 137 tests passed.
vp run check:changed: format, lint, knip, typecheck and the react compiler check pass.
- Not checked: macOS, Linux, or browsers other than the Electron shell.
Claude Opus 5.5 via Claude Code, running in T3 Code.
linux takeover verification
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified 83ab7b19fee4ef20677f892370d7063b3cbfc777 on linux using the repository Playwright dependency, /usr/bin/google-chrome, and real Codex gpt-6.1-sol turns through the web composer and local provider proxy. the project points at a real git repository. conversation data was created through the app, then copied between isolated dev homes for comparison. no mocks or seeded fixtures.
- reproduced the drawer lurch on
github/main (ca796d5211).
- found a remaining streaming case on the original head (
877cc0d421): a 56px smooth-follow gap before opening became a 280px gap after opening. the follow-up commit pins active follow on viewport height changes, without requiring an exact bottom position.
- reinstalled dependencies, restarted the server, and repeated the real flow. ten drawer toggles during streamed text stayed at the end at every settled check. manual scroll-up kept its 1218px scroll position when opening the drawer. reduced motion, idle opening/closing,
Ctrl+J, a smaller dark viewport, and terminal input/output also passed.
vp run check:changed through blacksmith-check passed format, lint, knip, affected typechecks, React Compiler checks, and 137 existing timeline tests. two independent read-only reviews approved this exact head.
before on main, during drawer opening:

after, with the matching conversation and prompt:

recording: main, the original pr streaming edge case, then the updated pr during a tool turn and live text streaming:

Not verified
native Electron desktop, including the original Windows report; native iOS/Android; macOS/Windows; other browsers or providers; remote relay/tunnel connections. this VM verification covers the shared web timeline through Chrome and Codex. full hosted CI is separate from the passing scoped Blacksmith checks above.
verification and follow-up: gpt-6.1-sol via Codex in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The smooth follow config kept the layout trigger, so each resize started an
animated scroll aimed at a stale end. Pin the end on viewport resize instead.
Approvability
Verdict: Approved at 877cc0d
Macroscope's review found this PR approvable — Keeps the chat pinned to the end while the terminal drawer resizes during a response. The change is limited to viewport scrolling and preserves existing follow-mode safeguards.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The timeline disables layout maintenance in smooth end-follow mode. When the viewport height changes, it pins the scroll node to the end if smooth end-follow is active. The timeline computes the maintain-scroll selection once and passes it to LegendList.
Changes: Timeline resize pinning
| Layer / File(s) |
Summary |
Smooth end-follow on resize apps/web/src/components/chat/MessagesTimeline.tsx |
The timeline computes the maintain-scroll selection once and passes it to LegendList. Its resize observer tracks viewport height and pins the scroll node to the end when smooth mode is active. Smooth mode sets layout: false. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- pingdotgg/t3code#25531: Adds end-pinning and settling behavior for disclosure-driven layout changes.
- pingdotgg/t3code#33038: Refreshes minimap state on viewport resize based on whether the scroll node is at the bottom.
- pingdotgg/t3code#28451: Re-pins the timeline when active follow ends short of the bottom after content or list adjustments.
Suggested labels: bugfix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 4bcd6
-
The reviewed change has no established merge-blocking risk after the reported checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the fix: keeping chat at the end while the terminal drawer opens mid-turn. |
| Description check |
 |
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the issue and fix, links the reported issue, and provides focused test results and pla… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the issue and fix, links the reported issue, and provides focused test results and platform limitations.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 83ab7b1 and 4bcd6d7.
Files selected for processing: 1
-
apps/web/src/components/chat/MessagesTimeline.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Spongman
changed the title
fix(web): chat stays at the end while the terminal drawer opens mid-turn
fix(desktop): chat stays at the end while the terminal drawer opens mid-turn
Nov 8, 2026
maria-rcks
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by claude-opus-5-5 on behalf of Maria
Merged current main (4bcd6d7bdc)
- merged
github/main with a merge commit, no rebase. the only conflict was maintainScrollAtEnd in MessagesTimeline.tsx: main's Legend List 3.7.2 upgrade (refactor: upgrade Legend List to 3.7.2 and drop our list workarounds #28125) removed disclosureToggleSettling, so the PR's hoisted maintainScrollAtEnd now drops that term too. nothing else changed.
vp run check:changed through blacksmith-check passed format, lint, knip, typecheck, React Compiler, and 149 tests in 3 files, including MessagesTimeline.browser.test.tsx.
- CodeRabbit's note that the resize pin has no at-end guard: the pin only runs while the smooth config is active, and that config requires
liveFollowEnabled (follow.mode === "following"), which turns off once the user scrolls away.
- the browser verification below was done on
83ab7b19fe. it was not repeated after the merge.
earlier verification, by gpt-6.1-sol:
Verified in a real dev environment
verified 83ab7b19fee4ef20677f892370d7063b3cbfc777 on linux using the repository Playwright dependency, /usr/bin/google-chrome, and real Codex gpt-6.1-sol turns through the web composer and local provider proxy. the project points at a real git repository. conversation data was created through the app, then copied between isolated dev homes for comparison. no mocks or seeded fixtures.
- reproduced the drawer lurch on
github/main (ca796d5211).
- found a remaining streaming case on the original head (
877cc0d421): a 56px smooth-follow gap before opening became a 280px gap after opening. the follow-up commit pins active follow on viewport height changes, without requiring an exact bottom position.
- reinstalled dependencies, restarted the server, and repeated the real flow. ten drawer toggles during streamed text stayed at the end at every settled check. manual scroll-up kept its 1218px scroll position when opening the drawer. reduced motion, idle opening/closing,
Ctrl+J, a smaller dark viewport, and terminal input/output also passed.
vp run check:changed through blacksmith-check passed format, lint, knip, affected typechecks, React Compiler checks, and 137 existing timeline tests. two independent read-only reviews approved this exact head.
before on main, during drawer opening:

after, with the matching conversation and prompt:

recording: main, the original pr streaming edge case, then the updated pr during a tool turn and live text streaming:

Not verified
native Electron desktop, including the original Windows report; native iOS/Android; macOS/Windows; other browsers or providers; remote relay/tunnel connections. this VM verification covers the shared web timeline through Chrome and Codex. full hosted CI is separate from the passing scoped Blacksmith checks above.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…inal-drawer
# Conflicts:
# apps/web/src/components/chat/MessagesTimeline.tsx
|
Thanks for this. https://git.cafe/pingdotgg/t3code/pulls/32826 makes the same change and is the one being kept.
Keep #32826 instead: it fixes the same open issue, #32778, with more complete handling of resize ordering and simultaneous row growth. It pins through LegendList after viewport measurement and queued item remeasurements, includes a focused regression covering interrupted smooth scrolling, concurrent growth, return-to-end settling, and manual scroll-up, and reports 34 successful checks with none failing or pending. Its current head contains the fetched main tip, so it merges cleanly by ancestry; the forge's conflict snapshot is stale. Main does not contain this fix: distinctive-line history searches found no resize pin or smooth-layout override. The only changes touching this file since the PR base are 57d5e98, which refreshes minimap state, and a88a0ad, which anchors HTML previews; neither fixes drawer pinning. All 3,643 open pull requests were paged for the duplicate search. No application code, tests, or repository scripts were executed.
Closing as a duplicate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|