Skip to content

Studio: pinned Run settings footer, model picker on the radius scale - #15104

Merged
shimmyshimmer merged 28 commits into
mainfrom
studio-run-settings-footer
Oct 25, 2026
Merged

shimmyshimmer merged 28 commits into
mainfrom
studio-run-settings-footer

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Studio: pinned Run settings footer, model picker on the radius scale

With Advanced settings open, Run settings runs several screens tall and the Load / Reload button sat at the very end. The footer (Remember for this model, Load or Reload, Reset, Share) is now pinned to the bottom of the picker panel while the settings scroll behind it.

  • Pinned footer: sticky inside the picker's scroller, on the panel's own fill (bg-popover, bg-sidebar in dark). Sticky offsets are measured inside the scroller's 16px bottom padding, so the footer uses -bottom-4 with matching negative margins and sits flush on the panel edge; at bottom-0 the settings showed through a strip under the buttons. Only the picker popover; the sidebar variant is unchanged.
  • Shorter save status: "Not remembered for this model" and "Not saved yet" repeated what the Remember checkbox already says, so they are gone. The statuses that add something ("Saved for this model", "Unsaved changes", "Saved settings will be forgotten", "Using default settings") now sit on the checkbox's row, so a status appearing or clearing never moves the buttons.
  • Radius scale: the model picker kept its own radius scale after Studio: one fixed radius scale, applied to the shared primitives #14919 (rounded-lg 20px, rounded-xl 24px, a 20px surface). That override is removed, so the picker and Run settings use the shared tiers (12 / 16 / 21 / 24px) and the panel takes the popover's 21px. Extra Arguments goes from 24px to 21px.
  • Scrollbar and width: the Run settings scrollbar sits on the panel's right edge with less padding before it, and Run settings keeps the picker list's width (549px in both views) instead of widening.
  • Footer buttons: Load / Reload, Save or Forget settings and Reset use the Preset section's Save / Delete size (32px tall, size="sm"), left-aligned. Share is an icon-only button (Hugeicons share-01, with a "Share" aria-label and tooltip) in a filled 32px circle, the same fill and hover as Reset beside it. Its icon is 16px at the default UI size (calc(1rem * var(--ui-space-scale)), since popovers draw size-4 icons at the 15px text-scaled icon size). The space under the buttons (18px; their filled boxes already carry space under the label, so an equal number reads as more at the bottom) matches the space above Remember for this model, measured to the label's text rather than its checkbox or line box.
  • Insets: Run settings content (labels, dividers, controls, the pinned footer) sits 28px from the panel's left and right edges, where the picker list's section labels, model names and dividers sit, 18px from the top and bottom; it was 16px, the inset of the picker's search box, which put the settings visibly closer to the edge than anything in the list. On the right that is 20px plus the scrollbar: a classic bar's 8px, or an overlay bar's measured strip (--overlay-scrollbar-gutter, 12 to 14px on macOS) capped at 8px, so an overlay scrollbar no longer pushes the content further in. The back chevron's stroke starts on the same 28px edge (-ml-2.75 cancels its button's 6px inset and the glyph's own ~5px).
  • Light mode buttons: the picker kept a light-mode exception from before Studio: filled borderless buttons #14924 that gave its outline buttons a border and a white fill, so Reset (and Save or Forget settings) were the only bordered buttons of their kind. It is removed; they are the standard borderless grey fill, like the Preset section's Save and Delete. The dark-mode fill is unchanged.
  • Eject model: it was rounded-md, which was a pill only on the picker's old scale (18px); on the shared scale it read as a 12px rectangle, so it is now rounded-full like other one-line controls.
  • The startup bundle budget is raised by this PR's measured growth (25 B raw / 49 B transfer, the footer's classes in the eager model picker); the numbers are in scripts/check-bundle-budget.ts.

Screenshots

Run settings with Advanced settings on, scrolled partway: the footer stays on the panel edge, nothing shows beneath it, Extra Arguments at 21px

The picker list on the shared scale (light)

