Repository navigation
fix: enable timeline windowing from 20 items - #4540
Merged
Merged
Conversation
ymichael
deleted the
bb/investigate-and-fix-issue-4445-thr_punctm24sf
branch
September 30, 2026 03:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Human comments
What was wrong
Top-level timeline lists waited until 60 items on desktop or 40 on compact screens before windowing. Rich conversations below those thresholds kept all their content mounted, despite the existing shared windowing default of 20.
What changed
Remove the top-level threshold overrides and use the shared 20-item default on both viewport sizes. Eight-item overscan, pinned navigation targets, and nested-list behavior remain unchanged. There are no CLI, SDK, configuration, or wire-contract changes. Twenty is a conservative default, not a measured optimum. Remaining long tasks after windowing is already active are outside this fix.
How you verified
New owner-boundary cases fail on the previous thresholds for desktop 20/59 and compact 20/39 items, then pass with the fix; 19-item controls remain unwindowed.
pnpm exec turbo run test --filter=@bb/app -- src/components/thread/timeline/ThreadTimelineRows src/components/thread/timeline/TimelineWindowedItems.test.tsx: 101 tests passed across 13 files.pnpm exec turbo run lint typecheck --filter=@bb/app: passed, with existing lint warnings.Built and ran
pnpm start:worktreeagainst fresh synthetic data, using the matching source-built BB CLI for machine status, thread/history/event reads, event pagination, and search.Full-app Chromium checks: medium conversation windows below the old thresholds on desktop and compact screens; long-history scrolling loads 89 older rows, outline navigation realizes an offscreen target, and command expansion plus return-to-latest work. A 30-step scroll had no sampled empty viewport.
Original-threshold and fixed builds were captured against the same medium conversation. Desktop mounted rows fell from 23 to 11; compact from 23 to 12. The visible layout is preserved.
A fixture rename initially left a stale pagination cursor; restarting the QA server and opening a fresh page resolved it without a source change. No claim that this branch fixes rename-related invalidation.
Compared thresholds 10/20/30 on the same 23-item full-app fixture at 1280×720 and 390×844. Thresholds 10 and 20 mounted 11–12 rows initially; 30 mounted all 23. All six 30-step scroll runs had zero sampled blank viewports and no observed long tasks. This small fixture does not establish an optimum or resolve the separate already-windowed performance concern.
Final QA build comes from clean committed head
4d8b43e2e194f8f77c9073fee812b895f9154d49; the served HTML hash matches the local build.Final CI: all checks complete (17 successful, 3 skipped). Linux package smoke passed on retry after the first attempt failed at the Ubuntu package mirror download.
Refs #4445