Repository navigation
Move a comment's note with its thread when a page script or a revision changes its block - #6527
Merged
Merged
Conversation
…r a revision patches it A comment's note (the "1 comment" control a block names as its details) moved to a redrawn block, or took back a block a revision had patched, only on the next thread pass, and nothing asked for one. The pass came from something unrelated: the age label's minute tick until #6097, then the thread turning "Still queued" two minutes after the comment. So the nightly's `test_notes_of_one_passage_across_two_blocks_each_follow_their_block_redrawn` waited about 118 s of its 120 s on every run, on Linux and macOS alike, and failed on macOS on Nov 19 when that pass landed late. `test_any_focus_on_a_note_rings_its_block_and_follows_it_redrawn` waited about 46 s, and `test_a_revision_keeps_a_block_naming_its_comment_note` has waited about 118 s since #6346 moved the visual-actions plan's read of the shown document into a kept reading, which left the thread pass with no read of the document. - Anchor controls ask for a thread pass when placement places a thread again and an element a note, a reaction or a picture's responses stood on has left the page. Words rewritten inside a block that stays ask for none. - Placement settles after the script that put in or took out an element whose id a thread's section anchor names, as it already did for text a placed passage stands in. - The anchor controls' render reads the shown document, so a revision draws them again, as it did before #6346. The three tests now read the notes once, after `rendered`, instead of waiting out the deadline; each fails at once against main's runtime and passes in about a second here. The redraw test moves back from `journeys/` to `browser/`, since it no longer takes two minutes.
…, not when a holder left the page The gate asked whether an element a note, reaction or picture's responses stood on had left the page. A script that moved a commented passage's words into another block, leaving the block they stood in, moved the note nowhere until an unrelated pass, and the walk over every holder grew with the page rather than the change. The anchor controls now keep each thread's seats from their last render, and when placement names the threads it placed again, they work out those threads' seats by the same rule the render uses (`seatsOf`) and ask for a pass only where one differs. Placement's header now says only what a hearer of `hearPlaced` can rely on. `test_a_note_follows_its_words_into_another_block_while_their_first_stays` holds the moved passage.
max-sixty
marked this pull request as ready for review
November 19, 2026 18:22
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 comment's note (the "1 comment" control a block names as its details) followed a block the page redrew or moved its words out of, or a block a revision patched, only on the next thread pass, and nothing asked for one; an unrelated later pass, such as the thread turning "Still queued" after two minutes, moved it. So
test_notes_of_one_passage_across_two_blocks_each_follow_their_block_redrawntook about 122 s of its 120 s wait on each nightly since Nov 16 and failed the Nov 19 macOS nightly (run); the single-block redraw test took about 47 s, and the revision test about 120 s since #6346.To weigh:
lf-layoutdoes. At 303 threads, replacing one commented block every frame took the median frame gap from 33 to 50 ms; main is faster only because it leaves the note on the removed block. Words rewritten inside a block ask for none.Four tests now read the notes once after
rendered, among them a new one for words moved into another block while their block stays. Each fails on main's runtime, and each fails when its own piece of the fix is removed. Also ran the comment-mark and reaction modules,test:runtimeandcheck:browser.