Skip to content

Watch layout shifts in surveyed nightly journeys - #1533

Merged
max-sixty merged 4 commits into
mainfrom
codex/nightly-shift-watch
Oct 1, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/nightly-shift-watch

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Nightly tests disable the passive layout-shift watcher wholesale. Add a watch_shifts marker 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-place posture 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.

This was written by Codex on behalf of max-sixty

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
leaf-agent previously approved these changes Oct 1, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
leaf-agent dismissed their stale review October 1, 2026 22:52

CI failed: newly watched syntax-highlighting journey reports an unsolicited margin-cluster shift.

@max-sixty
max-sixty merged commit 65b672f into main Oct 1, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/nightly-shift-watch branch October 1, 2026 23:23
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_
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.

2 participants