You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci-fix: history return races with thread preview movement #2262
PR #2261’s test job failed in test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000]: the shift watcher reported a thread preview and its editor moving without input during return travel. The PR only changes the data explorer’s table padding and its derived corpus, so this is a separate browser-test failure that currently prevents the verified page repair from receiving a green broad check.
The same test passed in a single local run, then uv run leaf-dev flake 'tests/test_render_application_boundary.py::test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000]' produced 4 passes, 13 shift-watch errors, and one final-scroll mismatch (928 rather than 1000) across 18 copies. The test calls threadActions.open(..., {travel: true}) through page.evaluate, then calls browser Back while arrival is still moving. The evidence establishes a scheduling defect around that transition; it does not yet distinguish a missing input boundary in the test from a product return-position race. Changing either without settling that distinction risks hiding a user-visible movement or weakening the watch.
Investigate the transition with a held browser ordering, then fix the owner that loses the gesture or return position. The focused data explorer gate itself passes on #2261.
Triage has not isolated the owner of the race, so I did not change the return-position code or relax the shift watch. The test added in #2240 calls threadActions.open through page.evaluate, then starts Back after observing the first scroll movement. History traversal already cancels the outgoing scroll, waits two frames, and restores the saved viewport and focus; that source path alone does not explain the reported mismatch.
I attempted the focused test, but it stopped before opening the page: this runner has no wt setup, and Node cannot import @happy-dom/global-registrator from the unprepared checkout. The browser behavior therefore remains unverified in this triage run. The next useful evidence is a held ordering of the Back gesture against preview/editor movement in a prepared browser environment, preserving the shift watch and checking the final viewport.
The same history-return shift is present on main at e1629ccb8 and on PR #2259 at c07f776e6. I ran test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True-None] once on each checkout; both reached the browser fixture teardown with 11 shift reports, starting with the floating preview's message header moving 70px without input. PR #2259's test job reports that same failure. This makes the current red check independent of #2259's response-spacing change and gives #2262 a reproducible main case for the held-ordering investigation.
PR #2296's first test job failed in test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True-inset]: after the test displaced the preview inset, consume_browser_errors(page, "moved without input") received []. The second test job failed in the same test's holder case earlier in the journey: take_browser_errors(page) found unexpected preview movement before the injected displacement. The exact inset case passed once in a focused local run. These are different symptoms in the history-return and shift-watch path this issue tracks; the rerun did not make the broad suite green. PR #2296 changes this fixture's workspace CSS only by adding the --lf-holds-height declaration, which the shift watch does not read.
Still open; there is no confirmed fix for the history-return race. On current main (c2095bf40), I ran the focused contextual-card case, test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True], and it passed once (16.15s). The same case passed in the last completed scheduled CI run on October 12. Those passes do not rule out the intermittent movement and return-position failures recorded above.
The missing evidence is a held ordering of browser Back against the preview/editor movement. Until that distinguishes test input attribution from a product return-position race, I would keep the shift watch and final-scroll assertion in place.
#3374 moved the cancellation of outgoing placement to the common arrival boundary that history uses, which addresses the Back-during-arrival race here. Every case of this test has passed each nightly since Oct 15, four of them after #3374. Closing.
This was written by Claude Code on behalf of max-sixty
Activity
leaf-agent commentedon Oct 10, 2026
Triage has not isolated the owner of the race, so I did not change the return-position code or relax the shift watch. The test added in #2240 calls
threadActions.openthroughpage.evaluate, then starts Back after observing the first scroll movement. History traversal already cancels the outgoing scroll, waits two frames, and restores the saved viewport and focus; that source path alone does not explain the reported mismatch.I attempted the focused test, but it stopped before opening the page: this runner has no
wt setup, and Node cannot import@happy-dom/global-registratorfrom the unprepared checkout. The browser behavior therefore remains unverified in this triage run. The next useful evidence is a held ordering of the Back gesture against preview/editor movement in a prepared browser environment, preserving the shift watch and checking the final viewport.leaf-agent commentedon Oct 10, 2026
The same history-return shift is present on
mainate1629ccb8and on PR #2259 atc07f776e6. I rantest_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True-None]once on each checkout; both reached the browser fixture teardown with 11 shift reports, starting with the floating preview's message header moving 70px without input. PR #2259's test job reports that same failure. This makes the current red check independent of #2259's response-spacing change and gives #2262 a reproduciblemaincase for the held-ordering investigation.leaf-agent commentedon Oct 10, 2026
PR #2296's first test job failed in
test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True-inset]: after the test displaced the preview inset,consume_browser_errors(page, "moved without input")received[]. The second test job failed in the same test'sholdercase earlier in the journey:take_browser_errors(page)found unexpected preview movement before the injected displacement. The exactinsetcase passed once in a focused local run. These are different symptoms in the history-return and shift-watch path this issue tracks; the rerun did not make the broad suite green. PR #2296 changes this fixture's workspace CSS only by adding the--lf-holds-heightdeclaration, which the shift watch does not read.max-sixty commentedon Oct 13, 2026
latest?
leaf-agent commentedon Oct 13, 2026
Still open; there is no confirmed fix for the history-return race. On current
main(c2095bf40), I ran the focused contextual-card case,test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000-True], and it passed once (16.15s). The same case passed in the last completed scheduled CI run on October 12. Those passes do not rule out the intermittent movement and return-position failures recorded above.The missing evidence is a held ordering of browser Back against the preview/editor movement. Until that distinguishes test input attribution from a product return-position race, I would keep the shift watch and final-scroll assertion in place.
Preserve interrupted arrivals and avoid offscreen layout work (#3374)
max-sixty commentedon Oct 25, 2026
#3374 moved the cancellation of outgoing placement to the common arrival boundary that history uses, which addresses the Back-during-arrival race here. Every case of this test has passed each nightly since Oct 15, four of them after #3374. Closing.