Verification

  • After the follow-ups and a merge of main: npm run typecheck, npm test (13859 pass), npm run build, npm run bundle:check; Run settings text and dividers measured 28px from the panel's left and right (the picker list's section labels and dividers also 28px) 18px from the top and bottom with Chromium's own 14px overlay gutter, the chevron stroke at 28.5px, and the pinned footer flush with the panel edge at the top, middle and end of a scrolled Advanced view and from the left at the content column; 18.3px from the rule to the top of the Remember text and 18px under the buttons, every footer button 32px tall
  • npm run typecheck, npm test (13853 pass; the save-status test now also requires the two removed lines stay gone), npm run build, npm run bundle:check, npm run i18n:check:strict
  • Isolated Studio on macOS (CPU) with a GGUF loaded, Run settings opened from the picker with Advanced settings on, at an 800px and a 700px tall window: the footer's bottom edge measured 0px from the panel's bottom edge, at the top and after scrolling 646 to 701px; panel and Extra Arguments radius measured 21px; rounded-md/lg/xl/2xl inside the picker measured 12 / 16 / 21 / 24px

Not tested here

  • Windows and Linux rendering (staging CI)
  • The Desktop (Tauri/WebKit) shell

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 24, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 24, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T23:57:37.183642Z 5b9ea25 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 9bad0c1f7d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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 Oct 24, 2026
@danielhanchen

Copy link
Copy Markdown
Member

The Repo tests (CPU, studio) failure here comes from this PR's pinned Run settings footer in model-config-page.tsx:

tests/studio/test_model_picker_contracts.py::test_the_run_settings_footer_does_not_reflow_under_the_pointer
    assert "variant ===" not in footer and "flex flex-col" in footer

The test guards #10216: if the footer's layout changes between mousedown and mouseup (here, because Save mounts once the draft commits on blur), Load moves under the pointer and the click is lost. It takes the footer as the third <div before <Checkbox id={rememberId}. With the sticky wrapper this PR adds, that <div is now a different element, one whose className carries a variant === condition.

If the new sticky footer still never reflows (no flex-wrap, and no layout that depends on variant), update the test in this PR to find the footer by something stable, such as a data- attribute, rather than by <div count. If the variant condition does change the footer's layout, that is the #10216 bug coming back.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 5b9ea25fcb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
shimmyshimmer merged commit b143b37 into main Oct 25, 2026
13 of 41 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-run-settings-footer branch October 25, 2026 00:22
danielhanchen added a commit that referenced this pull request Oct 25, 2026
## Summary


`tests/studio/test_model_picker_contracts.py::test_the_run_settings_footer_does_not_reflow_under_the_pointer`
fails on main since #15104 (pinned Run settings footer). It shows up in
`Repo tests (CPU, studio)` on unrelated PRs, for example #15123:

```
E   AssertionError:  className={cn( "mt-5", // Sticky offsets start inside the scroller's 18px padding ... variant === "page" && "sticky -bottom-4.5 ...
E   assert ('variant ===' not in ' className=...
```

The test found the footer as "the third `<div` back" from the Remember
checkbox. #15104 wrapped the footer in a new sticky `<div>`, so that
count now lands on the wrapper. The wrapper's `variant === "page"`
condition only pins the footer to the panel edge. The footer itself is
still `flex flex-col gap-3.5 border-t ...`, with no `flex-wrap` and no
variant switch. So the #10216 invariant (Load must not move between
mousedown and mouseup) still holds, and only the locator broke.

## Change

- Walk the `<div>` open and close tags before the checkbox, so only the
divs that actually enclose Remember count. Sibling divs that already
closed are skipped, and `>` inside JSX braces is handled.
- The footer is the enclosing div that draws the rule (`border-t`). It
must be `flex flex-col`, must not switch on `variant`, and must not
wrap. The divs inside it, and the one wrapper just outside it (the
sticky pin), must not carry `flex-wrap` either.

## Verification

- On main: fails as above. With this change: `201 passed` for the whole
file.
- The `model-config-page.tsx` from before #15104 still passes, so the
check covers both layouts.
- Sabotage, each against the current component, each makes the test
fail:
  1. `flex-wrap` on the footer column
2. the footer's layout switched on `variant` (`flex flex-row` for the
page variant)
  3. `flex flex-wrap` on the sticky wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants