Repository navigation
Studio: keep each model's recommended sampling after a system prompt edit - #18011
Conversation
Codex Review Summary: ✅ CompletedThis 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dbb98e4a73
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 15045d1994
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
# Conflicts: # studio/backend/tests/test_chat_settings_payload.py
|
Pushed a few changes on top:
Checked live on MLX:
|
|
@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". |
|
Wrap-up for Codex: "Didn't find any major issues" in round 1: #18011 (comment) CI. The upstream jobs stayed queued, so CI ran on a staging copy with the same head (Lyxot#254, now closed). Results: 55 passed, 8 failed, 1 cancelled, 2 skipped. All of the frontend, build, Composer (all browsers, including Safari), Windows frontend unit tests, Python 3.11 floor, and Python 3.13 a-f (which covers
Source lint, CPU rest, gloo-tp-env, studio and Core zoo also fail on other unrelated staging PRs opened today. Changes during this pass:
|
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. Codex has no remaining findings, staging CI passed (the failures were already on main), and a trial merge with current main passes the related tests.
Editing the system prompt on Default stops Studio from applying each new model's recommended sampling. Load Qwen3-0.6B, type a system prompt in Run settings, then load Gemma 4 E2B for the first time: Gemma keeps Qwen's temperature 0.6 and top-k 20 instead of its own 1.0 and 64. Switching away then saves those values as Gemma's settings.
Any preset edit sets
activePresetSourcetomodified. Model loads and Qwen thinking-mode changes only apply recommended values underbuiltin-default, so a prompt edit blocks every sampling value. Moving one slider has the same problem: changing Temperature also keeps the previous model's top-k, max tokens and the rest.With this PR,
presetEditedKeysrecords which sampling controls the user changed. A prompt edit no longer blocks recommended sampling. Changing Temperature keeps that temperature, while the other values follow the next model. The same rule is used for model loads, status refreshes, comparison panes and Qwen thinking changes.Custom presets still keep all their values, and a model with remembered settings still uses them. Picking a preset clears the edited keys.
The edited keys are saved one key at a time, so edits from two open tabs add up instead of overwriting each other. Settings saved as
modifiedbefore this change have no record of which controls changed. When the backend starts, it marks every control as edited for them, so they keep the old behavior until a preset is picked again.Verification
Studio before and after, starting with empty settings. Edits were made in Run settings; models were loaded through the API and picked up by a fresh
/chatpage load. These are the temperature / top-p / top-k values in the outgoing chat request:The edited system prompt was still sent after the switch in both builds. These runs used the first revision of this PR. Later commits changed how the edited keys are saved, not how they are applied.
New tests cover prompt and slider edits, preset changes, per-model memory, Qwen thinking changes, saving and restoring the edited keys, edits made before settings finish loading, two open tabs, and the backend upgrade of older settings. Typecheck and the backend chat settings and chat history route tests (116) pass. The full frontend suite has 18 failures, and none of them are in chat settings or presets: some test files need a newer Node than the one I ran, and the others depend on locale or time zone.
This touches the same Qwen checks as #15279, so whichever merges second will need a rebase.