Repository navigation
Studio: Glass Settings pane scrolls on the compositor; API monitor fade pauses its blur (software compositing) - #17308
Merged
Conversation
…de pauses its blur (software compositing)
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. |
Member
Author
|
@codex review |
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 9, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 9, 2026
|
Codex Review: Didn't find any major issues. Delightful! 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". |
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 Glass under software compositing (no GPU, the case the #17007 motion pause targets), scrolling the Settings dialog still costs about 3x to 4.5x the default look. The see-through Settings pane is not scrolled by the compositor: every scroll frame re-rasters the whole pane (raster 2 ms on the default look vs 384 ms on Liquid 3D in a trace). Removing blur, shadows, background images or filters, even all together, does not fix it; giving the pane its own scrolling layer does.
The API monitor panel also fades in and out through a script animation, which fires no CSS animation events, so the motion pause never saw it and its blur was recomputed on every fade frame.
Change
index.css:html[data-glass][data-glass-motion] [data-settings-main-scroll] { will-change: scroll-position; }gives the Settings content pane its own composited scroll layer. Only with Glass under software compositing (data-glass-motionis only set when the page has no GPU renderer); GPU users and the default look are untouched.settings-dialog.tsx:data-settings-main-scrollon the content pane's scroller.glass-motion.ts:holdGlassMotion(el, ms)reaches the running pause controller (a no-op when the pause is not running; stopping the controller clears it).api-monitor-overlay.tsx: the panel's animation start and complete callbacks hold the pause for the fade.Trade-off: under Glass with software compositing, text in the Settings pane may lose subpixel antialiasing (grayscale instead), as text on any composited scroll layer does. Headless Linux already renders grayscale, so the screenshots below cannot show it.
Results
Long-chat gate harness, Chromium software compositing, 40 turns, Glass cost as a multiple of the default look. 3 rotated runs per arm,
mainmeasured twice (A/A):The API monitor hold engages (Liquid 3D compositor time 306 to 394 ms -> 190 to 230 ms per open and close), but its gate ratio stays inside the A/A spread.
Tests
tests/glass-motion.test.ts: two new tests forholdGlassMotionand the API monitor wiring.tsc --noEmitclean. Frontend node suite: everything passes exceptmic-target(fixed on main by Studio tests: stub stt-context when mic-target loads the voice settings store #17293) and a KaTeX test that only fails with a symlinkednode_modules(same on main).Look
Left: main. Right: this PR. Liquid 3D, software compositing, at rest.