Repository navigation
Studio tests: stub stt-context when mic-target loads the voice settings store - #17293
Merged
Merged
Conversation
Member
Author
|
@codex review |
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. Another round soon, please! 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
…de pauses its blur (software compositing) (unslothai#17308) ## Problem With Glass under software compositing (no GPU, the case the unslothai#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-motion` is only set when the page has no GPU renderer); GPU users and the default look are untouched. - `settings-dialog.tsx`: `data-settings-main-scroll` on 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, `main` measured twice (A/A): | Area | Look | main (both arms) | this PR | | --- | --- | --- | --- | | Settings scroll | Liquid | 2.7x to 3.2x | 1.4x to 1.9x | | Settings scroll | Liquid 3D | 3.3x to 4.5x | 1.4x to 2.0x | | API monitor | Liquid / Liquid 3D | 2.0x to 2.9x | 2.0x to 2.8x | | Typing, thread scroll, Settings tabs | all | unchanged (inside the A/A spread) | | 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 for `holdGlassMotion` and the API monitor wiring. - Full long-chat gate passes on this branch. `tsc --noEmit` clean. Frontend node suite: everything passes except `mic-target` (fixed on main by unslothai#17293) and a KaTeX test that only fails with a symlinked `node_modules` (same on main). - Look at rest: Settings differs from main by at most 3/255 (two main runs differ by up to 67/255); the API monitor panel is pixel identical and is never left paused at rest. - Not measured: Windows and real devices. ## Look Left: main. Right: this PR. Liquid 3D, software compositing, at rest.  
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.
Summary
mainis red in the frontend unit tests (Frontend build + bundle sanityandFrontend unit tests (Windows)) since #16976 merged:#15810 (merged at 15:43 UTC) moved the voice context settings into
stores/stt-context.tsand madevoice-settings-store.tsimport it. #16976 (merged about an hour later) addedtests/mic-target.test.ts, which loads that store throughloadWithStubswith a stub list written before that import existed.loadWithStubsthrows on any unstubbed import, so the whole file fails at load, and every PR based on currentmaininherits the red. #16976's own code is fine; only its test's stub list is out of date.The fix passes the real
stt-contextmodule, the same wayvoice-settings-storage-sync.test.tsalready does after #15810.Changes
studio/frontend/tests/mic-target.test.ts: add"./stt-context": sttContextto the store's stubs.Testing
node --test tests/mic-target.test.ts: 20 passed. Onmainthe same file fails to load (0 passed, 1 failed).npm test(whole frontend unit suite): 15450 tests, 0 failed.