Repository navigation
Read the llama.cpp changelog after it settles, by content rather than innerText - #12273
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
The WebKit pass of "Update banner layout, other engines" in Chat UI Tests (chat) fails intermittently with:
It failed on 09-28 (
studio-ltx23-fast) and 09-29 (#12241), both on PRs that don't touch the update cards. Locally it failed on WebKit in 7 of 20 runs against main.Root cause
min-h-[calc(117px+93px*var(--ui-font-scale,1))], a frame or two after the list turns visible. At that floor the changelog<ul>is 24px tall, which is itspy-3padding alone. Its content box is 0px high and its three items sit in the clipped scroll area.innerTextleaves out text clipped out of its scroller, so it returns''. Chromium and Firefox return the full text for the same settled list.inner_text()right afterwait_for(state="visible"). Most runs read the first, unshrunk layout (list 88.7px), so WebKit passed. It failed only when the shrink had already landed.I measured the list height at 0 / 0.5 / 1 / 2 / 4 s after expansion. It always settles at 24px (card 213px, stack 500 of 500), on WebKit and on Chromium.
Change
Test only, in
tests/studio/playwright_update_banner_layout.py:settle_llama_changelog()waits until the open list has held one height for three animation frames, then reads.text_content(). It is about which changes are listed (the new carried ones, not "Add TML Inkling"), and that should not depend on how an engine treats clipped text.Verification
Layout note, not changed here
With both cards up at 768x500, the open "What changed" list shows no whole change on any engine: the first row is half cut by the list's clip. I tried raising the llama.cpp card's floor. It does put a whole change in view, but the 500px stack then overflows and the card's "Update" row goes off screen. The card's own rule is that only the notes give up height. There isn't room for the Unsloth card's four-line preview, the llama.cpp header, one change and the actions (about 534px against 500). So either the Unsloth preview yields, or the stack scrolls, or the list stays as is. That is a layout decision, so this PR only reports the measurement in the test log.