fix normalize in different place

This commit is contained in:
DennisYu07 2026-03-30 16:06:31 +08:00
parent 588ef60411
commit 56492be757
3 changed files with 33 additions and 18 deletions

View file

@ -748,9 +748,9 @@ export class Config {
initializeTelemetry(this);
}
const normalizedProxy = normalizeProxyUrl(this.getProxy());
if (normalizedProxy) {
setGlobalDispatcher(new ProxyAgent(normalizedProxy));
const proxyUrl = this.getProxy();
if (proxyUrl) {
setGlobalDispatcher(new ProxyAgent(proxyUrl));
}
this.geminiClient = new GeminiClient(this);
this.chatRecordingService = this.chatRecordingEnabled
@ -1719,7 +1719,7 @@ export class Config {
}
getProxy(): string | undefined {
return this.proxy;
return normalizeProxyUrl(this.proxy);
}
getWorkingDir(): string {