fix(vscode-ide-companion): 解决 mac 环境多个 node 版本的安装问题

This commit is contained in:
yiliang114
2025-11-25 19:27:41 +08:00
parent 0cbf95d6b3
commit 530039c517
6 changed files with 201 additions and 20 deletions

View File

@@ -399,7 +399,12 @@ export class WebViewProvider {
const authInfo = await this.authStateManager.getAuthInfo();
console.log('[WebViewProvider] Auth cache status:', authInfo);
await this.agentManager.connect(workingDir, this.authStateManager);
// Pass the detected CLI path to ensure we use the correct installation
await this.agentManager.connect(
workingDir,
this.authStateManager,
cliDetection.cliPath,
);
console.log('[WebViewProvider] Agent connected successfully');
this.agentInitialized = true;