@devries-cameron20 / t3code Mirror · read-only / commits / 0506508e9b
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 20:15 UTC

Allow failed remote environments to be removed (#4084)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Noah Zepner committed Jul 18, 2026 at 13:31 UTC 0506508e9b0072a5ffdd5d403cdef3a704f76540
1 file changed +28 -16
apps/web/src/components/settings/ConnectionsSettings.tsx
+28 -16
@@ -1461,22 +1461,34 @@ function SavedBackendListRow({
1461 </TooltipPopup>
1462 </Tooltip>
1463 ) : (
1464 - <Button
1465 - size="xs"
1466 - variant="outline"
1467 - disabled={isConnecting || removingEnvironmentId === environmentId}
1468 - onClick={() =>
1469 - void (isConnected ? onRemove(environmentId) : onConnect(environmentId))
1470 - }
1471 - >
1472 - {isConnected
1473 - ? removingEnvironmentId === environmentId
1474 - ? "Disconnecting…"
1475 - : "Disconnect"
1476 - : isConnecting
1477 - ? "Connecting…"
1478 - : "Connect"}
1479 - </Button>
1464 + <>
1465 + {!isConnected ? (
1466 + <Button
1467 + size="xs"
1468 + variant="outline"
1469 + disabled={removingEnvironmentId === environmentId}
1470 + onClick={() => void onRemove(environmentId)}
1471 + >
1472 + {removingEnvironmentId === environmentId ? "Removing…" : "Remove"}
1473 + </Button>
1474 + ) : null}
1475 + <Button
1476 + size="xs"
1477 + variant="outline"
1478 + disabled={isConnecting || removingEnvironmentId === environmentId}
1479 + onClick={() =>
1480 + void (isConnected ? onRemove(environmentId) : onConnect(environmentId))
1481 + }
1482 + >
1483 + {isConnected
1484 + ? removingEnvironmentId === environmentId
1485 + ? "Disconnecting…"
1486 + : "Disconnect"
1487 + : isConnecting
1488 + ? "Connecting…"
1489 + : "Connect"}
1490 + </Button>
1491 + </>
1492 )}
1493 </div>
1494 </div>