Repository navigation
Studio: update Hugeicons to 4.4.0 - #16442
Merged
Merged
Conversation
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 2, 2026
Member
Author
|
@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: 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". |
danielhanchen
added a commit
to Imagineer99/unsloth
that referenced
this pull request
Nov 6, 2026
…the chat grows (unslothai#16801) Adds a browser CI gate that fails when typing in a long chat costs more as the chat grows, the shape of unslothai#16603. **Stacked on unslothai#16656. Please merge unslothai#16656 first**: this branch contains its commits, and the gate fails on current `main` by design (that is the regression it catches). ## Why unslothai#16603 came back because nothing in CI measured per-keystroke cost against chat length. Bisecting the Studio frontend from `v0.1.913` to `main`: | Build (200-turn agent chat, about 427K tokens) | Style work per keystroke | | --- | --- | | before unslothai#16333 | 15.6 ms | | unslothai#16333 (wallpaper fade `:has()`) | 619 ms | | `v0.1.914-beta` | 144 ms | | `main` | 136.5 ms | | `main` + unslothai#16656 | 4.6 ms | unslothai#16333 added a descendant `:has()` on elements that hold the whole thread (`[data-wallpaper-workspace]`, `[data-chat-content-root]`), so Chromium (Desktop, Chrome, Edge) walks every message on each keystroke. Firefox is not affected, which matches the "browser is fine" reports. unslothai#16751 (Reduce Motion default off) then made scroll pay that walk more often (61 ms to 188 ms per wheel step), which is why turning Reduce Motion back on did not help typing. unslothai#16300 (`d56738f40`) already removed two other unslothai#16333 rules that restyled the whole page on every key (real-app bisect: 563.8 to 91.2 ms per key), which is why 0.1.914 was slow but not as slow as unslothai#16333. The fade rule stayed. unslothai#16656 removes every such rule and adds a static guard test; this PR adds the runtime gate so a new rule of that shape, or anything else that scales with chat length, cannot ship again. ## What the gate does `tests/studio/playwright_long_thread_gate.py` runs **first** in every frontend lane, right after `npm ci`: Frontend CI (Linux, Windows), Composer compatibility (Ubuntu, macOS, Windows, Safari) and Inline images (Ubuntu, macOS, Windows). 1. Builds `smoke-thread-weight.html` for production (`vite.long-thread.config.ts`) and seeds an agent-style history inside the real app ancestors (`?shell=1`: sidebar workspace, wallpaper, chat content root) with open reasoning, tool cards, web sources, compaction markers, code, KaTeX and tables. The fixture shape is checked, so a fixture that stops rendering something fails. 2. Measures the 200-turn chat first. Two untraced keys decide how much to trace: a healthy page traces 10 keys, a slow one 2, and a page hundreds of times slower than healthy fails on the untraced number alone. 3. Fails if `:has()` matching costs more than 5 ms per key at 200 turns, or if total selector matching per key grows more than 2x from 40 to 200 turns. A second repeat runs only when the ratio is near the limit. Both checks are ratios or tiny budgets on selector matching, so a slow runner cannot fail them. ## What a failure says A failure prints ms per key at each size, how far over budget it is and the top selectors with their match attempts. Selectors tried on most of the DOM are marked as likely victims of a whole-page restyle. It then pins down the trigger: it removes `:has()` rules from the stylesheet text before fresh page loads (rules switched off in a page that already rendered leave Chromium's `:has()` state behind and blame the wrong rule) and bisects for the rule whose removal makes typing cheap, trying rules that search an element holding the thread first. Each rule found is mapped to its likely source with a text match, worded as a possibility. On current `main`: ``` FAIL: :has() matching costs 63.6 ms per keystroke at 200 turns, budget 5.0 ms (12.7x over); total selector matching 358.9 ms/key pin-down at 60 turns, untraced style recalc per keystroke: 48.5 ms with all 262 :has() rules, 1.1 ms with none of them Measured: removing only this rule takes the keystroke from 48.5 to 1.8 ms (no :has() rules: 1.1 ms); this rule on its own costs 4.9 ms: :is([data-wallpaper-workspace], [data-chat-content-root]):has(> .chat-wallpaper[data-ready] .chat-wallpaper-image[data-fade="false"]) .thread-bottom-fade It is possible this section caused the issue, but we cannot be sure (a text match): studio/frontend/src/index.css:6210 (exact text match) Pattern: `:has(> .chat-wallpaper[data-ready] .chat-wallpaper-image[data-fade="false"])` on `:is([data-wallpaper-workspace], [data-chat-content-root])` searches all descendants (no leading `>`, or a space inside), so Chromium re-walks everything under that element after each DOM change, whether or not anything matches. `[data-wallpaper-workspace]` (first found in studio/frontend/src/app/routes/__root.tsx:720) holds the whole thread, so every keystroke walks every message. ``` `tests/studio/test_css_culprit.py` covers the source mapping and the `:has()` shape check. ## Replay against past stylesheets The gate on this branch, with only `index.css` swapped in from each commit (CPU runner): | `index.css` from | Verdict | Time | Pin-down | | --- | --- | --- | --- | | before unslothai#16333 (`4ce36bc3b5`) | PASS | 25 s | | | unslothai#16333 (`65e868dcf5`) | FAIL | 104 s | fade rule: 276.0 to 1.5 ms without it | | unslothai#16442 (`6401ceda29`) | FAIL | 105 s | fade rule | | `v0.1.914-beta` | FAIL | 101 s | fade rule | | `main` | FAIL | 104 s | fade rule: 48.5 to 1.8 ms without it | | this branch | PASS | 28 s | | On GitHub runners a passing gate takes 30 to 77 s per lane plus 12 to 24 s for Chromium (staging run of every lane on Linux, Windows and macOS). ## Other changes - The smoke fixture gains `rich` agent content (markdown, table, list) and the `?shell=1` app shell. - The gate's Chromium step installs missing Linux libraries only when Chromium cannot launch, through `retry-with-apt-lock.sh` with `APT_ACQUIRE_RETRIES=0` and a 10 minute step timeout, like the other browser steps. --------- Co-authored-by: imagineer99 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
@hugeicons/core-free-iconsfrom 4.1.1 to 4.4.0, the latest release, so Studio picks up Hugeicons' redrawn icons.Of the 200 Hugeicons Studio uses, 33 were redrawn in 4.4.0. This takes the new drawing for 26 of them (Cancel01, RemoveCircle, Star, Favourite, BubbleChat and others, mostly small refinements) and also:
The local copies of icons the old version lacked (trash, bookmark-01, settings-01, chip, images, hand, sheet, sparkle and the folder set) now match 4.4.0 exactly, so they are re-exported from the package instead of duplicated.
Every icon that changes, before (4.1.1) and after this PR:
Verified locally: typecheck, the full frontend test suite and the build pass. Only the Hugeicons entry changes in the lockfile.