Skip to content

Commit 8bed72c

Browse files
Vrtak-CZclaude
andcommitted
fix(web): download new models shows mixed only when effective values differ
An unset switch follows Provider update checks, so comparing raw keys reported "mixed" for environments that all download (or all skip) new models. Compare resolved values and share the result with the row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 3b7bc49 commit 8bed72c

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎apps/web/src/components/settings/SettingsPanels.tsx‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,13 @@ export function GeneralSettingsPanel() {
803803
const isEnvironmentScope = scope.environmentIds.length === 1 && environmentId !== null;
804804
const hasServerTargets = connectedEnvironments.length > 0;
805805
const mixedResponseStreamingMode = useScopedSettingsMixed(["responseStreamingMode"]);
806+
// Compared by effective value: an unset switch follows Provider update checks.
807+
const modelCatalogUpdates = targets.map((candidate) =>
808+
resolveModelCatalogUpdatesEnabled(candidate.settings),
809+
);
810+
const mixedModelCatalogUpdates = modelCatalogUpdates.some(
811+
(enabled) => enabled !== modelCatalogUpdates[0],
812+
);
806813
const lastEnabledProjectGroupingMode = useRef<SidebarProjectGroupingMode>(
807814
readLastEnabledProjectGroupingMode(),
808815
);
@@ -1589,6 +1596,7 @@ export function GeneralSettingsPanel() {
15891596
<SettingsRow
15901597
serverScoped
15911598
settingKeys={["enableModelCatalogUpdates"]}
1599+
mixed={mixedModelCatalogUpdates}
15921600
{...searchableSetting("download-new-models")}
15931601
description="Download the latest T3 Code model catalog so new models appear between releases. Follows Provider update checks until you change it."
15941602
resetAction={
@@ -1605,9 +1613,11 @@ export function GeneralSettingsPanel() {
16051613
) : null
16061614
}
16071615
control={
1608-
<ScopedSwitch
1609-
settingKeys={["enableModelCatalogUpdates", "enableProviderUpdateChecks"]}
1610-
checked={resolveModelCatalogUpdatesEnabled(settings)}
1616+
<Switch
1617+
mixed={mixedModelCatalogUpdates}
1618+
checked={
1619+
mixedModelCatalogUpdates ? false : resolveModelCatalogUpdatesEnabled(settings)
1620+
}
16111621
onCheckedChange={(checked) =>
16121622
updateSettings({ enableModelCatalogUpdates: Boolean(checked) })
16131623
}

0 commit comments

Comments
 (0)