From d812c9dcf22aa0572c09d62cde9aac49f7ae708b Mon Sep 17 00:00:00 2001 From: yiliang114 <1204183885@qq.com> Date: Fri, 12 Dec 2025 13:51:14 +0800 Subject: [PATCH] chore(vscode-ide-companion): add fixme comment for auth delay --- .../vscode-ide-companion/src/services/qwenConnectionHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vscode-ide-companion/src/services/qwenConnectionHandler.ts b/packages/vscode-ide-companion/src/services/qwenConnectionHandler.ts index e8b6a978..78731734 100644 --- a/packages/vscode-ide-companion/src/services/qwenConnectionHandler.ts +++ b/packages/vscode-ide-companion/src/services/qwenConnectionHandler.ts @@ -140,6 +140,8 @@ export class QwenConnectionHandler { try { // Let CLI handle authentication - it's the single source of truth 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 await new Promise((resolve) => setTimeout(resolve, 300)); // Retry immediately after successful auth