Repository navigation
fix(studio): key Run settings editors by model and quant only - #10869
Souravrajvi0 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2452c8f95
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| return ( | ||
| <ModelConfigPage | ||
| key={modelConfigInstanceKey(modelId, settingsGgufVariant, loadedConfig)} | ||
| key={modelConfigEditorKey(modelId, settingsGgufVariant)} |
There was a problem hiding this comment.
Keep live config changes in the editor key
When the resident configuration arrives or changes without changing the model/quant—for example, after asynchronous status hydration—this stable key preserves the existing ModelConfigPage instance. That component initializes configState from loadedConfig only once via useState(resolveInitial) and has no effect or draft store that synchronizes later prop changes, so the sidebar continues showing saved or previous settings and Reload can overwrite the actual runtime configuration. The same regression exists in the picker replacement at model-selector.tsx:565; retain the config signature in these keys until the claimed live-sync mechanism is included.
Useful? React with 👍 / 👎.
|
This drops the live-config part of the editor key, which on current main is the only thing that reseeds the Run settings page when status hydrates after it opens, so Apply can write back stale saved values until the shared draft store from #10851 lands. Could you confirm the ordering you want here, or mark this one as stacked on #10851 so it does not merge first? |
4d2f173 to
7c7b0a3
Compare
|
@danielhanchen — follow-up on merge order (and correcting my earlier note): The branch is one commit on Intent: merge #10851 first, then this PR. On current CI: Happy to mark this blocked on #10851 in the title/description if that helps triage. |
|
On main the editor still seeds its state from loadedConfig once per mounted instance (see the note at the top of model-config/config-signature.ts), so with the shared draft store from #10851 not in yet, dropping loadedConfig from the key looks like it would leave the sidebar showing stale values once the live config lands. Could you confirm the reseed path, or land this together with #10851? |
|
@danielhanchen — thanks for flagging the ordering risk; this is unblocked now that #10851 is on Reseed path (no
This push: merged current Verified:
Happy to add a short “depends on #10851 (merged)” note in the PR description if you want that visible in triage. |
Stop including loadedConfig in ModelConfigPage React keys. Pair with the shared draft store in unslothai#10851 for live config sync via loadedConfigSignature.
72c2915 to
40d7aa0
Compare
|
Thanks for the PR, and for following up on the ordering question. Closing this one for now, reasoning below. On current main the editor re-reads the stored server row (which is where
On main the remount in step 3 releases the draft, clears the mark and re-hydrates, which is why There is also no user-facing bug this fixes today; the remount only resets transient UI state. If you want to revisit after #10870 lands, a version that also re-runs the row hydration when the live signature changes, plus a concrete symptom the remount causes, would be a good basis. |
Summary
Stop putting
loadedConfiginModelConfigPageReact keys; usemodelConfigEditorKey(modelId, ggufVariant)in the sidebar and model picker dropdown.Live config sync goes through
loadedConfigSignatureand the shared draft store (#10851, merged).Test plan
tests/studio/test_model_picker_contracts.pystudio/frontend/tests/hub-runtime-boundary.test.tsmainand resolved conflicts (draft store + editor keys)Pairs with #10851 (landed). Follow-up: #10870.