Skip to content

Move a comment's note with its thread when a page script or a revision changes its block - #6527

Merged
max-sixty merged 4 commits into
mainfrom
agent-a9e758594f1bac692
Nov 19, 2026
Merged

max-sixty merged 4 commits into
mainfrom
agent-a9e758594f1bac692

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

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_redrawn took 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.

  • The anchor controls keep each thread's seats (the blocks its note or reaction stands on) from their last render. When placement names threads it placed again, they work out those threads' seats by the render's own rule and ask for a pass only where one differs.
  • Placement settles after a script that replaces an element a section anchor names.
  • The controls' render reads the shown document again, a read Keep readings of the page by what they read, recorded as they read it #6346 dropped from the pass.

To weigh:

  • A script that redraws a commented block asks for a whole thread pass each time, as a widget's lf-layout does. 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.
  • Left open, by reading: a script that redraws an uncommented picture leaves its "Responses to …" group shelved on the removed picture, since no thread moves.

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:runtime and check:browser.

This was written by Claude Code on behalf of max-sixty

…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 max-sixty changed the title Seat a commented block's note again when the page redraws the block or a revision patches it Move a comment's note with its thread when a page script or a revision changes its block Nov 19, 2026
@max-sixty
max-sixty marked this pull request as ready for review November 19, 2026 18:22
@max-sixty
max-sixty merged commit 731699a into main Nov 19, 2026
4 checks passed
@max-sixty
max-sixty deleted the agent-a9e758594f1bac692 branch November 19, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant