This commit is contained in:
yiliang114
2025-11-18 14:25:05 +08:00
parent 247c237647
commit 39426be9a1
3 changed files with 78 additions and 30 deletions

View File

@@ -147,6 +147,12 @@ export async function activate(context: vscode.ExtensionContext) {
}),
vscode.commands.registerCommand('qwenCode.clearAuthCache', async () => {
await authStateManager.clearAuthState();
// Reset WebView agent state to force re-authentication
if (webViewProvider) {
webViewProvider.resetAgentState();
}
vscode.window.showInformationMessage(
'Qwen Code authentication cache cleared. You will need to login again on next connection.',
);