The best way to control Claude Code, Codex and more from any computer or phone
fix(web): environment status tooltip resizes when the status changes (#13845)
Bear Huddleston committed
Sep 26, 2026 at 22:29 UTC
ab099178a7b7f9728843e90fc95ed90bb61d710d
1 file changed
+16
-8
apps/web/src/components/settings/ConnectionsSettings.tsx
+16
-8
@@ -1549,6 +1549,18 @@ function SavedBackendListRow({
1549
versionMismatch !== null &&
1550
(serverUpdateState.status === "idle" || serverUpdateState.status === "failed");
1551
1552
+ const statusTooltip = `${
1553
+ unsupported
1554
+ ? (environment.connection.error ?? connectionStatusText(environment.connection))
1555
+ : enabled
1556
+ ? connectionStatusText(environment.connection)
1557
+ : "Switched off"
1558
+ }${
1559
+ versionMismatch
1560
+ ? `\nUpdate available: ${versionMismatch.serverVersion} → ${versionMismatch.clientVersion}`
1561
+ : ""
1562
+ }`;
1563
+
1564
return (
1565
<EnvironmentRow
1566
kind={machineKind}
@@ -1556,7 +1568,10 @@ function SavedBackendListRow({
1568
dimmed={!enabled}
1569
subtitle={
1570
<Tooltip>
1571
+ {/* The status can change while the tooltip is open, and base-ui only
1572
+ re-measures the popup when the trigger's payload changes. */}
1573
<TooltipTrigger
1574
+ payload={statusTooltip}
1575
render={
1576
<span
1577
className={cn(
@@ -1569,14 +1584,7 @@ function SavedBackendListRow({
1584
{subtitleText}
1585
</TooltipTrigger>
1586
<TooltipPopup side="top" className="whitespace-pre-wrap">
1572
- {unsupported
1573
- ? (environment.connection.error ?? connectionStatusText(environment.connection))
1574
- : enabled
1575
- ? connectionStatusText(environment.connection)
1576
- : "Switched off"}
1577
- {versionMismatch
1578
- ? `\nUpdate available: ${versionMismatch.serverVersion} → ${versionMismatch.clientVersion}`
1579
- : ""}
1587
+ {statusTooltip}
1588
</TooltipPopup>
1589
</Tooltip>
1590
}