GeezerVison is showing github.com — fix(web): horizontal table scrolling preserves timeline follow by nateEc · Pull Request #24045 · pingdotgg/t3code
Conversation
nateEc
commented
Oct 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Horizontal-dominant trackpad swipes and Shift-wheel events can contain a small vertical delta. Treating that noise as upward timeline navigation releases automatic follow while the user is scrolling a wide table.
The timeline-target predicate now excludes those horizontal gestures, and the viewport passes wheel direction into it. Ordinary vertical scrolling still releases follow. Main has removed desktop composer scroll-collapse, so this branch retains that removal and does not restore the old behavior.
Verification:
- Existing gesture regressions cover both horizontal directions, Shift-wheel, ordinary vertical wheel, nested scrolling, and keyboard intent.
- The integrated MessagesTimeline browser regression verifies that horizontal gestures emit no follow-release navigation and a vertical upward wheel still emits it.
- Current merged branch passed check:changed: formatting, lint, both knip checks, two affected-package typechecks, 63 tests in three files, and changed React compiler checks.
- Prior integrated client evidence below was recorded before main removed composer collapse. It demonstrates the original [Bug]: Scrolling a markdown table horizontally makes the prompt input toggle between compact and expanded mode #24018 behavior and is historical evidence; it does not depict the current composer layout.
This addresses the remaining timeline-follow side of #24018. Web and desktop share the viewport. Mobile touch handling, providers and wire contracts are unchanged.
Before / after:


Before replay sequence · After replay sequence
Evidence limitation: the videos are stepped sequences of actual browser captures, not recordings of native hardware gesture timing. The regression events were synthetic DOM wheel events; a physical macOS trackpad and packaged Electron build were not tested. The temporary replay script and evidence are not committed.
Model: GPT-6. Harness: Codex desktop.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- 排除横向占优和 Shift 滚轮事件,避免误触发输入框折叠及时间线跟随。\n- 保留纵向滚动和键盘行为,补充双向横滑回归测试。\n- 11 项定向测试及改动范围检查通过,隔离浏览器验证修复前后行为。
Approvability
Verdict: Approved at f4424ec
Macroscope's review found this PR approvable — Horizontal and Shift-wheel gestures no longer count as vertical timeline navigation, preserving follow while scrolling sideways. The change is limited to transient UI behavior and introduces no obvious material risk.
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
Oct 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The timeline target check now considers Shift state and horizontal wheel movement. The timeline viewport passes the wheel event to the check. Tests cover vertical, horizontal, and Shift-modified wheel gestures.
Changes: Wheel intent handling
| Layer / File(s) |
Summary |
Wheel intent check and viewport wiring apps/web/src/components/chat/timelineScrollTarget.ts, apps/web/src/components/chat/timelineViewport.ts, apps/web/src/components/chat/timelineScrollTarget.test.ts |
The target check rejects Shift-wheel input and gestures with a larger horizontal than vertical delta. The viewport passes the wheel event to the check. Tests cover gestures that target and do not target the timeline. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, t3dotgg
Merge Risk: Minimal · up to f4424
-
Horizontal trackpad and Shift-wheel scrolling over wide tables no longer releases timeline follow, while ordinary vertical scrolling still does. The change is small and covered by tests. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: horizontal table scrolling no longer releases timeline follow. It matches the summary, which adds a horizontal-gesture filter to the timeline-target predicate and pass… |
| Description check |
 |
