Repository navigation
fix(web): re-picking the current model in Settings keeps its traits #35612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ca4021a
8bfea1b
7087282
043c839
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ import { | |
| textGeneratorForSelection, | ||
| } from "@t3tools/contracts"; | ||
| import { DEFAULT_UNIFIED_SETTINGS } from "@t3tools/contracts/settings"; | ||
| import { createModelSelection } from "@t3tools/shared/model"; | ||
| import { createModelSelection, pickModelSelection } from "@t3tools/shared/model"; | ||
| import { | ||
| resolveReviewGuideModelSelection, | ||
| resolveSourceControlWriterModelSelection, | ||
|
|
@@ -365,7 +365,11 @@ export function SourceControlWritingSettingsSection() { | |
| return; | ||
| } | ||
| updateSettings({ | ||
| reviewGuideModelSelection: createModelSelection(instanceId, model), | ||
| reviewGuideModelSelection: pickModelSelection( | ||
| mixedReviewGuideModel ? null : reviewGuideSelection, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep representative traits when resolving mixed writer and review-guide settings. If environments have different traits for the same instance and model, these expressions pass Pass Also applies to: 572-572
|
||
| instanceId, | ||
| model, | ||
| ), | ||
| }); | ||
| }} | ||
| /> | ||
|
|
@@ -564,7 +568,11 @@ export function SourceControlWritingSettingsSection() { | |
| return; | ||
| } | ||
| updateSettings({ | ||
| sourceControlWriterModelSelection: createModelSelection(instanceId, model), | ||
| sourceControlWriterModelSelection: pickModelSelection( | ||
| mixedWriterModel ? null : activeSelection, | ||
| instanceId, | ||
| model, | ||
| ), | ||
| }); | ||
| }} | ||
| /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve the shown selection's traits in mixed scopes.
If environments use the same instance and model with different effort values, these mixed flags are true. Passing
nullmakespickModelSelectiondiscard the shown environment's options. Re-picking then submits an option-free selection across the scope.Pass
selectionfor the default picker and the representative stored fallback selection for the fallback picker, including when mixed. The final PR objective requires mixed-scope re-picks to apply the shown environment's traits.Also applies to: 293-293