Skip to content

Studio: update Hugeicons to 4.4.0 - #16442

Merged
shimmyshimmer merged 2 commits into
mainfrom
studio-hugeicons-4-4
Nov 2, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
studio-hugeicons-4-4

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Updates @hugeicons/core-free-icons from 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:

  • Archive02 and Archive03 become Hugeicons "archive"
  • Attachment becomes Hugeicons "attachment-01"
  • AiImage, AiSecurity03, Album02 and FolderOpen keep their 4.1.1 drawings, copied locally, since their 4.4.0 redraws change what they depict

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:

Hugeicons before and after

Verified locally: typecheck, the full frontend test suite and the build pass. Only the Hugeicons entry changes in the lockfile.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 2, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T01:15:14.570310Z 83259bc Manual request
ℹ️ 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: 83259bc107

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

@shimmyshimmer
shimmyshimmer merged commit 6401ced into main Nov 2, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-hugeicons-4-4 branch November 2, 2026 01:23
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]>
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