fix(core): propagate User-Agent header to setup-phase CodeAssist API calls (#19182)

This commit is contained in:
Gaurav
2026-02-15 19:20:22 -08:00
committed by GitHub
parent 6eec9f3350
commit 8979fc5f6a
4 changed files with 31 additions and 2 deletions

View File

@@ -24,7 +24,11 @@ export async function createCodeAssistContentGenerator(
authType === AuthType.COMPUTE_ADC
) {
const authClient = await getOauthClient(authType, config);
const userData = await setupUser(authClient, config.getValidationHandler());
const userData = await setupUser(
authClient,
config.getValidationHandler(),
httpOptions,
);
return new CodeAssistServer(
authClient,
userData.projectId,