🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(hetero): drop the duplicate device row from the device CLI status card (#21999)
AmAzing-a841b795da60
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.jsonindex 2c17417a046..433d5fe106b 100644--- a/locales/en-US/setting.json+++ b/locales/en-US/setting.json@@ -958,7 +958,6 @@"heterogeneousStatus.device.detecting": "Checking {{name}} CLI on {{device}}…","heterogeneousStatus.device.installDesc": "Run one of these commands in a terminal on {{device}}:","heterogeneousStatus.device.installTitle": "Install on {{device}}",- "heterogeneousStatus.device.label": "Device","heterogeneousStatus.device.missing": "The bound device is no longer available. Choose another execution environment above.","heterogeneousStatus.device.offline": "{{device}} is offline. Check again once it reconnects.","heterogeneousStatus.device.openDocs": "Installation guide",diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.jsonindex f0823a634d2..590f0ac4b4e 100644--- a/locales/zh-CN/setting.json+++ b/locales/zh-CN/setting.json@@ -958,7 +958,6 @@"heterogeneousStatus.device.detecting": "正在 {{device}} 上检测 {{name}} CLI…","heterogeneousStatus.device.installDesc": "在 {{device}} 的终端中运行以下任一命令:","heterogeneousStatus.device.installTitle": "在 {{device}} 上安装",- "heterogeneousStatus.device.label": "设备","heterogeneousStatus.device.missing": "绑定的设备已不可用,请在上方重新选择执行环境。","heterogeneousStatus.device.offline": "{{device}} 已离线,设备上线后再重新检测。","heterogeneousStatus.device.openDocs": "安装指南",diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.tsindex 611f903c3e4..39e3ed4e4c0 100644--- a/packages/locales/src/default/setting.ts+++ b/packages/locales/src/default/setting.ts@@ -562,7 +562,6 @@ export default {'heterogeneousStatus.device.installDesc':'Run one of these commands in a terminal on {{device}}:','heterogeneousStatus.device.installTitle': 'Install on {{device}}',- 'heterogeneousStatus.device.label': 'Device','heterogeneousStatus.device.missing':'The bound device is no longer available. Choose another execution environment above.','heterogeneousStatus.device.offline': '{{device}} is offline. Check again once it reconnects.',diff --git a/src/features/HeterogeneousAgent/ExecutionEnvironment/DeviceCliStatusCard.tsx b/src/features/HeterogeneousAgent/ExecutionEnvironment/DeviceCliStatusCard.tsxindex 69277c19bdf..33c7b779011 100644--- a/src/features/HeterogeneousAgent/ExecutionEnvironment/DeviceCliStatusCard.tsx+++ b/src/features/HeterogeneousAgent/ExecutionEnvironment/DeviceCliStatusCard.tsx@@ -22,8 +22,6 @@ import type { ReactNode } from 'react';import { memo } from 'react';import { useTranslation } from 'react-i18next';-import { getPlatformLabel } from '@/features/DeviceManager/getDeviceIcon';-import { ExecutionTargetDeviceStatus, ExecutionTargetIcon } from '@/features/ExecutionTargetPicker';import { electronSystemService } from '@/services/electron/system';import { type DeviceCliState, getDeviceInstallCommands } from './deviceCliStatus';@@ -39,24 +37,6 @@ const styles = stylex.create({paddingBlock: 16,paddingInline: 16,},- detailLabel: {- color: cssVar.colorTextTertiary,- flexShrink: 0,- fontSize: 12,- width: 96,- },- detailRow: {- borderBlockStartColor: cssVar.colorBorderSecondary,- borderBlockStartStyle: 'solid',- borderBlockStartWidth: 1,- minHeight: 48,- paddingBlock: 8,- },- deviceName: {- color: cssVar.colorText,- fontSize: 14,- minWidth: 0,- },metaText: {color: cssVar.colorTextSecondary,fontSize: 13,@@ -85,6 +65,9 @@ const openExternal = (url: string) => {* The agent CLI on the device a heterogeneous agent is bound to, probed over* the device gateway rather than on whichever machine the profile is open.*+ * The device itself (name, platform, presence) is not repeated here: the+ * execution environment picker right above already shows it.+ ** The local-only controls of the desktop card are absent on purpose: a device* run resolves the CLI's default command itself and authenticates with the* device's own login, so a custom command or API mode would not apply there@@ -201,7 +184,6 @@ export const DeviceCliStatusCard = memo<DeviceCliStatusCardProps>(({ deviceId, pstate.status === 'unavailable' && install? getDeviceInstallCommands(install.commands, device?.platform): [];- const platformLabel = getPlatformLabel(device?.platform, device?.architecture);return (<Flexbox {...stylex.props(styles.card)} gap={12}>@@ -228,26 +210,6 @@ export const DeviceCliStatusCard = memo<DeviceCliStatusCardProps>(({ deviceId, p</Tooltip></Flexbox>- <Flexbox horizontal align="center" gap={16} {...stylex.props(styles.detailRow)}>- <Text {...stylex.props(styles.detailLabel)}>{t('heterogeneousStatus.device.label')}</Text>- <Flexbox horizontal align="center" gap={8} style={{ minWidth: 0 }} wrap={'wrap'}>- <ExecutionTargetIcon devicePlatform={device?.platform} target={'device'} />- <Text ellipsis {...stylex.props(styles.deviceName)}>- {deviceName}- </Text>- {platformLabel && <Text type={'secondary'}>{platformLabel}</Text>}- {device && (- <ExecutionTargetDeviceStatus- offlineLabel={t('chat:heteroAgent.executionTarget.offline')}- online={device.online}- onlineLabel={t('chat:heteroAgent.executionTarget.online')}- unknown={device.onlineUnknown}- unknownLabel={t('chat:heteroAgent.executionTarget.presenceChecking')}- />- )}- </Flexbox>- </Flexbox>-{installCommands.length > 0 && install && (<Flexbox gap={8}><Text strong>{t('heterogeneousStatus.device.installTitle', { device: deviceName })}</Text>