fix: use resolved authType to initialize ACP agent

This commit is contained in:
mingholy.lmh 2026-01-27 14:56:22 +08:00
parent 7177b41120
commit 2c9399f8e0
9 changed files with 75 additions and 68 deletions

View file

@ -434,7 +434,7 @@ export const AppContainer = (props: AppContainerProps) => {
// Check for enforced auth type mismatch
useEffect(() => {
// Check for initialization error first
const currentAuthType = config.modelsConfig.getCurrentAuthType();
const currentAuthType = config.getModelsConfig().getCurrentAuthType();
if (
settings.merged.security?.auth?.enforcedType &&