Skip to content

fix: enable timeline windowing from 20 items - #4540

Merged
ymichael merged 1 commit into
mainfrom
bb/investigate-and-fix-issue-4445-thr_punctm24sf
Sep 30, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/investigate-and-fix-issue-4445-thr_punctm24sf

Conversation

@ymichael

@ymichael ymichael commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

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:worktree against 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

AGENT GENERATED

@ymichael
ymichael merged commit 4cdf7a2 into main Sep 30, 2026
32 of 33 checks passed
@ymichael
ymichael deleted the bb/investigate-and-fix-issue-4445-thr_punctm24sf branch September 30, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant