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

@@ -459,6 +459,17 @@ export class WebViewProvider {
</html>`;
}
/**
* Reset agent initialization state
* Call this when auth cache is cleared to force re-authentication
*/
resetAgentState(): void {
console.log('[WebViewProvider] Resetting agent state');
this.agentInitialized = false;
// Disconnect existing connection
this.agentManager.disconnect();
}
dispose(): void {
this.panel?.dispose();
this.agentManager.disconnect();