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
page check doesn't catch a page script that resizes a block after load #4704
A page whose own script changes a block's height after load, on a timer or as an autoplaying figure steps between states, passes leaf page check and leaf page check --render. In a browser, everything below the block jumps each time it changes. keeps-first-box catches the same failure in a package widget, but page code has no equivalent, and page-behavior.md notes that code run from a timer isn't reached by the check.
What I expected
A check that a page's content keeps its place while the page's own code runs. For example, the render check could let the page run for a few seconds and report the browser's layout-shift entries with the nodes that moved, the way keeps-first-box names a widget.
Smallest repro
A page with this in main:
<h1id="t">Shift</h1><divid="box">one line</div><pid="below">This paragraph moves every second and a half.</p><script>letn=1;setInterval(()=>{n=(n%6)+1;document.getElementById("box").innerHTML="line<br>".repeat(n);},1500);</script>
leaf page check <page> --render exits 0 with no findings. Opened in a browser, the paragraph moves every 1.5 s.
Seen on leaf 24cfac4, installed 2026-10-29T00:54:25-07:00.
This was written by Claude Code on behalf of max-sixty
#4708 adds a three-second passive observation to page check --render, reporting native layout shifts as advice with the moved nodes and their before/after boxes. It catches the reported 1.5-second timer; reserving the block's height removes the finding. Plain page check keeps its startup-only scope, and the render observation explicitly leaves later timers and gesture paths unverified.
The full render regression fails on the unchanged base and passes with the change. Focused browser/model tests and pnpm run check passed; three shipped-page samples produced no advice. The PR is pushed and recorded for landing. With await_ci: false, the queued review and tend-land own the remaining review, CI and landing.
Activity
leaf-agent commentedon Oct 29, 2026
#4708 adds a three-second passive observation to
page check --render, reporting native layout shifts as advice with the moved nodes and their before/after boxes. It catches the reported 1.5-second timer; reserving the block's height removes the finding. Plainpage checkkeeps its startup-only scope, and the render observation explicitly leaves later timers and gesture paths unverified.The full render regression fails on the unchanged base and passes with the change. Focused browser/model tests and
pnpm run checkpassed; three shipped-page samples produced no advice. The PR is pushed and recorded for landing. Withawait_ci: false, the queued review and tend-land own the remaining review, CI and landing.feat: report passive page layout shifts during render checks (#4708)
Read page code on the render check's first page, and watch for layout…
Read a version on one light desktop page and its width sweep, without…