Repository navigation
fix: await the first bound widget drawing after unread data - #4102
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
A skipped initial Lit update leaves hasUpdated false. The next request therefore failed to claim presentation, letting page readiness finish while the first source drawing still loaded deferred evidence. Use the render root Lit creates before its first update decision to distinguish later requests from its constructor request. The regression holds that first drawing open and fails before the change; all four native diff metadata variants now pass. This preserves the unchanged-source gate and refusal retention from #3987. Closes #4093
leaf-agent
commented
Oct 25, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
#4103 addresses the same skipped-first-update readiness gap in LeafElement, using a fallback claim in shouldUpdate() instead of changing the requestUpdate() gate. These are alternative fixes; after one lands, the other should be reconciled against it rather than adding a second claim mechanism for the same gap.
Collaborator
Author
|
Closing in favor of #4103, which fixes the same skipped-first-update presentation gap and already has a standing approval. This session reproduced both manifest metadata failures in #4093 and verified that the first drawing had no presentation claim while |
This was referenced Oct 25, 2026
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.
A bound widget could report page readiness while its first drawing was still loading. Lit leaves
hasUpdatedfalse when unread data skips the initial update, soLeafElement.requestUpdate()failed to claim presentation for the first real draw. It now uses the render root Lit creates before that initial update decision to recognize subsequent requests.The new runtime regression holds the first bound drawing open: it fails before the fix and passes afterward. Both manifest metadata variants reproduced the null shadow root before the change; all four inline/manifest and desktop/phone variants now pass with their metadata, evidence, source-path and commenting assertions intact. The four failed-patch/return checks also pass, preserving #3987's unchanged-source gate and refusal retention.
Validation:
pnpm run checkpasses, including 562 runtime tests and 85 Worker tests. Rebuilt the committed kernel. A servedworktree-diffscomparison against the base reaches upgrade and presentation with the same 53 code requests (50 JavaScript requests), 90 additional code bytes, and no layout shifts in either arm. No resource dependency is added.Closes #4093 — automated triage