mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
chore(vscode-ide-companion): wip
This commit is contained in:
@@ -169,7 +169,7 @@ export class AcpSessionManager {
|
|||||||
pendingRequests,
|
pendingRequests,
|
||||||
nextRequestId,
|
nextRequestId,
|
||||||
);
|
);
|
||||||
console.log('[ACP] Authenticate successful');
|
console.log('[ACP] Authenticate successful', response);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1110,6 +1110,9 @@ export class QwenAgentManager {
|
|||||||
try {
|
try {
|
||||||
// Let CLI handle authentication - it's the single source of truth
|
// Let CLI handle authentication - it's the single source of truth
|
||||||
await this.connection.authenticate(authMethod);
|
await this.connection.authenticate(authMethod);
|
||||||
|
console.log(
|
||||||
|
'[QwenAgentManager] createNewSession Authentication successful. Retrying session/new...',
|
||||||
|
);
|
||||||
// Add a slight delay to ensure auth state is settled
|
// Add a slight delay to ensure auth state is settled
|
||||||
await new Promise((resolve) => setTimeout(resolve, 300));
|
await new Promise((resolve) => setTimeout(resolve, 300));
|
||||||
await this.connection.newSession(workingDir);
|
await this.connection.newSession(workingDir);
|
||||||
|
|||||||
@@ -151,6 +151,9 @@ export class QwenConnectionHandler {
|
|||||||
// newSession may cause the cli authorization jump to be triggered again
|
// newSession may cause the cli authorization jump to be triggered again
|
||||||
// Add a slight delay to ensure auth state is settled
|
// Add a slight delay to ensure auth state is settled
|
||||||
await new Promise((resolve) => setTimeout(resolve, 300));
|
await new Promise((resolve) => setTimeout(resolve, 300));
|
||||||
|
console.log(
|
||||||
|
'[QwenAgentManager] newSessionWithRetry Authentication successful',
|
||||||
|
);
|
||||||
// Retry immediately after successful auth
|
// Retry immediately after successful auth
|
||||||
await connection.newSession(workingDir);
|
await connection.newSession(workingDir);
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user