fix(acp): rename --experimental-acp to --acp & remove Zed-specific refrences (#21171)

This commit is contained in:
Shreya Keshive
2026-03-05 14:57:28 -05:00
committed by GitHub
parent 9773a084c9
commit 0135b03c8a
24 changed files with 32 additions and 25 deletions

View File

@@ -109,7 +109,7 @@ const mockConfig = {
getNoBrowser: () => false,
getProxy: () => 'http://test.proxy.com:8080',
isBrowserLaunchSuppressed: () => false,
getExperimentalZedIntegration: () => false,
getAcpMode: () => false,
isInteractive: () => true,
} as unknown as Config;

View File

@@ -280,8 +280,8 @@ async function initOauthClient(
await triggerPostAuthCallbacks(client.credentials);
} else {
// In Zed integration, we skip the interactive consent and directly open the browser
if (!config.getExperimentalZedIntegration()) {
// In ACP mode, we skip the interactive consent and directly open the browser
if (!config.getAcpMode()) {
const userConsent = await getConsentForOauth('');
if (!userConsent) {
throw new FatalCancellationError('Authentication cancelled by user.');