Skip to content

🤯 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.

💄 style(chat-input): compact the execution environment menu (#23340)

Rdmclin203c63d940c3b
diff --git a/locales/ar/chat.json b/locales/ar/chat.json
index dab319b8c32..8a56d0d77db 100644
--- a/locales/ar/chat.json
+++ b/locales/ar/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} مكتسب إجمالاً",
"heteroAgent.executionTarget.auto": "تلقائي",
"heteroAgent.executionTarget.autoDesc": "استخدام جهاز متصل تلقائيًا، واختيار واحد عند توفر عدة أجهزة",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} متصل · {{total}} إجمالًا",
"heteroAgent.executionTarget.downloadDesktop": "احصل على تطبيق سطح المكتب",
"heteroAgent.executionTarget.downloadDesktopDesc": "قم بتشغيل الوكلاء مع الوصول إلى جهاز الكمبيوتر الخاص بك",
"heteroAgent.executionTarget.downloadDesktopTitle": "احصل على تطبيق سطح المكتب",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "بيئة سحابية مؤقتة",
"heteroAgent.executionTarget.sandboxDesc": "تشغيل في بيئة سحابية مؤقتة",
"heteroAgent.executionTarget.sandboxGroup": "بيئات الحماية",
- "heteroAgent.executionTarget.sandboxGroupDesc": "تشغيل في بيئة معزولة",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} يعمل حاليًا فقط على جهاز محلي أو متصل",
"heteroAgent.executionTarget.switchProjectTopic.content": "سيتم تشغيل هذا الموضوع في دليل المشروع \"{{directory}}\" على {{device}}. تبدأ دورته التالية بجلسة جديدة هناك.",
"heteroAgent.executionTarget.switchTopic.content": "تم تشغيل هذا الموضوع على {{name}}، حيث يتم الاحتفاظ بدليل العمل وجلسة الوكيل. بعد التبديل، يبدأ دوره التالي جلسة جديدة في البيئة الجديدة. ستستخدم المواضيع الجديدة هذا الاختيار أيضًا.",
diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.json
index a9002aeae0c..9c7bbff04a9 100644
--- a/locales/bg-BG/chat.json
+++ b/locales/bg-BG/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} спечелени общо",
"heteroAgent.executionTarget.auto": "Автоматично",
"heteroAgent.executionTarget.autoDesc": "Автоматично използване на онлайн устройство, избирайки едно, когато има няколко налични",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} онлайн · общо {{total}}",
"heteroAgent.executionTarget.downloadDesktop": "Изтеглете десктоп приложението",
"heteroAgent.executionTarget.downloadDesktopDesc": "Стартирайте агенти с достъп до вашия компютър",
"heteroAgent.executionTarget.downloadDesktopTitle": "Изтеглете десктоп приложението",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "Облачен пясъчник",
"heteroAgent.executionTarget.sandboxDesc": "Изпълнява се в временен облачен пясъчник",
"heteroAgent.executionTarget.sandboxGroup": "Пясъчници",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Изпълнение в изолирана среда",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} в момента работи само на локално или свързано устройство",
"heteroAgent.executionTarget.switchProjectTopic.content": "Тази тема ще се изпълнява в директорията на проекта \"{{directory}}\" на {{device}}. Следващият й ход започва нова сесия там.",
"heteroAgent.executionTarget.switchTopic.content": "Тази тема се изпълнява на {{name}}, където се съхраняват нейната работна директория и сесията на агента. След превключване, следващият ѝ ход започва нова сесия в новата среда. Новите теми също ще използват този избор.",
diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.json
index 7b40c32cc98..a478e745822 100644
--- a/locales/de-DE/chat.json
+++ b/locales/de-DE/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} insgesamt verdient",
"heteroAgent.executionTarget.auto": "Automatisch",
"heteroAgent.executionTarget.autoDesc": "Automatisch ein Online-Gerät verwenden, wobei eines ausgewählt wird, wenn mehrere verfügbar sind",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · {{total}} insgesamt",
"heteroAgent.executionTarget.downloadDesktop": "Desktop-App herunterladen",
"heteroAgent.executionTarget.downloadDesktopDesc": "Führen Sie Agenten mit Zugriff auf Ihren Computer aus",
"heteroAgent.executionTarget.downloadDesktopTitle": "Desktop-App herunterladen",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Cloud-Sandbox",
"heteroAgent.executionTarget.sandboxDesc": "In einer temporären Cloud-Sandbox ausführen",
"heteroAgent.executionTarget.sandboxGroup": "Sandboxes",
- "heteroAgent.executionTarget.sandboxGroupDesc": "In einer isolierten Umgebung ausführen",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} läuft derzeit nur auf einem lokalen oder verbundenen Gerät",
"heteroAgent.executionTarget.switchProjectTopic.content": "Dieses Thema wird im Projektverzeichnis \"{{directory}}\" auf {{device}} ausgeführt. Der nächste Durchlauf startet dort eine neue Sitzung.",
"heteroAgent.executionTarget.switchTopic.content": "Dieses Thema wurde auf {{name}} ausgeführt, wo sein Arbeitsverzeichnis und die Agentensitzung gespeichert sind. Nach dem Wechsel beginnt der nächste Zug eine neue Sitzung in der neuen Umgebung. Neue Themen verwenden ebenfalls diese Wahl.",
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.json
index d5a66e62415..69e3839ab8e 100644
--- a/locales/en-US/chat.json
+++ b/locales/en-US/chat.json
@@ -1554,7 +1554,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} earned in total",
"heteroAgent.executionTarget.auto": "Auto",
"heteroAgent.executionTarget.autoDesc": "Use an online device automatically, picking one when several are available",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · {{total}} total",
"heteroAgent.executionTarget.downloadDesktop": "Get Desktop App",
"heteroAgent.executionTarget.downloadDesktopDesc": "Run agents with access to your computer",
"heteroAgent.executionTarget.downloadDesktopTitle": "Get the desktop app",
@@ -1591,7 +1590,6 @@
"heteroAgent.executionTarget.sandbox": "Cloud Sandbox",
"heteroAgent.executionTarget.sandboxDesc": "Runs in the cloud, no machine needed",
"heteroAgent.executionTarget.sandboxGroup": "Sandboxes",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Run in an isolated environment",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} currently runs only on a local or connected device",
"heteroAgent.executionTarget.switchProjectTopic.content": "This topic will run in the project directory \"{{directory}}\" on {{device}}. Its next turn starts a fresh session there.",
"heteroAgent.executionTarget.switchTopic.content": "This topic has been running on {{name}}, where its working directory and agent session are kept. After switching, its next turn starts a fresh session in the new environment. New topics will use this choice too.",
diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.json
index 682ca73bd73..327897e516f 100644
--- a/locales/es-ES/chat.json
+++ b/locales/es-ES/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} ganados en total",
"heteroAgent.executionTarget.auto": "Automático",
"heteroAgent.executionTarget.autoDesc": "Usar un dispositivo en línea automáticamente, eligiendo uno cuando haya varios disponibles",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} en línea · {{total}} en total",
"heteroAgent.executionTarget.downloadDesktop": "Obtener la aplicación de escritorio",
"heteroAgent.executionTarget.downloadDesktopDesc": "Ejecuta agentes con acceso a tu computadora",
"heteroAgent.executionTarget.downloadDesktopTitle": "Obtener la aplicación de escritorio",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Sandbox en la nube",
"heteroAgent.executionTarget.sandboxDesc": "Ejecutar en un sandbox efímero en la nube",
"heteroAgent.executionTarget.sandboxGroup": "Sandboxes",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Ejecutar en un entorno aislado",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} actualmente solo se ejecuta en un dispositivo local o conectado",
"heteroAgent.executionTarget.switchProjectTopic.content": "Este tema se ejecutará en el directorio del proyecto \"{{directory}}\" en {{device}}. Su próximo turno comenzará una nueva sesión allí.",
"heteroAgent.executionTarget.switchTopic.content": "Este tema se ha estado ejecutando en {{name}}, donde se mantienen su directorio de trabajo y sesión del agente. Después de cambiar, su próximo turno comienza una nueva sesión en el nuevo entorno. Los nuevos temas también usarán esta elección.",
diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.json
index 7094f55fb9b..50227d8ecc1 100644
--- a/locales/fa-IR/chat.json
+++ b/locales/fa-IR/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} در مجموع کسب شده",
"heteroAgent.executionTarget.auto": "خودکار",
"heteroAgent.executionTarget.autoDesc": "به طور خودکار از یک دستگاه آنلاین استفاده کنید و یکی را در صورت موجود بودن چندین دستگاه انتخاب کنید",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} آنلاین · {{total}} در مجموع",
"heteroAgent.executionTarget.downloadDesktop": "دریافت اپلیکیشن دسکتاپ",
"heteroAgent.executionTarget.downloadDesktopDesc": "اجرای عوامل با دسترسی به کامپیوتر شما",
"heteroAgent.executionTarget.downloadDesktopTitle": "دریافت اپلیکیشن دسکتاپ",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "محیط آزمایشی ابری",
"heteroAgent.executionTarget.sandboxDesc": "در یک محیط آزمایشی ابری موقت اجرا شود",
"heteroAgent.executionTarget.sandboxGroup": "سندباکس‌ها",
- "heteroAgent.executionTarget.sandboxGroupDesc": "اجرا در یک محیط ایزوله",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} در حال حاضر فقط روی یک دستگاه محلی یا متصل اجرا می‌شود",
"heteroAgent.executionTarget.switchProjectTopic.content": "این موضوع در دایرکتوری پروژه \"{{directory}}\" روی {{device}} اجرا خواهد شد. نوبت بعدی آن یک جلسه جدید را در آنجا آغاز می‌کند.",
"heteroAgent.executionTarget.switchTopic.content": "این موضوع در حال اجرا روی {{name}} است، جایی که دایرکتوری کاری و جلسه اجنت آن نگهداری می‌شود. پس از تغییر، نوبت بعدی آن یک جلسه جدید در محیط جدید شروع می‌کند. موضوعات جدید نیز از این انتخاب استفاده خواهند کرد.",
diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.json
index f55c854ec1c..b4d9ce587ff 100644
--- a/locales/fr-FR/chat.json
+++ b/locales/fr-FR/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} gagnés au total",
"heteroAgent.executionTarget.auto": "Auto",
"heteroAgent.executionTarget.autoDesc": "Utiliser automatiquement un appareil en ligne, en choisissant un lorsqu'il y en a plusieurs disponibles",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} en ligne · {{total}} au total",
"heteroAgent.executionTarget.downloadDesktop": "Obtenir l'application de bureau",
"heteroAgent.executionTarget.downloadDesktopDesc": "Exécutez des agents avec accès à votre ordinateur",
"heteroAgent.executionTarget.downloadDesktopTitle": "Obtenir l'application de bureau",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "Bac à sable cloud",
"heteroAgent.executionTarget.sandboxDesc": "Exécuter dans un bac à sable cloud éphémère",
"heteroAgent.executionTarget.sandboxGroup": "Bacs à sable",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Exécuter dans un environnement isolé",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} fonctionne actuellement uniquement sur un appareil local ou connecté",
"heteroAgent.executionTarget.switchProjectTopic.content": "Ce sujet s'exécutera dans le répertoire du projet \"{{directory}}\" sur {{device}}. Son prochain tour commencera une nouvelle session là-bas.",
"heteroAgent.executionTarget.switchTopic.content": "Ce sujet s'exécute sur {{name}}, où son répertoire de travail et sa session d'agent sont conservés. Après le changement, son prochain tour démarre une nouvelle session dans le nouvel environnement. Les nouveaux sujets utiliseront également ce choix.",
diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.json
index 183fda132c3..3d2fe1d61f8 100644
--- a/locales/it-IT/chat.json
+++ b/locales/it-IT/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} guadagnati in totale",
"heteroAgent.executionTarget.auto": "Automatico",
"heteroAgent.executionTarget.autoDesc": "Usa automaticamente un dispositivo online, scegliendone uno quando ce ne sono diversi disponibili",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · {{total}} in totale",
"heteroAgent.executionTarget.downloadDesktop": "Scarica l'App Desktop",
"heteroAgent.executionTarget.downloadDesktopDesc": "Esegui agenti con accesso al tuo computer",
"heteroAgent.executionTarget.downloadDesktopTitle": "Scarica l'app desktop",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "Sandbox cloud",
"heteroAgent.executionTarget.sandboxDesc": "Esegui in un sandbox cloud temporaneo",
"heteroAgent.executionTarget.sandboxGroup": "Sandbox",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Esegui in un ambiente isolato",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} attualmente funziona solo su un dispositivo locale o connesso",
"heteroAgent.executionTarget.switchProjectTopic.content": "Questo argomento verrà eseguito nella directory del progetto \"{{directory}}\" su {{device}}. Il prossimo turno inizierà una nuova sessione lì.",
"heteroAgent.executionTarget.switchTopic.content": "Questo argomento è stato eseguito su {{name}}, dove sono conservati la directory di lavoro e la sessione dell'agente. Dopo il cambio, il prossimo turno inizierà una nuova sessione nel nuovo ambiente. Anche i nuovi argomenti utilizzeranno questa scelta.",
diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.json
index 3e5a446633a..2cc7da31b4c 100644
--- a/locales/ja-JP/chat.json
+++ b/locales/ja-JP/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "合計で{{count}}獲得",
"heteroAgent.executionTarget.auto": "自動",
"heteroAgent.executionTarget.autoDesc": "複数のオンラインデバイスが利用可能な場合、自動的に選択して使用",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} 台オンライン · 全 {{total}} 台",
"heteroAgent.executionTarget.downloadDesktop": "デスクトップアプリを取得",
"heteroAgent.executionTarget.downloadDesktopDesc": "コンピュータにアクセスできるエージェントを実行",
"heteroAgent.executionTarget.downloadDesktopTitle": "デスクトップアプリを取得",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "クラウドサンドボックス",
"heteroAgent.executionTarget.sandboxDesc": "一時的なクラウドサンドボックスで実行",
"heteroAgent.executionTarget.sandboxGroup": "サンドボックス",
- "heteroAgent.executionTarget.sandboxGroupDesc": "隔離された環境で実行",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} は現在、ローカルまたは接続されたデバイスでのみ動作します",
"heteroAgent.executionTarget.switchProjectTopic.content": "このトピックはプロジェクトディレクトリ「{{directory}}」で{{device}}上で実行されます。次のターンではそこで新しいセッションが開始されます。",
"heteroAgent.executionTarget.switchTopic.content": "このトピックは {{name}} で実行されており、その作業ディレクトリとエージェントセッションが保持されています。切り替え後、次のターンは新しい環境で新しいセッションを開始します。新しいトピックもこの選択を使用します。",
diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.json
index 95bceed9a08..590249a3c8e 100644
--- a/locales/ko-KR/chat.json
+++ b/locales/ko-KR/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "총 {{count}} 획득",
"heteroAgent.executionTarget.auto": "자동",
"heteroAgent.executionTarget.autoDesc": "온라인 장치를 자동으로 사용하며, 여러 장치가 있을 경우 하나를 선택합니다",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}}대 온라인 · 총 {{total}}대",
"heteroAgent.executionTarget.downloadDesktop": "데스크톱 앱 받기",
"heteroAgent.executionTarget.downloadDesktopDesc": "컴퓨터에 액세스할 수 있는 에이전트를 실행하세요",
"heteroAgent.executionTarget.downloadDesktopTitle": "데스크톱 앱 받기",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "클라우드 샌드박스",
"heteroAgent.executionTarget.sandboxDesc": "임시 클라우드 샌드박스에서 실행",
"heteroAgent.executionTarget.sandboxGroup": "샌드박스",
- "heteroAgent.executionTarget.sandboxGroupDesc": "격리된 환경에서 실행",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}}은 현재 로컬 또는 연결된 장치에서만 실행됩니다.",
"heteroAgent.executionTarget.switchProjectTopic.content": "이 주제는 {{device}}의 프로젝트 디렉토리 \"{{directory}}\"에서 실행됩니다. 다음 턴은 그곳에서 새 세션을 시작합니다.",
"heteroAgent.executionTarget.switchTopic.content": "이 주제는 {{name}}에서 실행 중이며, 해당 작업 디렉토리와 에이전트 세션이 유지됩니다. 전환 후, 다음 턴은 새 환경에서 새 세션을 시작합니다. 새 주제도 이 선택을 사용합니다.",
diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.json
index 574035bbefa..d37212693e8 100644
--- a/locales/nl-NL/chat.json
+++ b/locales/nl-NL/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} in totaal verdiend",
"heteroAgent.executionTarget.auto": "Auto",
"heteroAgent.executionTarget.autoDesc": "Gebruik automatisch een online apparaat, waarbij er één wordt gekozen als er meerdere beschikbaar zijn",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · {{total}} in totaal",
"heteroAgent.executionTarget.downloadDesktop": "Download Desktop App",
"heteroAgent.executionTarget.downloadDesktopDesc": "Voer agents uit met toegang tot uw computer",
"heteroAgent.executionTarget.downloadDesktopTitle": "Download de desktop-app",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "Cloud-sandbox",
"heteroAgent.executionTarget.sandboxDesc": "Voer uit in een tijdelijke cloud-sandbox",
"heteroAgent.executionTarget.sandboxGroup": "Sandboxes",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Uitvoeren in een geïsoleerde omgeving",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} werkt momenteel alleen op een lokaal of verbonden apparaat",
"heteroAgent.executionTarget.switchProjectTopic.content": "Dit onderwerp wordt uitgevoerd in de projectmap \"{{directory}}\" op {{device}}. De volgende beurt start daar een nieuwe sessie.",
"heteroAgent.executionTarget.switchTopic.content": "Dit onderwerp is uitgevoerd op {{name}}, waar zijn werkmap en agentsessie worden bewaard. Na overschakelen start de volgende beurt een nieuwe sessie in de nieuwe omgeving. Nieuwe onderwerpen zullen ook deze keuze gebruiken.",
diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.json
index a8eff635640..1288728f170 100644
--- a/locales/pl-PL/chat.json
+++ b/locales/pl-PL/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} zdobytych w sumie",
"heteroAgent.executionTarget.auto": "Automatycznie",
"heteroAgent.executionTarget.autoDesc": "Automatycznie użyj urządzenia online, wybierając jedno, gdy dostępnych jest kilka",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · łącznie {{total}}",
"heteroAgent.executionTarget.downloadDesktop": "Pobierz aplikację na komputer",
"heteroAgent.executionTarget.downloadDesktopDesc": "Uruchamiaj agentów z dostępem do swojego komputera",
"heteroAgent.executionTarget.downloadDesktopTitle": "Pobierz aplikację na komputer",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Chmurowa piaskownica",
"heteroAgent.executionTarget.sandboxDesc": "Uruchom w efemerycznej chmurowej piaskownicy",
"heteroAgent.executionTarget.sandboxGroup": "Piaskownice",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Uruchamiaj w odizolowanym środowisku",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} działa obecnie tylko na urządzeniu lokalnym lub podłączonym",
"heteroAgent.executionTarget.switchProjectTopic.content": "Ten temat będzie działał w katalogu projektu \"{{directory}}\" na {{device}}. Jego następna tura rozpocznie nową sesję tam.",
"heteroAgent.executionTarget.switchTopic.content": "Ten temat działa na {{name}}, gdzie przechowywany jest jego katalog roboczy i sesja agenta. Po przełączeniu jego następna tura rozpocznie nową sesję w nowym środowisku. Nowe tematy również będą korzystać z tego wyboru.",
diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.json
index c2f12b5fa12..c653893d81c 100644
--- a/locales/pt-BR/chat.json
+++ b/locales/pt-BR/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} ganhos no total",
"heteroAgent.executionTarget.auto": "Automático",
"heteroAgent.executionTarget.autoDesc": "Use um dispositivo online automaticamente, escolhendo um quando vários estiverem disponíveis",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} online · {{total}} no total",
"heteroAgent.executionTarget.downloadDesktop": "Obter Aplicativo para Desktop",
"heteroAgent.executionTarget.downloadDesktopDesc": "Execute agentes com acesso ao seu computador",
"heteroAgent.executionTarget.downloadDesktopTitle": "Obter o aplicativo para desktop",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Sandbox na nuvem",
"heteroAgent.executionTarget.sandboxDesc": "Executar em um sandbox efêmero na nuvem",
"heteroAgent.executionTarget.sandboxGroup": "Sandboxes",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Executar em um ambiente isolado",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} atualmente funciona apenas em um dispositivo local ou conectado",
"heteroAgent.executionTarget.switchProjectTopic.content": "Este tópico será executado no diretório do projeto \"{{directory}}\" em {{device}}. Sua próxima execução iniciará uma nova sessão lá.",
"heteroAgent.executionTarget.switchTopic.content": "Este tópico está sendo executado em {{name}}, onde seu diretório de trabalho e sessão do agente são mantidos. Após a troca, sua próxima etapa iniciará uma nova sessão no novo ambiente. Novos tópicos também usarão esta escolha.",
diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.json
index 9138b4f54ad..ab0ab53d2ac 100644
--- a/locales/ru-RU/chat.json
+++ b/locales/ru-RU/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "Всего заработано: {{count}}",
"heteroAgent.executionTarget.auto": "Авто",
"heteroAgent.executionTarget.autoDesc": "Автоматически использовать онлайн-устройство, выбирая одно из нескольких доступных",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} в сети · всего {{total}}",
"heteroAgent.executionTarget.downloadDesktop": "Скачать приложение для компьютера",
"heteroAgent.executionTarget.downloadDesktopDesc": "Запускайте агентов с доступом к вашему компьютеру",
"heteroAgent.executionTarget.downloadDesktopTitle": "Скачать приложение для компьютера",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Облачная песочница",
"heteroAgent.executionTarget.sandboxDesc": "Запуск в временной облачной песочнице",
"heteroAgent.executionTarget.sandboxGroup": "Песочницы",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Запуск в изолированной среде",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} в настоящее время работает только на локальном или подключенном устройстве",
"heteroAgent.executionTarget.switchProjectTopic.content": "Эта тема будет выполняться в директории проекта \"{{directory}}\" на {{device}}. Следующий ход начнет новую сессию там.",
"heteroAgent.executionTarget.switchTopic.content": "Эта тема выполняется на {{name}}, где сохраняются ее рабочая директория и сессия агента. После переключения следующий ход начнет новую сессию в новой среде. Новые темы также будут использовать этот выбор.",
diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.json
index 0d97ad9c3d9..6e8cc2711cd 100644
--- a/locales/tr-TR/chat.json
+++ b/locales/tr-TR/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "Toplamda {{count}} kazanıldı",
"heteroAgent.executionTarget.auto": "Otomatik",
"heteroAgent.executionTarget.autoDesc": "Birden fazla cihaz mevcut olduğunda, otomatik olarak bir çevrimiçi cihaz seçin",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} çevrimiçi · toplam {{total}}",
"heteroAgent.executionTarget.downloadDesktop": "Masaüstü Uygulamasını Edinin",
"heteroAgent.executionTarget.downloadDesktopDesc": "Bilgisayarınıza erişimi olan ajanları çalıştırın",
"heteroAgent.executionTarget.downloadDesktopTitle": "Masaüstü uygulamasını edinin",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "Bulut sandbox",
"heteroAgent.executionTarget.sandboxDesc": "Geçici bir bulut sandbox'ında çalıştır",
"heteroAgent.executionTarget.sandboxGroup": "Sandbox'lar",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Yalıtılmış bir ortamda çalıştır",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} şu anda yalnızca yerel veya bağlı bir cihazda çalışıyor",
"heteroAgent.executionTarget.switchProjectTopic.content": "Bu konu, \"{{directory}}\" proje dizininde {{device}} üzerinde çalışacak. Bir sonraki adımda orada yeni bir oturum başlatılacak.",
"heteroAgent.executionTarget.switchTopic.content": "Bu konu {{name}} üzerinde çalışıyor, burada çalışma dizini ve ajan oturumu tutuluyor. Geçişten sonra, bir sonraki tur yeni ortamda yeni bir oturum başlatır. Yeni konular da bu seçimi kullanır.",
diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.json
index deecb61c596..22e3e2db18e 100644
--- a/locales/vi-VN/chat.json
+++ b/locales/vi-VN/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "{{count}} đã kiếm được tổng cộng",
"heteroAgent.executionTarget.auto": "Tự động",
"heteroAgent.executionTarget.autoDesc": "Tự động sử dụng một thiết bị trực tuyến, chọn một thiết bị khi có nhiều thiết bị khả dụng",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} trực tuyến · tổng {{total}}",
"heteroAgent.executionTarget.downloadDesktop": "Tải ứng dụng máy tính",
"heteroAgent.executionTarget.downloadDesktopDesc": "Chạy các tác nhân với quyền truy cập vào máy tính của bạn",
"heteroAgent.executionTarget.downloadDesktopTitle": "Tải ứng dụng máy tính",
@@ -1547,7 +1546,6 @@
"heteroAgent.executionTarget.sandbox": "Hộp cát đám mây",
"heteroAgent.executionTarget.sandboxDesc": "Chạy trong hộp cát đám mây tạm thời",
"heteroAgent.executionTarget.sandboxGroup": "Hộp cát",
- "heteroAgent.executionTarget.sandboxGroupDesc": "Chạy trong môi trường cô lập",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} hiện chỉ chạy trên thiết bị cục bộ hoặc được kết nối",
"heteroAgent.executionTarget.switchProjectTopic.content": "Chủ đề này sẽ chạy trong thư mục dự án \"{{directory}}\" trên {{device}}. Lần tiếp theo sẽ bắt đầu một phiên mới tại đó.",
"heteroAgent.executionTarget.switchTopic.content": "Chủ đề này đang chạy trên {{name}}, nơi thư mục làm việc và phiên agent của nó được giữ. Sau khi chuyển đổi, lượt tiếp theo của nó sẽ bắt đầu một phiên mới trong môi trường mới. Các chủ đề mới cũng sẽ sử dụng lựa chọn này.",
diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.json
index 888da94f639..9e8d8f48f70 100644
--- a/locales/zh-CN/chat.json
+++ b/locales/zh-CN/chat.json
@@ -1554,7 +1554,6 @@
"heteroAgent.codexQuota.totalEarned_other": "累计获得 {{count}} 次",
"heteroAgent.executionTarget.auto": "自动",
"heteroAgent.executionTarget.autoDesc": "自动使用在线设备,有多台时择一使用",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} 台在线 · 共 {{total}} 台",
"heteroAgent.executionTarget.downloadDesktop": "下载桌面端",
"heteroAgent.executionTarget.downloadDesktopDesc": "让 Agent 直接连接你的电脑",
"heteroAgent.executionTarget.downloadDesktopTitle": "下载桌面端",
@@ -1591,7 +1590,6 @@
"heteroAgent.executionTarget.sandbox": "云端沙箱",
"heteroAgent.executionTarget.sandboxDesc": "云端运行,不占用机器",
"heteroAgent.executionTarget.sandboxGroup": "沙箱",
- "heteroAgent.executionTarget.sandboxGroupDesc": "在隔离环境中运行",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} 目前仅支持在本地设备或已连接设备上运行",
"heteroAgent.executionTarget.switchProjectTopic.content": "本话题将改到「{{device}}」上的项目目录「{{directory}}」运行,下一轮会在那里开启新会话。",
"heteroAgent.executionTarget.switchTopic.content": "本话题一直在「{{name}}」上运行,工作目录和会话都保存在那里。切换后,下一轮会在新环境中开启新会话;之后的新话题也会使用这个选择。",
diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.json
index 49300ddb650..30cabdcf249 100644
--- a/locales/zh-TW/chat.json
+++ b/locales/zh-TW/chat.json
@@ -1516,7 +1516,6 @@
"heteroAgent.codexQuota.totalEarned_other": "總共獲得 {{count}}",
"heteroAgent.executionTarget.auto": "自動",
"heteroAgent.executionTarget.autoDesc": "自動使用在線設備,當有多個可用時選擇一個",
- "heteroAgent.executionTarget.deviceGroupSummary": "{{online}} 台在線 · 共 {{total}} 台",
"heteroAgent.executionTarget.downloadDesktop": "下載桌面應用程式",
"heteroAgent.executionTarget.downloadDesktopDesc": "運行可訪問您電腦的代理",
"heteroAgent.executionTarget.downloadDesktopTitle": "下載桌面應用程式",
@@ -1549,7 +1548,6 @@
"heteroAgent.executionTarget.sandbox": "雲端沙盒",
"heteroAgent.executionTarget.sandboxDesc": "在臨時雲端沙盒中運行",
"heteroAgent.executionTarget.sandboxGroup": "沙盒",
- "heteroAgent.executionTarget.sandboxGroupDesc": "在隔離環境中執行",
"heteroAgent.executionTarget.sandboxUnsupported": "{{name}} 目前僅能在本地或連接的設備上運行",
"heteroAgent.executionTarget.switchProjectTopic.content": "此主題將在 {{device}} 的專案目錄 \"{{directory}}\" 中運行。其下一回合將在那裡開始一個新的會話。",
"heteroAgent.executionTarget.switchTopic.content": "此主題已在 {{name}} 上運行,其工作目錄和代理會話已保留。切換後,其下一回合將在新環境中啟動一個新會話。新主題也將使用此選擇。",
diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.ts
index 77021b2acf1..32b239da5b7 100644
--- a/packages/locales/src/default/chat.ts
+++ b/packages/locales/src/default/chat.ts
@@ -981,10 +981,8 @@ export default {
'heteroAgent.executionTarget.temporarySandboxDesc':
'Discarded after use, for coding and one-off data processing',
'heteroAgent.executionTarget.workspaceGroup': 'Workspace Devices',
- 'heteroAgent.executionTarget.deviceGroupSummary': '{{online}} online · {{total}} total',
'heteroAgent.executionTarget.myDevicesGroup': 'My devices',
'heteroAgent.executionTarget.sandboxGroup': 'Sandboxes',
- 'heteroAgent.executionTarget.sandboxGroupDesc': 'Run in an isolated environment',
'heteroAgent.executionTarget.downloadDesktop': 'Get Desktop App',
'heteroAgent.executionTarget.downloadDesktopDesc': 'Run agents with access to your computer',
'heteroAgent.executionTarget.downloadDesktopTitle': 'Get the desktop app',
diff --git a/src/features/ChatInput/ControlBar/DeviceGroupSubmenu.tsx b/src/features/ChatInput/ControlBar/DeviceGroupSubmenu.tsx
index 0cc159f9d7f..b8417a4fd77 100644
--- a/src/features/ChatInput/ControlBar/DeviceGroupSubmenu.tsx
+++ b/src/features/ChatInput/ControlBar/DeviceGroupSubmenu.tsx
@@ -4,7 +4,6 @@ import type { DeviceListItem } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
import { Building2Icon, LockKeyholeIcon, MonitorSmartphoneIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
-import { useTranslation } from 'react-i18next';
import { summarizeDeviceGroup } from './deviceGroupSummary';
import GroupSubmenu from './GroupSubmenu';
@@ -29,17 +28,12 @@ interface DeviceGroupSubmenuProps {
/**
* One device group in the execution environment menu: the first level keeps a
- * single row per group — how many machines are online, and the current pick by
- * name — and the machines themselves open beside it. A growing fleet then
+ * single row per group — its title, and the current pick by name — and the machines themselves open beside it. A growing fleet then
* lengthens the submenu, not the menu the other environments live in.
*/
const DeviceGroupSubmenu = memo<DeviceGroupSubmenuProps>(
({ activeDeviceId, devices, kind, label, renderDevice }) => {
- const { t } = useTranslation('chat');
- const { activeDevice, online, presenceUnknown, total } = summarizeDeviceGroup(
- devices,
- activeDeviceId,
- );
+ const { activeDevice } = summarizeDeviceGroup(devices, activeDeviceId);
return (
<GroupSubmenu
@@ -48,13 +42,6 @@ const DeviceGroupSubmenu = memo<DeviceGroupSubmenuProps>(
icon={<Icon icon={GROUP_ICONS[kind]} size={14} />}
label={label}
testId={`device-group-${kind}`}
- desc={
- // Until presence is confirmed the count would read "0 online";
- // say it is still checking, as the device rows themselves do.
- presenceUnknown
- ? t('heteroAgent.executionTarget.presenceChecking')
- : t('heteroAgent.executionTarget.deviceGroupSummary', { online, total })
- }
>
{devices.map((d) => renderDevice(d))}
</GroupSubmenu>
diff --git a/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx b/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
index 1ab849265ca..9d7bef54aba 100644
--- a/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
+++ b/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
@@ -65,6 +65,7 @@ const DeviceOptionRow = ({
onKeyDown={(event) => handleDeviceRowKeyDown(event, { disabled: !selectable, onSelect })}
>
<OptionRow
+ compact
active={active}
disabled={!selectable}
icon={<ExecutionTargetIcon devicePlatform={device.platform} target={'device'} />}
diff --git a/src/features/ChatInput/ControlBar/GroupSubmenu.tsx b/src/features/ChatInput/ControlBar/GroupSubmenu.tsx
index 0f343194e40..5ac0d9fad2c 100644
--- a/src/features/ChatInput/ControlBar/GroupSubmenu.tsx
+++ b/src/features/ChatInput/ControlBar/GroupSubmenu.tsx
@@ -53,7 +53,7 @@ const GroupSubmenu = memo<GroupSubmenuProps>(
styles={SUBMENU_STYLES}
trigger={['hover', 'click']}
content={
- <Flexbox gap={2} style={{ maxWidth: 320, minWidth: 280 }}>
+ <Flexbox gap={2} style={{ maxWidth: 280, minWidth: 240 }}>
<SubmenuHeader title={label} />
<div {...stylex.props(styles.list)}>{children}</div>
</Flexbox>
@@ -62,6 +62,7 @@ const GroupSubmenu = memo<GroupSubmenuProps>(
<div data-testid={testId}>
<OptionRow
arrow
+ compact
active={active}
desc={desc}
hint={hint}
diff --git a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
index 810670fcb16..36033aa6d69 100644
--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
@@ -116,9 +116,9 @@ const styles = stylex.create({
downloadCard: {
cursor: 'pointer',
display: 'flex',
- gap: '10px',
+ gap: '8px',
alignItems: 'center',
- paddingBlock: '8px',
+ paddingBlock: '6px',
paddingInline: '8px',
borderRadius: cssVar.borderRadius,
textDecoration: 'none',
@@ -132,15 +132,9 @@ const styles = stylex.create({
flex: 'none',
alignItems: 'center',
justifyContent: 'center',
- width: '28px',
- height: '28px',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: cssVar.colorBorderSecondary,
- borderRadius: cssVar.borderRadius,
+ width: '16px',
+ height: '16px',
color: cssVar.colorText,
- backgroundColor: cssVar.colorBgElevated,
- backgroundImage: 'none',
},
optionMeta: { display: 'flex', flex: '1', flexDirection: 'column', gap: '1px', minWidth: '0' },
optionTitle: {
@@ -687,7 +681,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
);
const content = (
- <Flexbox style={{ maxWidth: 320, minWidth: 280 }}>
+ <Flexbox style={{ maxWidth: 280, minWidth: 240 }}>
<div {...stylex.props(styles.header)}>
<Flexbox horizontal align={'center'} gap={4}>
<span {...stylex.props(styles.headerTitle)}>
@@ -733,8 +727,8 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
plain row stays only while it is still the active pick. */}
{showLocalRow ? (
<OptionRow
+ compact
active={isActive('local')}
- desc={t('heteroAgent.executionTarget.localDesc')}
icon={<ExecutionTargetIcon target={'local'} />}
label={t('heteroAgent.executionTarget.local')}
tags={tagsFor(isActive('local'))}
@@ -747,13 +741,13 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
{thisComputerDevices.map((d) => renderDeviceRow(d, { thisComputer: !showLocalRow }))}
{/* The first level is one plain list with no section labels: the choices
that run nowhere in particular (no device, auto), then a row per group
- — sandboxes, then devices — whose choices open beside it. Every row
- keeps a one-line description, so the list reads evenly. A
+ — sandboxes, then devices — whose choices open beside it. The rows
+ are titles only; what each choice means is said one level down. A
heterogeneous agent has neither of the first two rows. */}
{isHetero ? null : (
<OptionRow
+ compact
active={isActive('none')}
- desc={t('heteroAgent.executionTarget.noneDesc')}
icon={<ExecutionTargetIcon target={'none'} />}
label={t('heteroAgent.executionTarget.none')}
onClick={() => void handleSelect('none')}
@@ -761,8 +755,8 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
)}
{isHetero ? null : (
<OptionRow
+ compact
active={isActive('auto')}
- desc={t('heteroAgent.executionTarget.autoDesc')}
icon={<ExecutionTargetIcon target={'auto'} />}
label={t('heteroAgent.executionTarget.auto')}
onClick={() => void handleSelect('auto')}
@@ -770,7 +764,6 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
)}
<GroupSubmenu
active={!!activeSandboxLabel}
- desc={t('heteroAgent.executionTarget.sandboxGroupDesc')}
hint={activeSandboxLabel}
icon={<Icon icon={BoxesIcon} size={14} />}
label={t('heteroAgent.executionTarget.sandboxGroup')}
@@ -784,6 +777,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
user with no way to find out why. */}
{isDesktop ? (
<OptionRow
+ compact
active={isLocalSandboxActive}
disabled={!canUseLocalSandbox}
icon={<Icon icon={ShieldCheckIcon} size={14} />}
@@ -838,6 +832,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
left, described as it always was. */}
{offersPersistentSandbox ? (
<OptionRow
+ compact
active={isPersistentSandboxActive}
desc={t('heteroAgent.executionTarget.persistentSandboxDesc')}
icon={<Icon icon={HardDriveIcon} size={14} />}
@@ -860,6 +855,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {
/>
) : null}
<OptionRow
+ compact
active={isTemporarySandboxActive}
disabled={!supportsSandbox}
icon={<ExecutionTargetIcon target={'sandbox'} />}
diff --git a/src/features/ChatInput/ControlBar/OptionRow.tsx b/src/features/ChatInput/ControlBar/OptionRow.tsx
index 6de7111582a..4d8a1ccb015 100644
--- a/src/features/ChatInput/ControlBar/OptionRow.tsx
+++ b/src/features/ChatInput/ControlBar/OptionRow.tsx
@@ -56,6 +56,15 @@ const styles = stylex.create({
backgroundImage: { 'default': null, ':hover': 'none' },
},
optionCompact: { gap: '8px', paddingBlock: '6px' },
+ /* A dense row keeps a plain-text description to one line; the full text
+ stays on hover. A composed description (status plus an action) keeps
+ its own flex layout. */
+ descSingleLine: {
+ display: 'block',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ },
/* Dims the row's own content rather than the row. Its trailing action is the
way OUT of that state — dimming it would read as "also unavailable" — and
opacity on the row cannot be undone by a child, so the action is left out
@@ -124,7 +133,10 @@ export interface OptionRowProps {
arrow?: boolean;
/** A ready-made mark beside the title, shown as it is rather than in a neutral pill. */
badge?: ReactNode;
- /** A dense row for long lists: no icon frame, so its icon lines up with the menu's text. */
+ /**
+ * A dense row: no icon frame, so its icon lines up with the menu's text, and a
+ * plain-text description kept to one line.
+ */
compact?: boolean;
desc?: ReactNode;
disabled?: boolean;
@@ -194,7 +206,15 @@ const OptionRow = memo<OptionRowProps>(
</span>
))}
</Flexbox>
- {desc ? <div {...stylex.props(styles.desc)}>{desc}</div> : null}
+ {desc ? (
+ typeof desc === 'string' && compact ? (
+ <div title={desc} {...stylex.props(styles.desc, styles.descSingleLine)}>
+ {desc}
+ </div>
+ ) : (
+ <div {...stylex.props(styles.desc)}>{desc}</div>
+ )
+ ) : null}
</div>
{extra ? (
<div
diff --git a/src/features/ChatInput/ControlBar/__tests__/DeviceGroupSubmenu.test.tsx b/src/features/ChatInput/ControlBar/__tests__/DeviceGroupSubmenu.test.tsx
index 463dbf96199..8a1648e978f 100644
--- a/src/features/ChatInput/ControlBar/__tests__/DeviceGroupSubmenu.test.tsx
+++ b/src/features/ChatInput/ControlBar/__tests__/DeviceGroupSubmenu.test.tsx
@@ -40,7 +40,7 @@ const devices = [
];
describe('DeviceGroupSubmenu', () => {
- it('keeps one first-level row with the online count, and lists the devices in the submenu', () => {
+ it('keeps one first-level row by title only, and lists the devices in the submenu', () => {
render(
<DeviceGroupSubmenu
devices={devices}
@@ -52,8 +52,7 @@ describe('DeviceGroupSubmenu', () => {
const groupRow = screen.getByTestId('device-group-private');
expect(groupRow.textContent).toContain('Private Devices');
- expect(groupRow.textContent).toContain('"online":2');
- expect(groupRow.textContent).toContain('"total":3');
+ expect(groupRow.textContent).toBe('Private Devices');
expect(groupRow.textContent).not.toContain('row:');
const submenu = screen.getByTestId('submenu');
@@ -76,21 +75,6 @@ describe('DeviceGroupSubmenu', () => {
expect(screen.getByTestId('device-group-private').textContent).toContain('Hetzner 8C64G');
});
- it('says presence is still being checked instead of counting cached rows as offline', () => {
- render(
- <DeviceGroupSubmenu
- devices={[{ ...device('cached', false), onlineUnknown: true } as DeviceListItem]}
- kind={'devices'}
- label={'Devices'}
- renderDevice={(d) => <div key={d.deviceId}>row:{d.deviceId}</div>}
- />,
- );
-
- const groupRow = screen.getByTestId('device-group-devices');
- expect(groupRow.textContent).toContain('heteroAgent.executionTarget.presenceChecking');
- expect(groupRow.textContent).not.toContain('"online":0');
- });
-
it('hands a device click to the row the caller renders', () => {
const onSelect = vi.fn();
render(
diff --git a/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx b/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx
index 4177302fabf..df848666630 100644
--- a/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx
+++ b/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx
@@ -236,14 +236,14 @@ describe('HeteroDeviceSwitcher — first level', () => {
expect(screen.queryByText('heteroAgent.executionTarget.devicesGroup')).toBeNull();
});
- it('keeps a description line under no device, auto and the sandbox group', () => {
+ it('shows the first-level rows by title only', () => {
render(<HeteroDeviceSwitcher agentId="agent-1" />);
- expect(screen.getByText('heteroAgent.executionTarget.noneDesc')).toBeTruthy();
- expect(screen.getByText('heteroAgent.executionTarget.autoDesc')).toBeTruthy();
- expect(screen.getByTestId('sandbox-group').textContent).toContain(
- 'heteroAgent.executionTarget.sandboxGroupDesc',
- );
+ expect(screen.getByText('heteroAgent.executionTarget.none')).toBeTruthy();
+ expect(screen.getByText('heteroAgent.executionTarget.auto')).toBeTruthy();
+ expect(screen.queryByText('heteroAgent.executionTarget.noneDesc')).toBeNull();
+ expect(screen.queryByText('heteroAgent.executionTarget.autoDesc')).toBeNull();
+ expect(screen.getByTestId('sandbox-group').textContent).not.toContain('Desc');
});
it('puts the sandboxes in a submenu after auto and before the device groups', () => {