Skip to content

Check settled panel paint independently of frame delivery - #4207

Merged
max-sixty merged 2 commits into
mainfrom
codex/issue-4128
Oct 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/issue-4128

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

The floating-panel paint test now waits for each pointer and keyboard fold to finish, then checks the visible mark against the control's centre and its keyboard focus ring. The previous test required intermediate screencast frames and failed under background scheduling even though the same test passed normally and with 10× CPU throttling.

Move the frame-by-frame reading to leaf-dev bench-panel-motion. It reports frame coverage, missing paint and ring separation with host load, without making frame delivery a CI pass/fail condition. Both paths share the pixel reader and the existing panel-motion completion helper. The browser-support note points to the benchmark.

The settled screenshot reads only the panel strip, excluding page text that happens to match the mark's colour. A deliberately matching heading reproduces the Linux CI failure before that crop and passes with it.

Validation: the old test failed under taskpolicy -b on a missing ring frame; the new test passes normally, under taskpolicy -b, and with --cpu-throttle 10. The adjacent held-motion badge test passes. A hidden-mark mutation makes the new test fail at its paint assertion. The benchmark exercised all four routes, reporting 0 missing marks/rings and at most 1.5px separation under normal scheduling. Under taskpolicy -b it reports the observed missing ring frame (1 of 6 keyboard-fold frames) without failing the command. Focused pre-commit checks pass. No product runtime changed.

Closes #4128

This was written by Codex on behalf of max-sixty

Move sampled fold/unfold paint to an opt-in developer benchmark. Keep pointer and keyboard endpoint pixel coverage in the functional suite so background scheduling does not determine whether CI receives an intermediate frame.
@max-sixty
max-sixty marked this pull request as ready for review October 26, 2026 06:32

@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 settled-paint test fails on Linux because its colour search now includes the page content. The inline suggestion restores the panel-strip search; the focused test passes with that correction.

@max-sixty
max-sixty merged commit 0ea7dd7 into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/issue-4128 branch October 26, 2026 06:58
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.

The moving-focus-ring test depends on frame timing

2 participants