We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad3262 commit 727e075Copy full SHA for 727e075
client/src/components/Sidebar.tsx
@@ -398,7 +398,13 @@ const Sidebar = ({
398
<div className="space-y-2">
399
{connectionStatus === "connected" && (
400
<div className="grid grid-cols-2 gap-4">
401
- <Button data-testid="connect-button" onClick={onConnect}>
+ <Button
402
+ data-testid="connect-button"
403
+ onClick={() => {
404
+ onDisconnect();
405
+ onConnect();
406
+ }}
407
+ >
408
<RotateCcw className="w-4 h-4 mr-2" />
409
{transportType === "stdio" ? "Restart" : "Reconnect"}
410
</Button>
0 commit comments