Skip to content

Preserve loaded timeline history during content-cut row updates - #5219

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-flickering-thread-timeline-thr_kebrki7u3z
Oct 8, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-flickering-thread-timeline-thr_kebrki7u3z

Conversation

@ymichael

@ymichael ymichael commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Background updates made long timelines repeatedly discard and reload their loaded history. #4397 sends updates for older rows, but when pagination cuts within a large turn, the content paginator also includes those fully omitted rows in its stale-history sequence. Even when their updates fit in the response, that duplicate accounting tells the client to rebuild. The affected live thread repeatedly dropped from 16 rendered rows to 7 before reloading.

What changed

Only partially returned rows contribute omitted-child sequences from content pagination. Fully omitted rows are accounted for by the outer paginator, which excludes updates already included in the response. Missing nested changes and updates exceeding the response budget still require a rebuild. No public or daemon wire fields change.

How you verified

  • Regression assertions failed before the fix and pass afterward. Coverage includes fully omitted rows, partially returned nested rows, and updates exceeding the byte budget.
  • 47 tests passed through pnpm exec turbo run test --filter=@bb/server -- test/services/threads/timeline-pagination.test.ts test/services/threads/timeline-parented-pagination.test.ts test/services/threads/timeline-event-budget.test.ts.
  • Server typecheck, formatting, and git diff --check passed.
  • In an isolated source app with over 1,600 synthetic command events, loaded history stayed mounted after a late update: all 25 rendered rows remained, and the visible anchor stayed at y=64 across the refresh.
  • Built and launched pnpm start:worktree; verified the prepared timeline renders in its production bundle.

AGENT GENERATED

@ymichael
ymichael merged commit cc9cc74 into main Oct 8, 2026
28 checks passed
@ymichael
ymichael deleted the bb/fix-flickering-thread-timeline-thr_kebrki7u3z branch October 8, 2026 16:53
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