fix: Disconnecting should clear oauth state

This commit is contained in:
Maxwell Gerber 2025-04-07 15:15:28 -07:00
commit 6a16e7cd24
No known key found for this signature in database
GPG key ID: BB9C1A99266069B0

View file

@ -361,6 +361,7 @@ export function useConnection({
const disconnect = async () => {
await mcpClient?.close();
authProvider.clear();
setMcpClient(null);
setConnectionStatus("disconnected");
setCompletionsSupported(false);