The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): model settings follow active profile instead of primary
Klaus Suppan680b11503cbf
diff --git a/apps/desktop/src/app/settings/model-settings.tsx b/apps/desktop/src/app/settings/model-settings.tsxindex 28036e9e672..3ad3af8ac23 100644--- a/apps/desktop/src/app/settings/model-settings.tsx+++ b/apps/desktop/src/app/settings/model-settings.tsx@@ -189,6 +189,10 @@ interface ModelSettingsProps {export function ModelSettings({ onMainModelChanged, scopeProfile = null }: ModelSettingsProps) {const { t } = useI18n()const m = t.settings.model+ // `null` means "follow the active profile" at the settings layer. The+ // Hermes API helpers use `undefined` for that contract; passing null would+ // deliberately suppress the active profile and read the primary/default.+ const requestProfile = scopeProfile ?? undefinedconst [loading, setLoading] = useState(true)const [error, setError] = useState('')const [mainModel, setMainModel] = useState<{ model: string; provider: string } | null>(null)@@ -235,10 +239,10 @@ export function ModelSettings({ onMainModelChanged, scopeProfile = null }: Modeltry {const [modelInfo, modelOptions, auxiliaryModels, moaModels] = await Promise.all([- getGlobalModelInfo(scopeProfile),- getGlobalModelOptions(undefined, scopeProfile),- getAuxiliaryModels(scopeProfile),- getMoaModels(scopeProfile).catch(() => null)+ getGlobalModelInfo(requestProfile),+ getGlobalModelOptions(undefined, requestProfile),+ getAuxiliaryModels(requestProfile),+ getMoaModels(requestProfile).catch(() => null)])if (profileEpoch.current !== epoch) {@@ -276,7 +280,7 @@ export function ModelSettings({ onMainModelChanged, scopeProfile = null }: Model}}},- [scopeProfile]+ [requestProfile, scopeProfile])useEffect(() => {