Merge pull request #1622 from QwenLM/mingholy/fix/acp-auth-type

Fix: Use resolved authType to initialize ACP agent
This commit is contained in:
tanzhenxin 2026-01-29 11:04:01 +08:00 committed by GitHub
commit 93ed43c916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 75 additions and 68 deletions

View file

@ -47,7 +47,7 @@ export async function initializeApp(
// Use authType from modelsConfig which respects CLI --auth-type argument
// over settings.security.auth.selectedType
const authType = config.modelsConfig.getCurrentAuthType();
const authType = config.getModelsConfig().getCurrentAuthType();
const authError = await performInitialAuth(config, authType);
// Fallback to user select when initial authentication fails
@ -61,7 +61,7 @@ export async function initializeApp(
const themeError = validateTheme(settings);
const shouldOpenAuthDialog =
!config.modelsConfig.wasAuthTypeExplicitlyProvided() || !!authError;
!config.getModelsConfig().wasAuthTypeExplicitlyProvided() || !!authError;
if (config.getIdeMode()) {
const ideClient = await IdeClient.getInstance();