chore(vscode-ide-companion): add fixme comment for auth delay

This commit is contained in:
yiliang114
2025-12-12 13:51:14 +08:00
parent d754767e73
commit d812c9dcf2

View File

@@ -140,6 +140,8 @@ export class QwenConnectionHandler {
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 connection.authenticate(authMethod); await connection.authenticate(authMethod);
// FIXME: @yiliang114 If there is no delay for a while, immediately executing
// 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));
// Retry immediately after successful auth // Retry immediately after successful auth