Repository navigation
Studio: bake the blurred chat wallpaper once instead of re-running the blur on every scroll frame - #17253
Merged
Conversation
… re-run on every scroll frame
Codex Review Summary: ✅ CompletedThis 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". |
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 9, 2026
… a reason (unslothai#17262) Stacked on unslothai#17253 (the wallpaper bake): this PR adds wallpaper modes to the long-chat gate, and without unslothai#17253 thread scroll with a wallpaper reads 3.0x to 4.6x the default look, over the gate's 4x. Merge unslothai#17253 first. ## Problem The long-chat gate measures every material and Glass lens it finds in the source, plus a few fixed variants (menus off, dark). Any other appearance setting was never measured, so a new slow look could ship the way Glass first did. Settings the gate did not reach: - the 22 custom appearance settings (`appearance-custom-store.ts`: contrast, outlines, cursors, font smoothing, code line numbers / wrap / ligatures, chat width, font sizes, fonts, colours, sidebar layout) - Glass strength, which scales the blur up to 2x - the chat wallpaper, which about 70 Glass rules depend on (`data-chat-wallpaper-workspace-ready`), plus the wallpaper's own blur - palettes (`neon-cyberpunk` has its own composer focus glow) ## Change - `tests/studio/_appearance_coverage.py` reads the appearance settings from the source (the `DEFAULT_CUSTOMIZATION` keys and each value of their `*Setting` unions, the persisted Glass store keys, the wallpaper's `DEFAULT_ADJUSTMENTS`, the palette ids) and scans every `.css` file for `html` / `:root` attributes and classes on rules that set `backdrop-filter`, `filter`, animations, `will-change`, `mix-blend-mode`, masks or box-shadows. - Each item must map to a gate mode or to an allowlist entry with a reason. `tests/studio/test_appearance_coverage.py` fails, with a message saying what to add, when a new setting, value or costly root flag is neither. - Six new gate modes at 40 turns on the 8 setting-sensitive areas: `solid+custom` and `liquid-3d+custom` (the costliest customisation values), `solid+wallpaper` and `liquid-3d+wallpaper` (a generated wallpaper seeded into the app's IndexedDB, blur 20), `solid+palette` (`neon-cyberpunk`) and `liquid-3d+strength-max`. - Every new mode first checks that its setting reached `<html>`, so a renamed key cannot silently measure the default look; the wallpaper modes also wait for unslothai#17253's baked artwork and report the page broken if the live filter stays. ## Results - A synthetic `html[data-sparkle-trail]` rule with an animation, a new `sparkleTrail` setting and a new `chatWidth` value each fail the coverage test with a clear message; main and this branch pass (37 tests in `test_area_matrix.py` and `test_appearance_coverage.py`). - Local gate run of the new modes on this branch (2 runs): thread scroll with a wallpaper 1.5x and 1.6x the default look (3.2x to 4.6x without unslothai#17253), every new cell under its limit. - CI cost: about 6 extra pages at 40 turns, roughly 60 to 75 s on top of the gate's ~300 s. - Not covered: settings that only exist on WebKit or in the desktop shell are listed as such (the gate runs Chromium).
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.
Problem
With a chat wallpaper, scrolling a chat cost 3x to 6x more than without one, Glass off included. The wallpaper artwork carries a live
filter: blur(), and it sits behind the thread viewport, which is see-through with a wallpaper, so every scroll frame runs the blur again over the whole window.Ablation on the long-chat gate (Chromium, thread scroll with a wallpaper, Glass off, 2 readings each):
backdrop-filterremovedwill-change)Change
WallpaperArtwork(artwork.tsx) paints the box exactly as the CSS background did (same sizing, position, clipped to the box), blurs it once on a canvas, and shows that bitmap.transform: scale(zoom)stays in CSS, keeping the filter-then-transform order.filter(older WebKit) use a downscale and smooth upscale. An image the canvas cannot read (cross-origin) keeps the live filter, as today. Baked URLs are revoked.artwork-geometry.ts) with unit tests.Results
Long-chat gate, Chromium, 40 turns, 3 rotated runs per arm, main also run as an A/A arm (6 readings):
Source card with a wallpaper: 1.4x to 6.7x on main, 1.2x to 1.6x here. Composer menu: 1.2x to 1.9x on main, 1.1x to 1.4x here.
Look
Unchanged in practice: in wallpaper-only regions main and this PR differ by at most 2 to 3 levels of 255 (p99 1 to 2), in both solid and Glass. Left: main. Right: this PR.
Tests
tests/wallpaper-artwork.test.ts: geometry for all six sizings, the bake scale and the wiring.tsc --noEmitclean.filtersupport has unit coverage only.