Skip to content

fix: strip one revision path segment in the write watch's stack frames, matching #6066's URLs - #6080

Merged
leaf-agent merged 1 commit into
mainfrom
fix/write-watch-revision-path
Nov 16, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/write-watch-revision-path

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

#6066 moved a revision's resources from /revisions/<a>/<b>/… to /revisions/<identity>/…. The write watch's stack-frame cleaner (tests/write_watch.js) still stripped two path segments after revisions/, so it also cut off runtime/ and vendor/. The two allowed no-op scroll writes, stopWhereItStands in runtime/arrivals.js and CodeMirror's measure in vendor/codemirror.*, stopped matching EXPECTED_SCROLLS. Every test whose page stopped a scroll under way, or measured a scrolled editor, then failed its teardown with unmoved scroll: … from stopWhereItStands (arrivals.js:379:7) or … LeafEditorView.measure (codemirror.esm.js…). That covered 20 of the 23 teardown errors in run 43766062952. The cleaner now strips the single identity segment, so the watch judges the same writes it did before #6066.

On current main, test_the_reading_keys_accumulate_and_reverse and test_a_tall_local_comment_survives_its_panes_scroll_behavior_and_return fail with those teardown errors. With this change they pass, along with both browsers of test_a_landing_that_moves_nothing_stops_a_scroll_still_under_way and tests/browser/test_render_write_watch.py (which checks that a genuine unmoved-scroll is still reported).

This fixes one of the run's causes. test_show_from_on_me_lands_in_the_card_it_opens is a separate regression from #6056, filed as #6081. The colour failures are fixed on main by #6075.

Refs #3985 — automated triage

#6066's URLs carry

#6066 serves a revision's resources at /revisions/<identity>/…, one path segment
where there were two. The write watch's frame cleaner still stripped two, so it
cut runtime/ and vendor/ off every frame, and neither allowed scroll write
(`stopWhereItStands` in runtime/arrivals.js, CodeMirror's measure in
vendor/codemirror) matched any more. Every test whose page stopped a scroll or
measured an editor then failed its teardown with "unmoved scroll". The watch
reports the same writes as before.

Refs #3985
@leaf-agent
leaf-agent merged commit c31ceb4 into main Nov 16, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/write-watch-revision-path branch November 16, 2026 00:10
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