Repository navigation
fix: restore contribution focus without publishing twice - #5102
Merged
Merged
Conversation
Queued focus already belongs to the contribution update that requested its surface. Settle that update and focus its retained control rather than starting another explicit arrival. This keeps updates in one script batched and prevents margin layout from seating the stale parent-passage Undo row between two presentations. The runtime regression fails on the old code with two publications instead of one. The suggestion decision/undo journey also fails its unchanged-style watch before the repair and passes after it. Closes #5085
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.
Queued contribution focus started a second explicit arrival after its update had already rendered. During suggestion decision and undo, that extra publication could leave margin layout measuring the old parent-passage Undo row between presentations, then restoring the same style attribute. Focus restoration now finishes the existing update and uses its retained control, keeping the request available until the renderer has materialized its surface.
This preserves the surface materialization introduced in #1652 and batching of updates within one script. Explicit navigation still requests a fresh arrival. The change adds no scheduling mode or geometry exception; the shared contribution owner removes the duplicate publication for every caller.
The reported browser journey fails the unchanged-style watch on the starting main commit and passes with this repair, including at 6× CPU throttling. The runtime regression also fails before the fix with two publications instead of one, then passes while checking that the last batched focus request reaches its control.
Validation
Closes #5085 — automated triage