Repository navigation
Studio: Decision tab loads at once, System and settings polish, main-theme borders restored - #15919
Merged
Merged
Conversation
…ill without a reading
…ard Add connection, restored main-theme borders
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 29, 2026
…the pill before hiding them
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 29, 2026
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
Codex Review SummaryThis 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
added a commit
that referenced
this pull request
Oct 29, 2026
…15944) ## What changed The four permission icons (chat permission menu and Settings > Security) are drawn from one set and sized together. - **Shields:** Approve for me, Run automatically and Full access share Hugeicons' shield outline. Full access is back to Hugeicons `shield-alert` (#15919 had swapped it for Lucide's). Approve for me is Hugeicons `shield-check` with `tick-02` (stroke-rounded) at 55% inside, a touch larger than the stock check. Run automatically is the same shield with Hugeicons `sparkle` (stroke-rounded) at 55% inside, raised 2% to the shield's visual middle. - **Ask for approval:** Hugeicons `hand`, shrunk to 94% only in the menu list and Security rows where it sits beside the shields; the composer's permission chip shows it at full size. - **Size:** the icons are about 15% larger: 17px in the chat permission menu (exempted from the menu-wide `--ui-icon-size` rule by a `permission-mode-icon` class) and 22px in the Security rows. - **Alignment:** each icon's top now sits on its title's cap line, within a third of a pixel in both places. `shield-check`, `shield-alert`, `tick-02`, `sparkle` and `hand` come from `@hugeicons/core-free-icons` 4.3.5 (MIT), newer than the 4.1 Studio pins, so they are vendored as path data like the other newer Hugeicons in `lib/hugeicons-derived.ts`. ## Verification - `npm run typecheck`, `npm test` (14379 pass), `npm run build`. - Local Studio, Playwright: the three shields measure the same (12.9 x 14.4 px in the menu, 16.5 x 18.3 px in Settings); icon tops sit within 0.67 px of the title's ink top in the menu and 0.33 px in Settings. ## Not testable here No Desktop build was run.
danielhanchen
added a commit
that referenced
this pull request
Oct 29, 2026
…15946) ## Summary `Repo tests (CPU, studio)` is red on main since #15919, and on every PR based after it (seen on staging for #15928, #15931 and #15934). Three tests in `tests/studio/test_desktop_reliability_frontend_contract.py` fail: - `test_audio_page_matches_the_image_rail_header_and_action_footer` - `test_images_header_tracks_preview_and_preserves_titlebar_controls` - `test_media_page_headers_out_stack_the_mac_drag_region` #15919 rebuilt the Images, Video and Audio headers on purpose: Create / Train is centred in a `minmax(0,1fr)_auto_minmax(max-content,1fr)` row, and the API / Library / sibling links moved into the new `MediaHeaderActions` component, which steps down (pill off centre, compact, then hidden) as space runs short. The product is right and the tests pinned the old class strings, so the tests are what changes here. ## What changed - A shared `_assert_media_header_row` check for the Images and Audio headers: the new row columns, the pill centred in column 2 (`data-media-header-centre ... col-start-2 justify-self-center`), and the links rendered inside `<MediaHeaderActions>` (the Library and sibling links are now asserted to sit inside it, not just somewhere in the header). - `MediaHeaderActions` itself is pinned to what the old inline markup guaranteed: its slot stays `pointer-events-none col-start-3 row-start-1` (so gaps in the band still drag the macOS window) and only the links' group is `pointer-events-auto`. - The macOS drag-region test counts the clickable group drawn by `MediaHeaderActions` when a page renders it, since that group no longer appears in the page source. ## Verification - Base (main at `862098ed4a`): 3 failed, 41 passed. Bisected to #15919: its parent passes all 44. - Head: 44 passed. - Each guard still fails when the property it protects breaks (source edited, test run, reverted): - slot made `pointer-events-auto`: Images and Audio header tests fail - links group no longer `pointer-events-auto`: all three fail - Images sibling link moved out of `MediaHeaderActions`: Images header test fails - Audio pill set to `justify-self-end`: Audio header test fails --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
danielhanchen
added a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Oct 30, 2026
…othai#15798) The sibling Video/Images shortcuts added in unslothai#15520 could be cut off when the window narrowed. Since then, unslothai#15919 added `MediaHeaderActions`, which hides the API, Library and sibling links when they cannot fit beside Create / Train. One defect remained on main: the header column's minimum is a fixed `13rem`, which ignores the UI scale and the native window-control inset, so at a raised UI scale the Create / Train pill itself is clipped at the window edge (Train cut off at 1100px / 140%, 1280px / 160% and 1600px / 200%, on both Images and Video). This PR keeps main's link step-down and fixes the boundary it sits on: - `--media-header-min-width` (`14rem * --ui-space-scale` plus the header right inset, falling back to the window-control inset) replaces the fixed `13rem` minimum for the Images and Video header column and the settings rail cap, so the pill always has room for its scaled size. - Below the 50rem split (rail stacked over the preview) that minimum is capped at half the header row, so the model selector keeps its room at high UI scale on a narrow page. - The rail resize handle computes the same cap in px, so drags and arrow keys start from the width that is actually shown. A present `0px` header inset wins over the window-control fallback, matching the CSS `var()`. - The Images / Video Train rail follows the same boundary, so it stays under the header divider in Train mode. - The Video rail fallback width is 408px, matching `useMediaRailWidth`. Audio keeps its existing `13rem` minimum. Validation: - A Studio built from main and one built from this branch, measured over Images and Video, Create and Train, at 16 width / UI-scale combinations (480px to 1600px, 100% to 200%), in Chromium, WebKit and Firefox (identical counts in all three): header controls clipped by an overflow ancestor or the viewport went from 42 of 64 cells to 12, and every remaining cell shows at least as much of the control as main (all are stacked layouts at or below 640px with 150% to 200% scale); no overlapping controls on either side, including the model selector at 500px / 200%; links hidden by `MediaHeaderActions` unchanged (same cells as main). - Without the Train rail change, Train mode left the rail up to 224px off the header divider at high UI scale; with it, 0px in all 16 Train cells. - `npm run typecheck` passes; targeted header, rail-cap and UI-spacing tests pass (38/38); the frontend contract tests in `tests/studio/test_desktop_reliability_frontend_contract.py` now pin the scaled minimum for Images and Video (45/45). Before (main) and after, 1280px wide at 160% UI scale:   --------- Co-authored-by: Daniel Han <[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.
What changed
Decision tab (Settings > API)
GET /api/settings/systemoneanswers. On a cold server that request took 4 to 5 s, so the tab sat blank.gpu_available()asksllama-server --list-devicesfor its GPUs, cached for 60 s. Once the cached answer is older than 60 s, it is now returned at once and re-probed in a background thread (one at a time), so the settings request no longer waits on a coldllama-server. A new or reinstalled binary (new path or mtime) still probes synchronously.System page
Media headers (Images, Video, Audio)
MediaHeaderActions) keep their place at every window size and zoom. As space runs short the header steps down: the pill moves left of centre (the links' column keeps at least its own width), then the pill padding and the link labels go compact, and only if even that cannot fit do the links hide as a group. Below a 40rem page (phone, small tablet) only the pill shows.Settings
Icons
PencilEdit01Iconinstead of the New chat icon.Light-mode lines in the main themes
#b6b6b6, including Standard, Classic and Minimal. Those three are back to their previous values (oklch(0.9208 0 0)/#e6e6e6/#e2e2e2, sidebar#f2f2f2/#f2f2f2/#e8e8e8), and the Images / Video#e9e9e9control border is restored for them. Flavor palettes keep Studio: visible light-mode borders, aligned media pickers, new image icons, modern login #15726's darker borders.Verification
npm run typecheck,npm test(14378 pass),npm run build.test_an_expired_llama_cpp_gpu_answer_is_served_while_it_refreshes(fails on main, passes here). The rest oftest_decision_native.pyhas the same 16 failures on main on this host, all from torch not being installed.--border,--sidebar-borderand the Images border for Standard, Classic, Minimal match the pre-Studio: visible light-mode borders, aligned media pickers, new image icons, modern login #15726 stylesheet; Cherry and Matcha are unchanged.Not testable here
The original 4 to 5 s cold request was not reproduced on this host. The Video page and the Train page need PyTorch / a GPU, so they were checked through code, not on screen. No Desktop build was run.