Skip to content

Commit 32d032f

Browse files
committed
fix(web): hide T3 Connect toggle in web app settings
T3 Connect managed tunnel is a desktop-only feature. The toggle was rendered in the web app's "This environment" panel, misleading users who are already connected via T3 Connect. Gate the row on window.desktopBridge; "Publish agent activity" stays since it works without a tunnel. Closes #5046
1 parent df78cda commit 32d032f

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

‎apps/web/src/components/settings/ConnectionsSettings.tsx‎

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,23 +1649,25 @@ function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: b
16491649

16501650
return (
16511651
<>
1652-
<SettingsRow
1653-
title="T3 Connect"
1654-
description={
1655-
managedTunnelActive
1656-
? "This environment is available to your other devices through T3 Connect."
1657-
: "Make this environment available to your other devices through T3 Connect."
1658-
}
1659-
status={operationError ?? primaryCloudLinkState.error}
1660-
control={
1661-
<CloudLinkSwitch
1662-
checked={managedTunnelActive}
1663-
disabled={!canManageRelay || !isSignedIn || primaryCloudLinkState.isPending || isBusy}
1664-
disabledReason={disabledReason}
1665-
onCheckedChange={(enabled) => void updateManagedTunnel(enabled)}
1666-
/>
1667-
}
1668-
/>
1652+
{window.desktopBridge ? (
1653+
<SettingsRow
1654+
title="T3 Connect"
1655+
description={
1656+
managedTunnelActive
1657+
? "This environment is available to your other devices through T3 Connect."
1658+
: "Make this environment available to your other devices through T3 Connect."
1659+
}
1660+
status={operationError ?? primaryCloudLinkState.error}
1661+
control={
1662+
<CloudLinkSwitch
1663+
checked={managedTunnelActive}
1664+
disabled={!canManageRelay || !isSignedIn || primaryCloudLinkState.isPending || isBusy}
1665+
disabledReason={disabledReason}
1666+
onCheckedChange={(enabled) => void updateManagedTunnel(enabled)}
1667+
/>
1668+
}
1669+
/>
1670+
) : null}
16691671
<SettingsRow
16701672
title="Publish agent activity"
16711673
description="Send activity from this environment to your mobile clients for push notifications and Live Activities. Works without a T3 Connect tunnel."

0 commit comments

Comments
 (0)