The description follows the template sections (Problem, Change, Scope, Verification) only in part. It explains the problem and change clearly and gives detailed verification. It does not state a Probl… |
| 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: Title check
-
Explanation
The title names the main change: horizontal table scrolling no longer releases timeline follow. It matches the summary, which adds a horizontal-gesture filter to the timeline-target predicate and passes wheel direction through the viewport. The title is specific and uses a conventional commit prefix.
Full details: Description check
-
Explanation
The description follows the template sections (Problem, Change, Scope, Verification) only in part. It explains the problem and change clearly and gives detailed verification. It does not state a Problem section with explicit expected behavior and reproduction steps, and the Scope section does not link the bug issue. It refers to #24018 as the origin but does not state why it is a bug fix that needs no issue, and it does not clearly link a maintainer request. The Verification section gives concrete results and lists limitations. Before/after screenshots and videos are included, as the template requires for UI changes. The required section headings are not used.
Resolution
Optionally add explicit Problem, Change, Scope, and Verification headings from the template. In Scope, link the issue that shows the bug (#24018) or state why no issue is needed. Add a brief reproduction step for the horizontal-scroll follow release.
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 72757e7 and f4424ec.
Files selected for processing: 2
-
apps/web/src/components/chat/timelineScrollTarget.test.ts
apps/web/src/components/chat/timelineViewport.ts
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.
保留主线时间线重构,在新滚轮入口排除横向手势,继续支持纵向滚动。
新增真实时间线浏览器回归,确认修复前触发错误导航、修复后通过。
|
Updated in 18bee2c by merging main b424c6e without rewriting history. Main moved timeline wheel listeners into timelineViewport, so the horizontal-gesture filter now runs at that new entry point; the obsolete hook listener block stays removed.
Added a regression using the real MessagesTimeline browser component. Before the fix, horizontal/Shift-wheel gestures emitted three vertical navigation events; afterward they emit none, while a vertical wheel still emits upward navigation. check:changed passes all scoped gates and 50 tests across three files. The existing PR captures remain the visual evidence; this follow-up adds automated browser evidence for the new main architecture.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
thanks @nateEc for keeping this focused on horizontal intent. updated the original branch at 23dadff4e3 by merging current main (a2398c2ce3), preserving @nateEc's commits. the shared horizontal-intent filter and both wheel entry points were already the smallest correct fix, so i kept them and the existing regression coverage. no replacement pr or unrelated changes.
verification:
- all 30 ci checks passed on
23dadff4e3; gitcafe reports no merge conflicts.
- current main fails all three horizontal/shift-wheel regression cases; the updated branch passes them.
- blacksmith
vp run check:changed passed format, lint, knip, affected typechecks, and 53 tests across three files.
- system chrome, real codex response, matching data: native horizontal wheel with vertical noise moves the table 160 px. on main the composer shrinks 112 → 48 px; after the fix it stays 112 px in both directions and with shift-wheel. outer timeline scroll position stays unchanged. vertical wheel still collapses to 48 px, and refocusing restores 112 px.
- pageup/end and vertical collapse/restore pass; horizontal input also preserves an already collapsed composer.
- two independent source reviews found no issues at this head. coderabbit reported a review quota limit on this merge commit; its existing review has no actionable findings and its check is green.
unverified: continuous live-provider streaming follow after a horizontal gesture (the bounded capture missed the streaming window; the real timeline browser regression verifies that horizontal input emits no follow-release navigation), physical macos trackpad, packaged electron, and mobile. web and desktop share these handlers; mobile's separate touch path is unchanged. the clips record actual chrome interactions driven by playwright, not physical hardware gestures.
before, after the horizontal gesture:




|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@coderabbitai review
The last review attempt on this head was rate limited. Please retry the review; the branch has no code changes since that attempt and its CI checks are passing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
✅ Action performed
-
Review finished.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
maria-rcks
commented
Oct 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified as-is at 23dadff4e3f523997ac805454dad3cd30732e526. no code changes or pushes.
ran github/main (eb751fa073) first in a separate worktree, then the exact pr head, with one background dev server at a time and isolated state. used repository playwright and /usr/bin/google-chrome at 1440×1000. created the project and conversation through the app, with real codex gpt-6.1-sol turns generating the tables. no mocks, fixtures, or demo provider.
- main reproduces unintended follow release: native
mouse.wheel(160, -30) moves the table 160 px, leaves the outer scroll position unchanged, and changes follow from enabled to disabled. current main has already removed desktop composer collapse, so that older height symptom is no longer reproducible there.
- the pr preserves follow and the expanded 112 px composer through both horizontal directions and shift-wheel. table scrolling still works.
- vertical wheel releases follow and collapses the composer to 48 px. focus restores 112 px. horizontal input preserves an already collapsed composer. pageup/end still navigate, and the draft survives.
- during another real codex turn, scrolled the commentary table sideways while its shell command was running. subsequent final output followed to the bottom without another click.
runtime observations (follow read from the rendered timeline component; offsets measured from the DOM):
pr horizontal: tableLeft 0 -> 160; timelineTop 469 -> 469; follow true; composer 112
pr vertical: timelineTop 469 -> 209; follow false; composer 48
active codex turn after horizontal: tableLeft 160; timelineTop 5184; follow true
subsequent final output: timelineTop 5537 = scrollHeight 6485 - clientHeight 948; follow true
blacksmith: 53 tests passed across timelineScrollTarget.test.ts, timelineViewport.test.ts, and MessagesTimeline.browser.test.tsx. the head also has 31 successful ci checks, none pending or failing.
matching table and draft, cropped to the chat area:


playwright's browser recording, encoded as an animated gif for github, of horizontal, reverse, shift-wheel, vertical collapse, refocus, and horizontal input while collapsed. uploaded playback and seeking checked in t3's browser player:



Not verified
physical macos trackpad gestures, packaged electron, native ios/android, other providers, and relay/tunnel connections were not exercised on this linux vm. input came from native browser wheel events driven by playwright. the live check proves follow across commentary, tool execution, and final output; it does not establish sustained token-by-token streaming behavior through every proxy.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- 接受主线移除桌面滚动折叠的改动,避免恢复过时交互。
- 保留横向表格滚动不打断时间线自动跟随的修复。
nateEc
changed the title
fix(web): keep the composer stable during horizontal table scrolling
fix(web): horizontal table scrolling preserves timeline follow
Nov 7, 2026
|
Merged main e455200 in 72757e7. Main removed desktop composer scroll-collapse, so the resolution keeps that removal and removes only the obsolete collapse assertions. The remaining diff fixes horizontal-wheel follow release and retains the integrated MessagesTimeline regression. check:changed passed (63 tests, affected types/lint/knip/compiler checks). Updated the title and description to describe the remaining behavior and explicitly label the older composer images/videos as historical evidence.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fold the horizontal-gesture cases into a single table in the unit test and
drop the browser test that repeated them through the viewport wiring.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Evidence
Real Chromium web client on Linux, 1280×800, light theme, fresh isolated databases and identical replay data. In separate threads, render a 20-column × 6-row table, send a second request for 30 long paragraphs, then gesture over the table at the timeline bottom. Run 4×(60,−8), 10×(20,−3), and 4×Shift+(0,−40). Sample the gap every 250 ms and capture after streaming and scroll geometry settle.
All three gestures released follow on base (final gap 5,048 px), but preserved follow on head (final gap ≤2 px). Pure sideways preserved follow on both; ordinary upward scrolling released it on both.
Scenario source · Complete paired captures, including controls
Not shown:
- Physical macOS trackpad input and packaged Electron were not exercised; gestures were delivered through Chromium browser automation.
- Replay streamed the 30 paragraphs in about 34 seconds rather than the original approximately 150-second model response.
|
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.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bugfix
Fix PR opened by an issue lead; enters the PR loop
pr:gate-failed
A land gate failed
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or 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.
|