Repository navigation
Studio: safer saved run settings, Always load, and API tab tidy-up - #15338
Conversation
…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 dropdown
…ider above Revoke all preview links
- 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.
|
@codex security 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 Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
There was a problem hiding this comment.
💡 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".
| if (!noted || !perModelConfigsEqual(forSetStore(loaded), forSetStore(noted.sent))) { | ||
| return undefined; |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
@codex review |
1 similar comment
|
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
…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.
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:
Smaller fixes in the dropdown
Settings load paths
Chat and app-wide
Settings
How it was verified
npm run typecheck,npm test(14000 tests, 0 failures),npm run build,npm run bundle:check(within budget).test_account_chat_settings.py(newtest_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.pyandtest_chat_autoload_failure_gate.pypass.nullinto it.Not testable here
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: