chore(vscode-ide-companion): wip

This commit is contained in:
yiliang114
2025-12-13 22:30:10 +08:00
parent 0f2f1faee5
commit 3138aa1fe3
3 changed files with 7 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ export class AcpSessionManager {
pendingRequests,
nextRequestId,
);
console.log('[ACP] Authenticate successful');
console.log('[ACP] Authenticate successful', response);
return response;
}

View File

@@ -1110,6 +1110,9 @@ export class QwenAgentManager {
try {
// Let CLI handle authentication - it's the single source of truth
await this.connection.authenticate(authMethod);
console.log(
'[QwenAgentManager] createNewSession Authentication successful. Retrying session/new...',
);
// Add a slight delay to ensure auth state is settled
await new Promise((resolve) => setTimeout(resolve, 300));
await this.connection.newSession(workingDir);

View File

@@ -151,6 +151,9 @@ export class QwenConnectionHandler {
// newSession may cause the cli authorization jump to be triggered again
// Add a slight delay to ensure auth state is settled
await new Promise((resolve) => setTimeout(resolve, 300));
console.log(
'[QwenAgentManager] newSessionWithRetry Authentication successful',
);
// Retry immediately after successful auth
await connection.newSession(workingDir);
console.log(