fix(vscode-ide-companion): slight delay to ensure auth state settlement

This commit is contained in:
yiliang114
2025-12-12 01:14:28 +08:00
parent c20df192a8
commit 25261ab88d
5 changed files with 93 additions and 175 deletions

View File

@@ -119,11 +119,6 @@ export class QwenConnectionHandler {
// Save auth state
if (authStateManager) {
console.log(
'[QwenAgentManager] Saving auth state after successful authentication',
);
console.log('[QwenAgentManager] Working dir for save:', workingDir);
console.log('[QwenAgentManager] Auth method for save:', authMethod);
await authStateManager.saveAuthState(workingDir, authMethod);
console.log('[QwenAgentManager] Auth state save completed');
}
@@ -145,6 +140,7 @@ export class QwenConnectionHandler {
}
try {
await setTimeout(() => Promise.resolve(), 100); // slight delay to ensure auth state is settled
console.log(
'[QwenAgentManager] Creating new session after authentication...',
);