Skip to content

Studio: safer saved run settings, Always load, and API tab tidy-up - #15338

Merged
shimmyshimmer merged 27 commits into
mainfrom
studio-run-settings-audit
Oct 26, 2026
Merged

shimmyshimmer merged 27 commits into
mainfrom
studio-run-settings-audit

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What changes for the user

Run settings (follow-up to #15247)

Saved settings survive a Forget. Forgetting a model's settings on the API page (or the browser dropping old settings to stay under its storage limit) now puts that quant back on Default settings. Before, the dropdown kept the saved setting selected with default values and "Unsaved changes", and the next Save or Load wrote those defaults over the saved setting and every other quant using it.

Always load with these settings. The last setting picked is what loads, so trying another setting once used to replace the one you wanted every time. A checkbox under the dropdown pins a saved setting for that model and quant:

  • Every load uses it: quick select, API auto-switch and the next Load.
  • Picking or loading another setting uses it once. The status reads "Loads once. Next loads use Mine." and Save still saves that other setting.
  • Reopening Run settings on a model loaded once with another setting shows the setting that is running.
  • Reset goes back to the pinned setting, and the dropdown marks it "Always". Unticking goes back to last-used.

Smaller fixes in the dropdown

  • Names you type are kept. "Saved settings" and "Custom setting for " were being renamed by migration code for names that only existed in pre-release builds of Studio: one run settings dropdown per model, and the last setting used is what loads #15247.
  • Hitting the 24-per-model limit says so instead of a bare "Couldn't save".
  • Deleting a saved setting asks first.
  • F2 renames and Delete deletes the highlighted row, so both work from the keyboard.
  • Escape in the name box cancels the name instead of closing the whole panel.
  • An edited Default reads "Unsaved changes", not "Saved settings will be forgotten".
  • The save status and the new checkbox share one row under the dropdown, and the unreachable Save settings / Forget settings labels left from the Remember checkbox are gone.

Settings load paths

  • A managed account that saves settings for a model keeps its own row, so the owner's settings no longer apply to its loads after it saved defaults. Choosing Default settings (a forget) still inherits the owner's row, as before.
  • When the browser drops a model's settings for space, the server row also clears its engine choice (for example vLLM, FP8) and MLX offloads, not only the other mirrored fields. Launch flags are kept, as before.
  • Startup auto-load sends the remembered GPU split, like the picker and compare pane.
  • Loading from the picker cleans stored extra arguments the way auto-load does, so a flag Studio started managing after it was saved no longer fails the load with a 400.

Chat and app-wide

  • Prompt queue rows are 32px instead of 48px with a mouse or trackpad. Touch keeps 44px targets.
  • Stop and pause icons are square with a small corner radius everywhere. The stock glyphs are squircles that read as circles when filled at small sizes.

Settings

  • API tab: "Coding agents" is now "Agents", and MCP agent access is a row in it (with the MCP icon) instead of a separate card.
  • API tab: Keyless API access is a short section with "Open in Remote & LAN", which lands on the switches there. The API tab still reads the setting so its examples stay right.
  • API tab: Usage examples gets links to Agents, the Image and video API, the Audio API and the Decision API, each with its icon. Image and video sits above Audio, and the Decision API has a heading like the other API sections.
  • API tab: the API monitor has its own heading, and its auto-open toggle is a normal settings row. Model memory's "Open in System" link matches "Open in Agents".
  • General: no divider above "Revoke all preview links".
  • Jumping to a section near the end of a tab scrolls the settings pane only; scrollIntoView also scrolled the dialog, shifting the nav.

How it was verified

  • Frontend: npm run typecheck, npm test (14000 tests, 0 failures), npm run build, npm run bundle:check (within budget).
  • Backend: test_account_chat_settings.py (new test_managed_default_save_shadows_the_owners_override), test_openai_auto_switch.py, test_llama_compat_routes.py, test_server_tuning_flags.py, test_model_override_schema_compatibility.py: 1215 passed. tests/studio/test_model_picker_contracts.py and test_chat_autoload_failure_gate.py pass.
  • New frontend tests cover the Forget reset, kept names, the limit, the pin (storage and panel), the eviction request body, the auto-load split and the picker extra-args cleanup.
  • Live Studio on CPU with SmolLM2-135M:
    • Saved a 4096 context, forgot it on the API page, reopened Run settings: Default settings with Save disabled, the saved setting still at 4096, and picking it restores 4096. Before this change, one Save wrote null into it.
    • Pinned "Mine" (4096), saved a second setting at 2048 and loaded with it: the model ran at 2048, the API override stayed at 4096, the selection stayed on Mine, and reopening showed the 2048 setting with "Loads once".
    • Rename to "Saved settings", F2, Delete with confirmation and Escape behave as above.
    • Prompt queue rows measured at 32px; the stop button and every settings change above were checked in light and dark themes.

Not testable here

  • The GPU split on auto-load (no GPUs on this host).
  • The managed-account change in a live multi-account Studio (covered by the backend test).
  • Desktop builds and the in-app updater; nothing here touches them.

Screenshots

After forgetting the model's settings on the API page, Run settings is back on Default settings and Save is disabled (the saved setting still holds its 4096 context):

After Forget

"Mine" is pinned with Always load; the model was loaded once with another setting, and the panel names it:

Loaded once while another setting is pinned

Deleting a saved setting asks first:

Delete confirmation

API tab: links under Usage examples, the Agents section with MCP access, and the Keyless API access link:

API tab

Image and video above Audio, and the Decision API heading:

Decision API

Stop icon and compact prompt queue rows:

Stop icon

Prompt queue

…ttings load paths

Run settings (follow-up to #15247):
- Forgetting a model's settings (API page, eviction, or another spelling cleared by the server) now
  puts its quants back on Default settings. Before, the dropdown kept the saved setting with default
  values on screen, and the next Save or Load wrote those defaults over the saved setting.
- Drop the rename of "Saved settings" / "Custom setting for <model>": those names only existed in
  pre-merge builds, so the code was renaming names users typed.
- Name the 24-per-model limit when a save hits it.
- Ask before deleting a saved setting; F2 and Delete rename and delete rows from the keyboard.
- Escape in the name box cancels the name instead of closing the whole panel.
- Remove the unreachable Remember-era save-only branch, and say "Unsaved changes" for an edited
  Default rather than "Saved settings will be forgotten".

Settings load paths:
- A managed account that saves settings for a model keeps its own row, so the owner's row no
  longer answers its loads after it saved defaults.
- Evicting a local record clears the server's engine choice and MLX offloads too, not just the
  other mirrored fields.
- Startup auto-load sends the remembered GPU split.
- A picker load sanitizes stored extra arguments like auto-load does, so a flag Studio started
  managing after it was saved no longer fails the load with a 400.
…odel

Without a pin the last setting picked is what loads, so trying another setting once replaced the
one a user actually wanted every time. Ticking "Always load with these settings" on a saved
setting pins it for that model and quant:

- Every load uses the pinned setting: quick select, API auto-switch and the next Load.
- Picking or loading another setting uses it once. The status reads "Loads once. Next loads use
  <pinned>", and Save still saves that setting without changing what loads next.
- Reopening Run settings for a model loaded once with another setting shows that setting, not
  the pinned one (the server copy of the pinned setting no longer replaces it).
- Reset goes back to the pinned setting. The dropdown marks it "Always".
- Unticking goes back to loading the last setting picked. Renames carry the pin; deleting the
  pinned setting, or forgetting the model's settings, removes it.
- Settings rows align the control with the title instead of centring it on the text, so a
  switch stays beside the setting it changes when the description wraps. Applied to the shared
  row and the custom ones (update reminders, storage, caches, LAN and remote access, GPUs).
- API tab: "Coding agents" is now "Agents", and MCP agent access is a row in it instead of a
  card of its own. Keyless API access gets a section heading like the rest of Settings.
- The API monitor card sits as far below its heading as rows do elsewhere, and the
  auto-open toggle is a normal settings row.
- Model memory's "Open in System" link matches "Open in Agents".
The stock stop and pause glyphs are squircles that read as circles once filled at small sizes. A shared StopIcon and PauseIcon in src/lib/media-control-icons.ts draw them square with a small corner radius, and every stop or pause control (composer, dictation, audio, video, downloads, queue, tasks, API monitor, training) uses them.
…b links there

Reverts the API tab's restyled Keyless API access section. Its switches live on Remote & LAN, so the API tab now shows a short Keyless API access section with "Open in Remote & LAN", which lands on that section. The API tab still reads the keyless settings so its examples use a placeholder key only where the server admits one.
Auto-load now sends the remembered GPU split, so the sliced autoLoadSmallestModel uses reconcileTensorSplit; the harness needs a stub like its other imports.
- Usage examples gets links to Agents, the Image and video API, the Audio API and the Decision API, each with its section's icon.
- Image and video API sits above Audio API.
- Decision API gets a heading like the other API sections, with its controls in a card below.
- Agent access (MCP) shows the MCP icon.
- Jumps to a section near the end of the tab scroll the settings pane only; scrollIntoView also scrolled the dialog itself, shifting the nav.
Puts back the centre alignment the top-alignment preview changed; it is not part of this change.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T12:09:50.877052Z 5e7e3b3 Manual request
🔒 Security Review ✅ Completed 2026-10-26T07:37:32.878552Z 3b1da37 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[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3b1da377e7

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 26, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 26, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 26, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 26, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0105bef4f

ℹ️ 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".

Comment on lines +3519 to +3520
if (!noted || !perModelConfigsEqual(forSetStore(loaded), forSetStore(noted.sent))) {
return undefined;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve inherited settings before matching a one-time load

When a GGUF saved set inherits speculative decoding (speculativeType: null) and the standing preference is Off, loading that set once records null, but applyPerModelConfigToRuntime resolves it to Off and useActiveModelConfig reports "off". This strict comparison therefore rejects the one-time record; the subsequent saved-set comparisons reject it for the same reason. Reopening Run settings then selects the pinned set while displaying the one-time load's values, so Save overwrites the pinned set instead of the set that was loaded. Compare inherited fields using their resolved launch values, or retain the submitted intent alongside the resident configuration.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5e7e3b3: the one-time record stores speculative decoding as the runtime resolves it (inherited null takes the standing mode), so it matches what the loaded model reports.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

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

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 5e7e3b366a

ℹ️ 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 5628964 into main Oct 26, 2026
12 of 50 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-run-settings-audit branch October 26, 2026 12:13
danielhanchen added a commit that referenced this pull request Oct 26, 2026
…5383)

## Problem

`Composer (ubuntu-latest, browsers)` and `Composer (macos-latest,
browsers)` fail on main. `tests/studio/playwright_queue_localization.py`
times out on every browser (chromium, chrome, msedge, firefox, webkit)
at its first check:

```
check_localized: page.get_by_role("button", name = "キューのメッセージ 2 を削除").click()
TimeoutError: Locator.click: Timeout 30000ms exceeded.
  <div data-side="bottom" data-state="instant-open" data-slot="tooltip-content" ...> intercepts pointer events
```

I ran the driver locally to find where it broke. It passes at ce69b35
and 9e44983 and fails from 5628964 (#15338) onwards.

## Product or test

The product. #15338 made prompt queue rows 32px tall instead of 48px for
a mouse. When a row's menu or editor closes, focus goes back to that
row's "more" button, and its label tooltip opens below it. At 32px the
tooltip sits on the next row's controls, and it takes their clicks:

- In the driver, closing row 1's menu leaves its tooltip over row 2's
delete button.
- After row 1's editor closes, the same tooltip covers row 2's "more"
button.

A user clicking row 2 right after acting on row 1 hits the label instead
of the button.

The queue already handles this for its option hints:
`prompt-queue-option-tooltip` with `pointer-events-none`, plus the
`index.css` rule "Queue hints must not block menu actions" that makes
the Radix popper wrapper click-through too. The row buttons go through
`TooltipIconButton`, which had no way to pass a class to its content, so
they never got it. `TooltipIconButton` already sets
`disableHoverableContent` because its label is not meant to be reached
by the pointer.

## Fix

- `TooltipIconButton` takes an optional `tooltipClassName` for its
`TooltipContent`. It is not passed anywhere else, so every other tooltip
in the app is unchanged.
- The four row buttons in the prompt queue (drag, steer, remove, more)
pass `prompt-queue-option-tooltip pointer-events-none`. Their labels
still show on hover and focus, but clicks go through to the control
underneath, the same as the queue's option hints.

Nothing on screen changes: the labels look the same and appear at the
same moments. Only where a click lands changes.

I did not make the tooltip click-through globally, because 8 tooltips
elsewhere hold links or buttons (export, training params, dataset
settings).

## Verification

- `tests/studio/playwright_queue_localization.py` (chromium): all 7
checks pass. On main it fails at the first.
- `playwright_prompt_queue_actions.py` (6 checks),
`playwright_composer_settings.py` and
`playwright_composer_deferred_prompt.py` pass.
- Frontend unit tests that touch the prompt queue or
`TooltipIconButton`: 159 passed.
- `scripts/typecheck.mjs`: clean.
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.

1 participant