Repository navigation
Studio: one run settings dropdown per model, and the last setting used is what loads - #15247
Conversation
The sidebar is too narrow for Remember for this model and the save status on one row, so both were cut off. The status now sits under the checkbox and keeps its line while empty, so a status appearing never moves the buttons.
… save Remember for this model is the switch that keeps settings; Load model already saves while it is ticked. The run settings button is now Save without loading and only appears with unsaved changes (or as Forget settings once unticked); the sampling panel's Save follows the same rule. A ticked box with changes not saved yet now says Unsaved changes.
Run settings gain a Saved settings row, laid out like the Preset row: pick a saved set to fill the panel, type a name and Save to keep what is on screen (Update replaces one with that name), Delete to drop it. Sets are kept per model across quants, up to 24, in this browser. Remember for this model still decides what a load applies, including API loads, so a picked set becomes the remembered one only once loaded or saved with Remember ticked. Forget settings, the button that drops the remembered settings without a reload, is now Forget without loading to mirror Save without loading.
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. |
With every run settings panel in a tab closed, no storage listener ran, so a set saved or deleted in another tab stayed missing or stale until reload. The cache is now cleared whenever a panel subscribes.
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
Default settings plus the model's saved settings in one dropdown, with rename and delete on each row and a pencil beside it. Picking a setting, Reset, Save and Load all make it what the model loads with next, so the last one used applies. Editing Default shows it as "<model> custom settings" until it is saved or named. The Remember checkbox and the second Save are gone.
…ad save Numbered names now trim the model name instead of the suffix, so a name at the length limit no longer loops forever. Saving an edited Default checks the extra arguments like saving a set does. Load no longer selects a set it failed to create.
Same 14px padding on both sides and 16px chevron as the other dropdowns, and the row trash icon hovers like the pencil instead of turning red.
…e every save The dropdown, pencil and Reset wait until the server's saved settings are read, so picking Default cannot leave an unseen override in place. The name box's Save and Enter now hold the same readiness checks as the Save button.
|
Two reds on this PR come from its own change. Both checks are green on other PRs against the same main.
Main sits at 2047.0 KB transfer / 6784.6 KB raw, so the run-settings rework adds about 2.8 KB transfer / 7.9 KB raw to the eager startup chunks. Per
The model config journey times out in step After the context length is changed to 4096, the popover's action button stays disabled, so the journey can no longer load or save. The same job passes on #15232, #15233 and #15249. This PR changes the save-state logic in |
|
Several guard the same save-state behaviour the Chat UI journey trips on, for example |
Saving into a setting updates the remembered record and server override of each other quant that loads with it, and deleting it forgets theirs and moves them to Default instead of leaving them to be adopted back. Selections keep the quant's own spelling so the override lands on the key the server matches first.
Writing the other quants' records can evict another model to stay inside the storage budget; its server override is now cleared the same way the current quant's save clears it.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1ef0c5b0e
ℹ️ 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".
| const wantedSet = pickedSet !== undefined ? pickedSet : (persistedSet ?? null); | ||
| const selectedEntry = | ||
| wantedSet === null ? null : findSavedRunSettings(savedSets, wantedSet); | ||
| const selectedSet = selectedEntry?.name ?? null; |
There was a problem hiding this comment.
Keep the draft aligned with externally changed selections
When the same model's settings are open in two browser tabs, picking a different saved setting in one tab updates persistedSet in the other through the storage subscription, but these lines switch its selected entry without applying that entry's configuration to its draft. For example, switching from Fast to Long in tab A leaves tab B displaying Long while retaining Fast's values. Save or Load in tab B then passes those stale values to saveSharedSet, overwriting Long even though the user never edited it. Reconcile external selection changes with the draft, or retain the draft's original selection until the user explicitly resolves the change.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this: it needs the same model's settings open in two tabs, and the second tab already flags it (the panel no longer matches the selected set, so its status reads Unsaved changes). Saving there stores what the panel shows, the same as other per-model settings edited in two tabs.
…-checks them Picking a setting now persists exactly what the panel shows, so a setting without extra arguments clears the previous flags on the server too, and it lifts a stale objection to arguments it replaced so Load and Save are not left disabled.
|
@codex review |
|
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". |
…acing The dropdown labels its Default and Custom settings sections and insets its divider like the app's other menus. The footer has 18px above the dropdown, matching the space below the buttons, and the status line sits closer to the buttons.
In the chat sidebar the name box spans the width with Save and Cancel below it, the blank status line is dropped while naming, and the pencil beside the dropdown is a size smaller.
|
@codex review |
1 similar comment
|
@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". |
…aved # Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
…15338) ## 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 <model>" were being renamed by migration code for names that only existed in pre-release builds of #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):  "Mine" is pinned with Always load; the model was loaded once with another setting, and the panel names it:  Deleting a saved setting asks first:  API tab: links under Usage examples, the Agents section with MCP access, and the Keyless API access link:  Image and video above Audio, and the Decision API heading:  Stop icon and compact prompt queue rows:  
What changes for the user
One settings dropdown per model. The footer of Run settings (in the model picker and the chat sidebar) now has a single dropdown:
The last setting used is what loads. Picking a setting in the dropdown applies it right away, with no Save needed, and the next load (including loads through the API) uses it. Reset does the same for Default settings.
Making a new setting. Change anything while Default settings is selected and the dropdown switches to " custom settings" with "Unsaved changes". From there:
Edits to a saved setting are saved into that setting by Save or Load.
Removed. The "Remember for this model" checkbox and the second Save / Forget button are gone: the dropdown selection now decides what loads, and there is one Save.
Shared across quants. A saved setting belongs to the model, so when two quants use the same one, saving or deleting it updates both quants' remembered settings and the API overrides.
Upgrading. Settings remembered before this change show up as a " custom settings" entry and stay selected, so nothing a user saved stops applying.
How it was verified
npm run typecheck,npm test(13957 pass, includingsaved-run-settings.test.ts,run-settings-save-state.test.tsandshare-run-configs.editor.test.ts),npm run build. Biome is clean on the changed files apart from findings that were already onmain.tests/studio/test_model_picker_contracts.pyandtests/studio/playwright_model_config.pynow follow the dropdown instead of the Remember checkbox. The Playwright test passes against a live Studio.scripts/check-bundle-budget.tsis raised by this PR's measured growth (9.4 KB raw / 3.1 KB transfer against the merge base, noted in the file).Not testable here
Nothing GPU-specific: these are panel and storage changes. Saved settings live in browser storage like the existing per-model settings, so they do not follow a user to another browser.
Screenshots
The dropdown: Default settings, a divider, then saved settings with rename and delete on each row:
Default settings after an edit becomes " custom settings", with the pencil to name it:
Naming it before it is saved:
After Reset, back on Default settings: