From 4f75d7f8e2bc1537fcb400f672dcd8e1d267bbbd Mon Sep 17 00:00:00 2001 From: yyh Date: Mon, 26 Jan 2026 11:33:13 +0800 Subject: [PATCH] fix: hide 'Managed by SaaS' tag in CE edition for sandbox providers The tag should only display in SaaS version since CE edition also has system config from migrations but the label is misleading for self-hosted. --- .../account-setting/sandbox-provider-page/provider-card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx b/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx index fac890ef15..72cf431c76 100644 --- a/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx +++ b/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx @@ -6,6 +6,7 @@ import { memo } from 'react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import Indicator from '@/app/components/header/indicator' +import { IS_CE_EDITION } from '@/config' import { cn } from '@/utils/classnames' import { PROVIDER_DESCRIPTION_KEYS, PROVIDER_LABEL_KEYS } from './constants' import ProviderIcon from './provider-icon' @@ -47,7 +48,7 @@ const ProviderCard = ({ {t(PROVIDER_LABEL_KEYS[provider.provider_type as keyof typeof PROVIDER_LABEL_KEYS] ?? 'sandboxProvider.e2b.label', { ns: 'common' })} - {provider.is_system_configured && !provider.is_tenant_configured && ( + {!IS_CE_EDITION && provider.is_system_configured && !provider.is_tenant_configured && ( {t('sandboxProvider.managedBySaas', { ns: 'common' })}