Repository navigation
fix(preview): prevent frame backlog and connection flicker - #938
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.
Change
Returning to an active thread can replay buffered Preview frames while its conversation catches up, and refreshing target metadata can briefly replace the image with Connecting. Keep subscriptions stable by comparing the actual target scope, retain the previous image until the next frame is decoded and drawn, and preserve automatic Preview when repairing a history checkpoint.
Web/desktop now acknowledges each frame after drawing it, so the existing worker pacing also bounds the path through BFF and the browser. Discarding an obsolete Desktop/Device target frame releases the replacement image. The additive RPC validates the owner, active grant, original worker link and delivered frame, including linked-computer routing. Existing clients retain stream-consumption acknowledgements; the new mode requires support on the linked home and does not change WorkerLink.
Update the automation, protocol and UI API documentation.
Verification
check:tmp.git diff --check. Regenerated protobuf contracts withbun run gen.Fixes: #846