Repository navigation
Preserve loaded timeline history during content-cut row updates - #5219
Merged
Merged
Conversation
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
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
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.git diff --checkpassed.pnpm start:worktree; verified the prepared timeline renders in its production bundle.