Skip to content

Read the llama.cpp changelog after it settles, by content rather than innerText - #12273

Merged
danielhanchen merged 1 commit into
mainfrom
fix-llama-changelog-read
Sep 29, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-llama-changelog-read

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The WebKit pass of "Update banner layout, other engines" in Chat UI Tests (chat) fails intermittently with:

[banner] FAIL 768x500 new chat: expansion shows only the new carried changes list=''

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

  • At 768x500 with both update cards up, the open llama.cpp card shrinks to its floor, 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 its py-3 padding alone. Its content box is 0px high and its three items sit in the clipped scroll area.
  • WebKit's innerText leaves out text clipped out of its scroller, so it returns ''. Chromium and Firefox return the full text for the same settled list.
  • The check read inner_text() right after wait_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.
  • The content check 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.
  • How many changes are wholly in view is logged as information, not gated, for the reason below.

Verification

Frontend Engine Old test This PR
main WebKit 7/20 failed 6/6 pass
main Chromium, Firefox pass 2/2 pass each
main, with a stale "Add TML Inkling" added to the stubbed changelog WebKit - fails at all 3 viewports (the guard still bites)

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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T10:28:20.104945Z 5cdf1b3 Manual request
🔒 Security Review ⚠️ Failed 2026-09-29T10:26:54.088087Z 5cdf1b3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-09-29T10:26:51.019122Z 5cdf1b3 PR opened
🔒 Security Review 🔄 Running since 2026-09-29T10:26:51.007572Z 5cdf1b3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 5cdf1b340a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit b2b813f into main Sep 29, 2026
25 of 27 checks passed
@danielhanchen
danielhanchen deleted the fix-llama-changelog-read branch September 29, 2026 12:05
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.

1 participant