Repository navigation
Fix sidebar footer width and context menu radius - #9918
Merged
Merged
Conversation
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
LeoBorcherding
added a commit
to mahiatlinux/unsloth
that referenced
this pull request
Aug 28, 2026
Codex P2 on bebea8d. applyInterfaceScaleBeforeFirstPaint's deadline only resolved its own promise, so a setZoom that never settles left interfaceScaleApplicationQueue chained to a permanently pending application. The app rendered, but the provider retry and every later user scale change queued behind that entry and never ran, so scaling stayed dead until restart. The timeout now resets the queue as well as unblocking the render. A late completion from the abandoned call can still arrive after a newer scale has been applied, so the commit is guarded on the scale it read still being the one being asked for; otherwise it would report a stale zoom as live. Two tests, both timed. Without the release they hang rather than fail, which wedges the runner instead of reporting, and that is worth not shipping. Also renames scrollRowPadding to unrailedRowPadding in the alignment test. Main renamed it in unslothai#9918 while this branch still used the old name, so the merge took main's source and left our test grepping for a string that no longer exists. That is what broke Frontend build + bundle sanity and Frontend unit tests (Windows); both were green before main moved. Merged upstream/main (411b406). tsc clean, 5863 of 5866 frontend tests pass locally, the 3 failures are markdown/Streamdown and are green in CI.
This was referenced Aug 28, 2026
mahiatlinux
added a commit
that referenced
this pull request
Sep 15, 2026
* desktop: add interface scaling control * desktop: fix interface scale edge cases * desktop: fix native zoom interactions * desktop: serialize interface scale updates * studio: move font and scale settings first * studio: bind the mac chrome constants, floor the scale at 50%, bound first paint Review follow-ups. The floor moves 25 -> 50. Chrome and VS Code allow 25% but both ship Cmd/Ctrl+0, and there is no reset accelerator here or on main, so at 0.25 the Settings row you would use to undo it renders around 3.5px and the value is device-local in localStorage. A comment says to drop it back to 25 once the accelerator lands. 34 and 78 existed in three places with nothing binding them: interface-scale-runtime.ts divided by the literals, provider.tsx repeated them as CSS fallbacks, and interface-scale.test.ts hardcoded 34 / 0.35. The runtime now exports both the numbers and the var(...) strings built from them, provider.tsx imports those, and the test asserts the fallback is built from the constant rather than retyped. Changing the titlebar height in one place can no longer leave a stale divisor at any scale but 100%. applyInterfaceScale is now wrapped for startup. It was the only thing gating first paint on the Tauri IPC bridge, and a rejection was caught while a hang was not, so a wedged bridge meant a permanently blank window rather than a slow one. Past a 1s deadline the app renders at 100% and the effect in provider.tsx applies the real scale when the bridge answers. Two tests, one with a setZoom that never resolves. The comment on nativeDropPointToCss lost ScreenToClient device pixels, NSView points and widget coordinates in the rewrite. Those are why the two branches are allowed to differ, so they are back, with the zoom caveat appended and a note not to collapse both paths onto devicePixelRatio. Same for the deleted regression note on native-training-dataset-drop.test.ts:114. The new drop tests all passed the zoom explicitly, so the default argument, which is the seam between the scale store and the drop path, never ran. One case now omits it. 4826 frontend tests pass, typecheck, build, i18n:check:strict clean, and provider.tsx gains no new eslint findings. * tests: read the mac chrome contract through the interface-scale constants Repo tests (CPU) has been red on this branch since f7bea0d and the log had expired, so nobody had seen why. Two failures, both the same cause: test_desktop_reliability_frontend_contract.py reads px values straight out of provider.tsx, and the calc() rewrite replaced the literals it greps for. test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker asserted the literal string '"--studio-collapsed-chat-controls-inset": "188px"'. It now resolves the block and asserts the number is 188, scoped to the mac block because the custom titlebar sets the same var to 12px. test_tauri_collapse_removes_the_icon_rail_but_web_keeps_it went through _chrome_style_blocks, whose regex only captured "--var": "literal" pairs, so --studio-desktop-titlebar-height read as absent once it became an identifier and the offset + button <= titlebar assertion had nothing to compare. The helper now also takes templates and identifiers, resolving the latter out of interface-scale-runtime.ts so the 34 stays in one place. _px understands var(--x, Npx) and calc(Apx + var(--x, Bpx)) as their 100% values, with a docstring saying that is the only scale a static read can see. Formatting via scripts/run_ruff_format.py. 36 of 36 in that file pass locally. * studio: release the interface-scale queue when first paint times out Codex P2 on bebea8d. applyInterfaceScaleBeforeFirstPaint's deadline only resolved its own promise, so a setZoom that never settles left interfaceScaleApplicationQueue chained to a permanently pending application. The app rendered, but the provider retry and every later user scale change queued behind that entry and never ran, so scaling stayed dead until restart. The timeout now resets the queue as well as unblocking the render. A late completion from the abandoned call can still arrive after a newer scale has been applied, so the commit is guarded on the scale it read still being the one being asked for; otherwise it would report a stale zoom as live. Two tests, both timed. Without the release they hang rather than fail, which wedges the runner instead of reporting, and that is worth not shipping. Also renames scrollRowPadding to unrailedRowPadding in the alignment test. Main renamed it in #9918 while this branch still used the old name, so the merge took main's source and left our test grepping for a string that no longer exists. That is what broke Frontend build + bundle sanity and Frontend unit tests (Windows); both were green before main moved. Merged upstream/main (411b406). tsc clean, 5863 of 5866 frontend tests pass locally, the 3 failures are markdown/Streamdown and are green in CI. * desktop: restore the latest zoom and parse complete scale values * preserve mac window button clearance in mobile navbar * keep window constraints in sync with interface zoom --------- Co-authored-by: LeoBorcherding <[email protected]> Co-authored-by: Etherl <[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.
Summary
Testing