GeezerVison is showing github.com — fix(web): the composer rests on scroll when a thread opens above its end by tiliakoos · Pull Request #15025 · pingdotgg/t3code
Conversation
tiliakoos
commented
Oct 3, 2026
•
edited by juliusmarminge
Loading
Uh oh!
There was an error while loading. Please reload this page.
Threads reopened above their end could keep the composer expanded because the final virtualized row had no measured height. Use its finite top position as a lower bound when deciding whether the timeline overflows. Anchored-turn measurements still require a measured height.
Credit to @tiliakoos for the original fix and regression cases in #15025. This takeover merges current main, keeps the change focused, and combines the duplicated regression setup into one parameterized test.
Verification:
timelineScrollAnchoring.test.tsx: 18 → 20 cases. Both missing-height and NaN-height cases fail without the fix; strict row-bottom and anchored-turn metrics remain null.
- 58 tests pass across timeline anchoring, composer scroll gestures, scroll targets, and page scrolling. Scoped web typecheck, type-aware lint, formatting, and diff checks pass.
- Independent Claude Opus 5.5 and Codex GPT-6-Sol reviews; two full-diff rounds, with no code blockers in the final round. Round one’s comment-clarity request is fixed.
- Headless Linux app/server, isolated synthetic completed thread, 1280×800: restore the thread at scroll 0 through Settings → Back. LegendList reports the final row at 10,395px with no measured size and a 748px viewport. Page Down scrolls both versions to 654.5px: main leaves the composer form at 144px; this head rests it at 50px (editor 78px → 32px). Short threads still report no overflow and retain the full composer; focusing the resting editor expands it.
Before (left, main) / after (right, this head), same fixture, viewport, font and scroll:

Recorded interaction, before / after:

The baseline uses the actual main helper with the same current component integration. Synthetic fixture data and a temporary local font normalize this headless browser; neither is committed. macOS, Windows, iOS, Android and the Electron desktop shell were not verified. This fixes overflow classification; it does not change cold-entry restoration from #19663. A downward wheel event immediately after restoring the very top can still hit the existing end-restoration guard; the proof above exercises Page Down, and upward wheel scrolling was also checked from a nonzero reading position.
Implementation: Codex GPT-6.1-Sol in T3 Code through the Codex harness; focused tests: GPT-6-Astra (high); adversarial reviews: Claude Opus 5.5 (Claude Code harness) and GPT-6-Sol (Codex harness), delegated through T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
An unmeasured last row made the overflow check report "fits", so the
composer never rested. Its estimated top now counts as a lower bound.
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.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
macroscopeapp
Bot
commented
Oct 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 6c2061a
Macroscope's review found this PR approvable — This is a narrowly scoped web bug fix that corrects composer resting behavior when a virtualized timeline's final row has a known position but no measured height. It preserves strict anchoring metrics and adds regression coverage without affecting schemas, defaults, infrastructure, or sensitive code.
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 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d079fe8a-2aae-45e3-b43c-7d5b1e49f891
📥 Commits
-
Reviewing files that changed from the base of the PR and between 32d5bf1 and ad8d7c9.
📒 Files selected for processing: 2
-
apps/web/src/components/chat/timelineScrollAnchoring.test.tsx
apps/web/src/components/chat/timelineScrollAnchoring.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
📝 Walkthrough
-
The timeline overflow check now uses the final row’s finite top position plus 1px when its measured bottom is unavailable. Tests cover unknown positions and missing or NaN tail sizes.
Changes: Timeline overflow detection
| Layer / File(s) |
Summary |
Unmeasured last-row overflow apps/web/src/components/chat/timelineScrollAnchoring.ts, apps/web/src/components/chat/timelineScrollAnchoring.test.tsx |
When the final row has a finite top position but no measured bottom, the overflow check uses lastTop + 1. Tests verify that an unknown position reports no overflow and that missing or NaN tail sizes can report overflow while row-bottom and anchored-turn metrics remain unavailable. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to ad8d7
-
The change detects overflow from a finite final-row position while preserving the existing behavior for invalid positions and unavailable metrics. The inspected change leaves no actionable merge risk.
### Architecture Summary
Architecture risk: 🔵 Low · up to ad8d7
The change affects 1 system.
Changed systems: apps/web
Architecture concerns
No architecture-level concerns identified.
Review details
-
Systems and components
- observed — apps/web (ui) was modified; 2 changed files map to changed impact.
Before / after behavior
- observed — Modified behavior in apps/web/src/components/chat/timelineScrollAnchoring.test.tsx: Added an assertion that a
NaN position for the final row makes the overflow check return false.
- observed — Modified behavior in apps/web/src/components/chat/timelineScrollAnchoring.test.tsx: Added parameterized cases for missing and
NaN tail sizes: overflow is still reported, while getRowBottom and getAnchoredTurnMetrics return null.
- observed — Modified behavior in apps/web/src/components/chat/timelineScrollAnchoring.ts: The comment now describes unknown row positions, replacing “unknown row geometry.”
- observed — Modified behavior in apps/web/src/components/chat/timelineScrollAnchoring.ts:
timelineContentOverflowsViewport now captures the last row’s top position and, when getRowBottom cannot provide a measured bottom, uses lastTop + 1 if the top is finite. Previously, a missing row height made the helper return false; it now compares that lower-bound bottom against the visible scroll length.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely describes the composer scroll-resting fix for threads opened above their end. |
| Description check |
 |
The description explains the problem, implementation, scope, verification results, limitations, and test evidence. It does not use the template's Problem, Change, or Scope and approval headings, but t… |
| 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 explains the problem, implementation, scope, verification results, limitations, and test evidence. It does not use the template's Problem, Change, or Scope and approval headings, but the required information is present and the description is sufficiently complete.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Merged upstream/main (70d60e03a7) in 1ff5d9329d, so this is mergeable again. The only conflict was the doc comment on timelineContentOverflowsViewport, which #19559 had trimmed; the merge keeps the trimmed text plus one sentence on the unmeasured tail. The code change is untouched, and the diff against main is still the two files (+50 −3).
Rerun on the merged branch: timelineScrollAnchoring.test.tsx 20 passed, lint, format and the web typecheck clean. The manual client checks in the description are from the original run and were not retaken.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Taking over this one as part of the composer-chat maintainer batch. I will keep the unmeasured-tail overflow fix separate from cold-entry positioning and preserve measured anchored-turn metrics.
|
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.
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:XS
0-9 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.
|