🤯 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(chat-input): give the sandboxes their own section in the execution environment (#23212)
Rdmclin2c2c849b43d9b
diff --git a/locales/ar/chat.json b/locales/ar/chat.jsonindex bf08496c4f5..3b4e46d91df 100644--- a/locales/ar/chat.json+++ b/locales/ar/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "تعذر إعادة الاتصال بهذا الجهاز. تأكد من تشغيل تطبيق سطح المكتب، ثم حاول مرة أخرى.","heteroAgent.executionTarget.sandbox": "بيئة سحابية مؤقتة","heteroAgent.executionTarget.sandboxDesc": "تشغيل في بيئة سحابية مؤقتة",+ "heteroAgent.executionTarget.sandboxGroup": "بيئات الحماية","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.jsonindex d14a972245e..fd93dbee0d0 100644--- a/locales/bg-BG/chat.json+++ b/locales/bg-BG/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "Неуспешно свързване на това устройство. Уверете се, че настолното приложение работи, след това опитайте отново.","heteroAgent.executionTarget.sandbox": "Облачен пясъчник","heteroAgent.executionTarget.sandboxDesc": "Изпълнява се в временен облачен пясъчник",+ "heteroAgent.executionTarget.sandboxGroup": "Пясъчници","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.jsonindex 0867b9ed8b4..b53385f8349 100644--- a/locales/de-DE/chat.json+++ b/locales/de-DE/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "Dieses Gerät konnte nicht erneut verbunden werden. Stellen Sie sicher, dass die Desktop-App läuft, und versuchen Sie es dann erneut.","heteroAgent.executionTarget.sandbox": "Cloud-Sandbox","heteroAgent.executionTarget.sandboxDesc": "In einer temporären Cloud-Sandbox ausführen",+ "heteroAgent.executionTarget.sandboxGroup": "Sandboxes","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.jsonindex aea254c37c5..f7bd049987f 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -1588,6 +1588,7 @@"heteroAgent.executionTarget.reconnectFailed": "Could not reconnect this device. Make sure the desktop app is running, then try again.","heteroAgent.executionTarget.sandbox": "Cloud Sandbox","heteroAgent.executionTarget.sandboxDesc": "Runs in the cloud, no machine needed",+ "heteroAgent.executionTarget.sandboxGroup": "Sandboxes","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.jsonindex 9db4198beac..62331c2f337 100644--- a/locales/es-ES/chat.json+++ b/locales/es-ES/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "No se pudo reconectar este dispositivo. Asegúrate de que la aplicación de escritorio esté funcionando, luego inténtalo de nuevo.","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.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.jsonindex 30687315e3e..c1dac031f38 100644--- a/locales/fa-IR/chat.json+++ b/locales/fa-IR/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "اتصال مجدد این دستگاه امکانپذیر نبود. مطمئن شوید که برنامه دسکتاپ در حال اجرا است، سپس دوباره تلاش کنید.","heteroAgent.executionTarget.sandbox": "محیط آزمایشی ابری","heteroAgent.executionTarget.sandboxDesc": "در یک محیط آزمایشی ابری موقت اجرا شود",+ "heteroAgent.executionTarget.sandboxGroup": "سندباکسها","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.jsonindex 7f465a6f8b0..1d58b0fffbf 100644--- a/locales/fr-FR/chat.json+++ b/locales/fr-FR/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "Impossible de reconnecter cet appareil. Assurez-vous que l'application de bureau est en cours d'exécution, puis réessayez.","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.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.jsonindex 96aeabb1910..54df6210f86 100644--- a/locales/it-IT/chat.json+++ b/locales/it-IT/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "Impossibile riconnettere questo dispositivo. Assicurati che l'app desktop sia in esecuzione, quindi riprova.","heteroAgent.executionTarget.sandbox": "Sandbox cloud","heteroAgent.executionTarget.sandboxDesc": "Esegui in un sandbox cloud temporaneo",+ "heteroAgent.executionTarget.sandboxGroup": "Sandbox","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.jsonindex c7ab7009944..854a593b1cf 100644--- a/locales/ja-JP/chat.json+++ b/locales/ja-JP/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "このデバイスに再接続できませんでした。デスクトップアプリが実行中であることを確認し、再試行してください。","heteroAgent.executionTarget.sandbox": "クラウドサンドボックス","heteroAgent.executionTarget.sandboxDesc": "一時的なクラウドサンドボックスで実行",+ "heteroAgent.executionTarget.sandboxGroup": "サンドボックス","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.jsonindex b54dbf6a420..1f2f78fd723 100644--- a/locales/ko-KR/chat.json+++ b/locales/ko-KR/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "이 장치를 다시 연결할 수 없습니다. 데스크톱 앱이 실행 중인지 확인한 후 다시 시도하세요.","heteroAgent.executionTarget.sandbox": "클라우드 샌드박스","heteroAgent.executionTarget.sandboxDesc": "임시 클라우드 샌드박스에서 실행",+ "heteroAgent.executionTarget.sandboxGroup": "샌드박스","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.jsonindex d24452e171d..c4b7b6ffd52 100644--- a/locales/nl-NL/chat.json+++ b/locales/nl-NL/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "Kan dit apparaat niet opnieuw verbinden. Zorg ervoor dat de desktop-app actief is en probeer het opnieuw.","heteroAgent.executionTarget.sandbox": "Cloud-sandbox","heteroAgent.executionTarget.sandboxDesc": "Voer uit in een tijdelijke cloud-sandbox",+ "heteroAgent.executionTarget.sandboxGroup": "Sandboxes","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.jsonindex b315d55fcb7..16ec0ad1001 100644--- a/locales/pl-PL/chat.json+++ b/locales/pl-PL/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "Nie udało się ponownie połączyć tego urządzenia. Upewnij się, że aplikacja na komputerze działa, a następnie spróbuj ponownie.","heteroAgent.executionTarget.sandbox": "Chmurowa piaskownica","heteroAgent.executionTarget.sandboxDesc": "Uruchom w efemerycznej chmurowej piaskownicy",+ "heteroAgent.executionTarget.sandboxGroup": "Piaskownice","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.jsonindex 1a77d5c87c7..0d43c99ceb5 100644--- a/locales/pt-BR/chat.json+++ b/locales/pt-BR/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "Não foi possível reconectar este dispositivo. Certifique-se de que o aplicativo de desktop está em execução e tente novamente.","heteroAgent.executionTarget.sandbox": "Sandbox na nuvem","heteroAgent.executionTarget.sandboxDesc": "Executar em um sandbox efêmero na nuvem",+ "heteroAgent.executionTarget.sandboxGroup": "Sandboxes","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.jsonindex 1a63370a0d3..9bb5a370adf 100644--- a/locales/ru-RU/chat.json+++ b/locales/ru-RU/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "Не удалось переподключить это устройство. Убедитесь, что настольное приложение запущено, затем попробуйте снова.","heteroAgent.executionTarget.sandbox": "Облачная песочница","heteroAgent.executionTarget.sandboxDesc": "Запуск в временной облачной песочнице",+ "heteroAgent.executionTarget.sandboxGroup": "Песочницы","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.jsonindex 372a6729425..f2dd0ba2654 100644--- a/locales/tr-TR/chat.json+++ b/locales/tr-TR/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "Bu cihaza yeniden bağlanılamadı. Masaüstü uygulamasının çalıştığından emin olun ve tekrar deneyin.","heteroAgent.executionTarget.sandbox": "Bulut sandbox","heteroAgent.executionTarget.sandboxDesc": "Geçici bir bulut sandbox'ında çalıştır",+ "heteroAgent.executionTarget.sandboxGroup": "Sandbox'lar","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.jsonindex 2b9089e54d7..8fb0054f8a9 100644--- a/locales/vi-VN/chat.json+++ b/locales/vi-VN/chat.json@@ -1543,6 +1543,7 @@"heteroAgent.executionTarget.reconnectFailed": "Không thể kết nối lại thiết bị này. Hãy đảm bảo ứng dụng trên máy tính đang chạy, sau đó thử lại.","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.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.jsonindex 82cd43c7373..1bd9bb13073 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -1588,6 +1588,7 @@"heteroAgent.executionTarget.reconnectFailed": "无法重新连接此设备。请确认桌面端正在运行,然后重试。","heteroAgent.executionTarget.sandbox": "云端沙箱","heteroAgent.executionTarget.sandboxDesc": "云端运行,不占用机器",+ "heteroAgent.executionTarget.sandboxGroup": "沙箱","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.jsonindex 524208acd56..827ef4344e6 100644--- a/locales/zh-TW/chat.json+++ b/locales/zh-TW/chat.json@@ -1545,6 +1545,7 @@"heteroAgent.executionTarget.reconnectFailed": "無法重新連接此裝置。請確保桌面應用程式正在運行,然後再試一次。","heteroAgent.executionTarget.sandbox": "雲端沙盒","heteroAgent.executionTarget.sandboxDesc": "在臨時雲端沙盒中運行",+ "heteroAgent.executionTarget.sandboxGroup": "沙盒","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.tsindex 33eeffc49a0..3be1b39d740 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -985,6 +985,7 @@ export default {'heteroAgent.executionTarget.deviceGroupSummary': '{{online}} online · {{total}} total','heteroAgent.executionTarget.devicesGroup': 'Devices','heteroAgent.executionTarget.myDevicesGroup': 'My devices',+ 'heteroAgent.executionTarget.sandboxGroup': 'Sandboxes','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/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsxindex 09c85f6e20b..e154f7a30eb 100644--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx@@ -637,6 +637,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {const activeDeviceId = executionTarget === 'device' ? boundDeviceId : undefined;const hasDeviceSection =privateDevices.length + workspaceDevices.length + personalOnlyDevices.length > 0;+ const showSectionLabels = isDesktop || hasDeviceSection;const renderDeviceRow = (d: DeviceListItem, { thisComputer = false } = {}) => (<DeviceOptionRowactive={isActive('device', d.deviceId)}@@ -710,11 +711,13 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {`local` is still the pick) it keeps its machine name, so two rowsnever both read "This computer". */}{thisComputerDevices.map((d) => renderDeviceRow(d, { thisComputer: !showLocalRow }))}- {/* Desktop always splits This computer from Built-in. On web Built-in is- labelled once a Devices section follows: with Persistent and Cloud- Sandbox side by side, the device directories below would otherwise- read as a third sandbox. */}- {isDesktop || hasDeviceSection ? (+ {/* Built-in keeps the two choices that pick no sandbox (no device, auto);+ the sandboxes get a section of their own below. Desktop always labels+ the sections, as This computer sits above them. On web they are+ labelled once a Devices section follows, so the device directories+ don't read as one more sandbox. A heterogeneous agent has neither+ built-in row, so only the Sandboxes label is left. */}+ {showSectionLabels && !isHetero ? (<div {...stylex.props(styles.groupLabel)}>{t('heteroAgent.executionTarget.builtinGroup')}</div>@@ -737,6 +740,11 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {onClick={() => void handleSelect('auto')}/>)}+ {showSectionLabels ? (+ <div {...stylex.props(styles.groupLabel)}>+ {t('heteroAgent.executionTarget.sandboxGroup')}+ </div>+ ) : null}{/* This machine, fenced: writes confined to the workingdirectory, network denied unless the switch opens the registryallowlist. Shown even when the host can't provide a sandbox — disabled,diff --git a/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx b/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsxindex 31ccb0a64eb..6b1f91141eb 100644--- a/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx+++ b/src/features/ChatInput/ControlBar/__tests__/HeteroDeviceSwitcher.sandboxMode.test.tsx@@ -5,6 +5,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';import HeteroDeviceSwitcher from '../HeteroDeviceSwitcher';const state = vi.hoisted(() => ({+ devices: [] as object[],driveStatus: 'ready' as 'hidden' | 'loading' | 'ready' | 'upgrade',openUpsell: vi.fn(),persistent: false,@@ -70,8 +71,9 @@ vi.mock('@/store/agent', () => ({useAgentStore: (selector: (s: object) => unknown) => selector({ agentMap: {} }),}));vi.mock('@/store/device', () => ({+ isDevicePresenceUnknown: () => false,useDeviceList: () => ({- data: [],+ data: state.devices,error: undefined,isConfirmed: true,isValidating: false,@@ -83,6 +85,10 @@ vi.mock('@/store/electron', () => ({selector({ gatewayDeviceInfo: undefined, useFetchGatewayDeviceInfo: () => () => undefined }),}));vi.mock('../../hooks/useTopicId', () => ({ useTopicId: () => 'topic-1' }));+// A device group is one row here; its submenu has tests of its own.+vi.mock('../DeviceGroupSubmenu', () => ({+ default: ({ label }: { label: string }) => <div>{label}</div>,+}));vi.mock('../useSandboxNetworkToggle', () => ({ useSandboxNetworkToggle: () => vi.fn() }));vi.mock('../useTopicAwareTargetSelect', () => ({useTopicAwareTargetSelect: () => ({ selectTarget: state.selectTarget, topicDeviceId: undefined }),@@ -101,6 +107,7 @@ const TEMPORARY = 'heteroAgent.executionTarget.temporarySandbox';const PERSISTENT = 'heteroAgent.executionTarget.persistentSandbox';beforeEach(() => {+ state.devices = [];state.driveStatus = 'ready';state.persistent = false;state.openUpsell.mockReset();@@ -201,3 +208,42 @@ describe('HeteroDeviceSwitcher — persistent sandbox', () => {expect(screen.queryByText(PERSISTENT)).toBeNull();});});++// The sandboxes are a section of their own, apart from the built-in choices+// that run nowhere in particular (no device, auto).+describe('HeteroDeviceSwitcher — sections', () => {+ const BUILTIN = 'heteroAgent.executionTarget.builtinGroup';+ const SANDBOXES = 'heteroAgent.executionTarget.sandboxGroup';+ const follows = (a: Element, b: Element) =>+ !!(a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING);++ it('puts the sandboxes under their own label, after no device and auto', () => {+ state.devices = [+ {+ channels: [],+ deviceId: 'd1',+ hostname: 'box',+ online: true,+ platform: 'linux',+ scope: 'personal',+ },+ ];+ render(<HeteroDeviceSwitcher agentId="agent-1" />);++ const builtin = screen.getByText(BUILTIN);+ const auto = screen.getByText('heteroAgent.executionTarget.autoDesc');+ const sandboxes = screen.getByText(SANDBOXES);+ const persistent = screen.getByText('heteroAgent.executionTarget.persistentSandboxDesc');++ expect(follows(builtin, auto)).toBe(true);+ expect(follows(auto, sandboxes)).toBe(true);+ expect(follows(sandboxes, persistent)).toBe(true);+ });++ it('leaves the sections unlabelled on web without devices', () => {+ render(<HeteroDeviceSwitcher agentId="agent-1" />);++ expect(screen.queryByText(BUILTIN)).toBeNull();+ expect(screen.queryByText(SANDBOXES)).toBeNull();+ });+});