mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 01:23:53 +00:00
chore(vscode-ide-companion): wip
This commit is contained in:
@@ -169,7 +169,7 @@ export class AcpSessionManager {
|
||||
pendingRequests,
|
||||
nextRequestId,
|
||||
);
|
||||
console.log('[ACP] Authenticate successful');
|
||||
console.log('[ACP] Authenticate successful', response);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user