Repository navigation
Watch layout shifts in surveyed nightly journeys - #1533
Merged
Merged
Conversation
Separate watcher eligibility from nightly scheduling with watch_shifts. Enable the existing composer, syntax/comment, version-menu, and playback journeys without adding fault exemptions. Keep unsurveyed nightly tests and first presentation explicitly distinct. Add a nightly sensor control for allowed field growth, unsolicited movement, and typing that carries its field. The earlier blanket exclusion predates several prepaint fixes; full enablement needs a fresh Linux-inclusive survey. Validation: 1477 everyday tests, 199 runtime tests, seven real opted-in nightly cases, seven sensor controls, and changed-file pre-commit checks pass. A planted 40px playback-stage shift passes the test body but fails browser-fixture teardown.
leaf-agent
previously approved these changes
Oct 1, 2026
leaf-agent
reviewed
Oct 1, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new watch_shifts opt-in on test_code_is_colored_without_a_word_moving fails the landing gate: the page's leaf-margin-cluster moves without input by (1006, 401)px. The Linux test job reports it at browser-fixture teardown, and uv run pytest tests/test_render_anchors.py::test_code_is_colored_without_a_word_moving -q -n0 reproduces the same error locally. This journey cannot be counted as watched and passing until that movement is fixed at its source.
leaf-agent
dismissed
their stale review
October 1, 2026 22:52
CI failed: newly watched syntax-highlighting journey reports an unsolicited margin-cluster shift.
leaf-agent
approved these changes
Oct 1, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 1, 2026
…clock (#1538) An active comment becomes hidden and loses focus when its subject remains in the document but loses its visible attachment, for example when a responsive sidebar disappears. Keep that editor in the usable window through the shared Floating UI placement path, preserving its semantic anchor, draft and focus; reattach when the subject returns. Update the offscreen contract and add ordinary-clock controls for hiding, reattachment, continued editing and deliberate dismissal. The gallery demonstrates the behavior and its corpus is regenerated. Keep independent corpus journeys and advance their already installed test clock through every arrival-notice callback before reading. Three alternating comparisons of the original scroll, resize and draft cases on two sources reduced median wall time from 44.33s to 25.47s; accounted CPU was 29.43s versus 29.83s, so no CPU saving is established. All original assertions, fresh navigations and real-time idle observation remain. Preparation grouping was measured and rejected. Validation: local landing selection: 1,483 passed; runtime folds: 189 passed; all pre-commit hooks, reproduced bundles, browser-framework checks/tests and Worker types/tests pass. Four ordinary-clock composer controls and five current-runtime notice/resize/draft/idle cases pass. Callback controls preserve periodic callbacks, asynchronous fetch/error collection, fixed Date and resumed real-time timers; words-loss detection remains active. Native shift controls pass under ordinary time. The existing fixed-clock/native LayoutShift timestamp mismatch is owned by [PR #1533](#1533); this change does not claim shift coverage for those nightly cases. Independent review found no outstanding issues. Startup profile: request counts remain 195 JavaScript/197 code requests; presentation loads approximately 2KB more code. Single-run elapsed differences are diagnostic. > _This was written by Codex on behalf of max-sixty_
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.
Nightly tests disable the passive layout-shift watcher wholesale. Add a
watch_shiftsmarker so verified nightly journeys reject unsolicited movement and typing that carries its field independently of their schedule. Enable seven existing cases across composers, syntax highlighting with an arriving comment, version-menu input, and timed playback, without adding known-fault exemptions.Linux coverage exposed a margin row painting before layout assigned its position. Keep new rows hidden and measurable until the existing
data-lf-placeposture admits their first paint. A regression test materializes a real contribution before its queued layout pass and verifies both measurable withholding and later visibility. Remove the two existing margin exemptions that described this insertion defect; all seven read-state parameter cases pass without them locally.A nightly sensor control exercises allowed field growth, movement without input, and typing that carries the field. A planted 40px shift in the playback stage passed the test body but failed browser-fixture teardown, demonstrating detection beyond the case's own assertions.
Validation: the everyday Python gate passed before the placement repair. The runtime gate, changed-file pre-commit checks, independent review, and focused placement, keyboard, touch, inline and folded-pin tests passed after it. The regression failed before the repair and passed after it. A served startup comparison added no requests or blocking work (202 requests on both versions; 141 extra code bytes). The complete Linux CI branch gate passed, and automated review approved the current head.
Broader enablement needs a fresh Linux-inclusive survey after the prepaint fixes. First-paint coverage additionally requires resolving the remaining widget geometry findings and removing the separate first-presentation exemption.