🤯 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
♻️ refactor(docs): move sandbox storage from Settings into Docs as Sandbox Storage (#22170)
Rdmclin2105d4aff313f
diff --git a/locales/ar/setting.json b/locales/ar/setting.jsonindex ff4532e4c29..ec189c2e5f5 100644--- a/locales/ar/setting.json+++ b/locales/ar/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "التخزين الشخصي","drive.tabs.public": "التخزين العام","drive.usage.enableOverage": "تشغيل الدفع حسب الاستخدام",- "drive.usage.manage": "إدارة في التخزين","drive.usage.memberUnmeasured": "غير مقاس","drive.usage.membersHint": "الاستخدام فقط — تبقى المحتويات خاصة","drive.usage.membersTitle": "التخزين الشخصي للأعضاء",@@ -1894,7 +1893,6 @@"tab.connector": "الموصلات","tab.creds": "بيانات الاعتماد","tab.devices": "الأجهزة",- "tab.drive": "التخزين","tab.environments": "البيئات","tab.experiment": "تجريبي","tab.hotkey": "اختصارات لوحة المفاتيح",diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.jsonindex 94990c4bc36..bcc673e5900 100644--- a/locales/bg-BG/setting.json+++ b/locales/bg-BG/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Личен диск","drive.tabs.public": "Публичен диск","drive.usage.enableOverage": "Включете плащане според използването",- "drive.usage.manage": "Управление в Хранилище","drive.usage.memberUnmeasured": "Не е измерено","drive.usage.membersHint": "Само използване — съдържанието остава частно","drive.usage.membersTitle": "Лични дискове на членовете",@@ -1894,7 +1893,6 @@"tab.connector": "Конектори","tab.creds": "Идентификатори","tab.devices": "Устройства",- "tab.drive": "Хранилище","tab.environments": "Среда","tab.experiment": "Експеримент","tab.hotkey": "Клавишни комбинации",diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.jsonindex 176f809eb19..b4cd2d2b054 100644--- a/locales/de-DE/setting.json+++ b/locales/de-DE/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Persönliches Laufwerk","drive.tabs.public": "Öffentliches Laufwerk","drive.usage.enableOverage": "Pay-as-you-go aktivieren",- "drive.usage.manage": "Im Speicher verwalten","drive.usage.memberUnmeasured": "Nicht gemessen","drive.usage.membersHint": "Nur Nutzung — Inhalte bleiben privat","drive.usage.membersTitle": "Persönliche Laufwerke der Mitglieder",@@ -1894,7 +1893,6 @@"tab.connector": "Konnektoren","tab.creds": "Berechtigungen","tab.devices": "Geräte",- "tab.drive": "Speicher","tab.environments": "Umgebungen","tab.experiment": "Experiment","tab.hotkey": "Tastenkombinationen",diff --git a/locales/en-US/electron.json b/locales/en-US/electron.jsonindex 6b5df55e359..bd18849e80d 100644--- a/locales/en-US/electron.json+++ b/locales/en-US/electron.json@@ -61,6 +61,7 @@"navigation.resourceFiles": "Files","navigation.resourceImages": "Images","navigation.resourcePages": "Pages",+ "navigation.resourceSandboxStorage": "Sandbox Storage","navigation.resourceVideos": "Videos","navigation.resourceWorks": "Works","navigation.resources": "Docs",diff --git a/locales/en-US/file.json b/locales/en-US/file.jsonindex 186c0e7b550..163c6d80210 100644--- a/locales/en-US/file.json+++ b/locales/en-US/file.json@@ -77,6 +77,7 @@"docs.section.drive": "Drive","docs.section.home": "Home","docs.section.library": "Knowledge Bases",+ "docs.section.sandboxStorage": "Sandbox Storage","docs.section.works": "Works","docs.sectionView.emptyFiltered": "No pages match this filter","docs.sectionView.filter": "Show",diff --git a/locales/en-US/setting.json b/locales/en-US/setting.jsonindex eb493a7dba3..6db27d150f1 100644--- a/locales/en-US/setting.json+++ b/locales/en-US/setting.json@@ -641,7 +641,7 @@"drive.tabs.personal": "Personal drive","drive.tabs.public": "Public drive","drive.usage.enableOverage": "Turn on pay-as-you-go",- "drive.usage.manage": "Manage in Storage",+ "drive.usage.manage": "Manage in Sandbox Storage","drive.usage.memberUnmeasured": "Not measured","drive.usage.membersHint": "Usage only — contents stay private","drive.usage.membersTitle": "Members' personal drives",@@ -1986,7 +1986,6 @@"tab.connector": "Connectors","tab.creds": "Credentials","tab.devices": "Devices",- "tab.drive": "Storage","tab.environments": "Environments","tab.experiment": "Experiment","tab.hotkey": "Hotkeys",diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.jsonindex 0724c4e60da..cd2ce610e75 100644--- a/locales/es-ES/setting.json+++ b/locales/es-ES/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Almacenamiento personal","drive.tabs.public": "Almacenamiento público","drive.usage.enableOverage": "Activar pago por uso",- "drive.usage.manage": "Gestionar en Almacenamiento","drive.usage.memberUnmeasured": "No medido","drive.usage.membersHint": "Solo uso — el contenido permanece privado","drive.usage.membersTitle": "Almacenamientos personales de los miembros",@@ -1894,7 +1893,6 @@"tab.connector": "Conectores","tab.creds": "Credenciales","tab.devices": "Dispositivos",- "tab.drive": "Almacenamiento","tab.environments": "Entornos","tab.experiment": "Experimentos","tab.hotkey": "Atajos de Teclado",diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.jsonindex 04d406d5847..8d2cdff300b 100644--- a/locales/fa-IR/setting.json+++ b/locales/fa-IR/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "درایو شخصی","drive.tabs.public": "درایو عمومی","drive.usage.enableOverage": "فعال کردن پرداخت به ازای استفاده",- "drive.usage.manage": "مدیریت در ذخیرهسازی","drive.usage.memberUnmeasured": "اندازهگیری نشده","drive.usage.membersHint": "فقط استفاده — محتوا خصوصی باقی میماند","drive.usage.membersTitle": "درایوهای شخصی اعضا",@@ -1894,7 +1893,6 @@"tab.connector": "اتصالدهندهها","tab.creds": "اعتبارنامهها","tab.devices": "دستگاهها",- "tab.drive": "ذخیرهسازی","tab.environments": "محیطها","tab.experiment": "آزمایش","tab.hotkey": "کلیدهای میانبر",diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.jsonindex 5ab647ea0cc..777ed06389e 100644--- a/locales/fr-FR/setting.json+++ b/locales/fr-FR/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Drive personnel","drive.tabs.public": "Drive public","drive.usage.enableOverage": "Activer le paiement à l'utilisation",- "drive.usage.manage": "Gérer dans le stockage","drive.usage.memberUnmeasured": "Non mesuré","drive.usage.membersHint": "Utilisation uniquement — le contenu reste privé","drive.usage.membersTitle": "Drives personnels des membres",@@ -1894,7 +1893,6 @@"tab.connector": "Connecteurs","tab.creds": "Informations d'identification","tab.devices": "Appareils",- "tab.drive": "Stockage","tab.environments": "Environnements","tab.experiment": "Expérimental","tab.hotkey": "Raccourcis clavier",diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.jsonindex 24659bf3516..e8dc63035ef 100644--- a/locales/it-IT/setting.json+++ b/locales/it-IT/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Unità personale","drive.tabs.public": "Unità pubblica","drive.usage.enableOverage": "Attiva il pagamento a consumo",- "drive.usage.manage": "Gestisci in Archiviazione","drive.usage.memberUnmeasured": "Non misurato","drive.usage.membersHint": "Solo utilizzo — i contenuti rimangono privati","drive.usage.membersTitle": "Unità personali dei membri",@@ -1894,7 +1893,6 @@"tab.connector": "Connettori","tab.creds": "Credenziali","tab.devices": "Dispositivi",- "tab.drive": "Archiviazione","tab.environments": "Ambienti","tab.experiment": "Esperimenti","tab.hotkey": "Tasti Rapidi",diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.jsonindex 072585c73ff..0ba0a751c56 100644--- a/locales/ja-JP/setting.json+++ b/locales/ja-JP/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "個人ドライブ","drive.tabs.public": "パブリックドライブ","drive.usage.enableOverage": "従量課金を有効にする",- "drive.usage.manage": "ストレージで管理","drive.usage.memberUnmeasured": "未計測","drive.usage.membersHint": "使用量のみ — 内容は非公開のまま","drive.usage.membersTitle": "メンバーの個人ドライブ",@@ -1894,7 +1893,6 @@"tab.connector": "コネクタ","tab.creds": "資格情報","tab.devices": "デバイス",- "tab.drive": "ストレージ","tab.environments": "環境","tab.experiment": "実験","tab.hotkey": "ショートカットキー",diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.jsonindex 3d4502a8159..87a8da89240 100644--- a/locales/ko-KR/setting.json+++ b/locales/ko-KR/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "개인 드라이브","drive.tabs.public": "공용 드라이브","drive.usage.enableOverage": "종량제 사용 설정",- "drive.usage.manage": "저장소 관리","drive.usage.memberUnmeasured": "측정되지 않음","drive.usage.membersHint": "용량만 표시 — 내용은 비공개로 유지","drive.usage.membersTitle": "멤버의 개인 드라이브",@@ -1894,7 +1893,6 @@"tab.connector": "커넥터","tab.creds": "자격 증명","tab.devices": "장치",- "tab.drive": "저장소","tab.environments": "환경","tab.experiment": "실험","tab.hotkey": "단축키",diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.jsonindex a9ea79d38d0..abd30990a67 100644--- a/locales/nl-NL/setting.json+++ b/locales/nl-NL/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Persoonlijke schijf","drive.tabs.public": "Openbare schijf","drive.usage.enableOverage": "Betaal-per-gebruik inschakelen",- "drive.usage.manage": "Beheren in Opslag","drive.usage.memberUnmeasured": "Niet gemeten","drive.usage.membersHint": "Alleen gebruik — inhoud blijft privé","drive.usage.membersTitle": "Persoonlijke schijven van leden",@@ -1894,7 +1893,6 @@"tab.connector": "Connectors","tab.creds": "Referenties","tab.devices": "Apparaten",- "tab.drive": "Opslag","tab.environments": "Omgevingen","tab.experiment": "Experiment","tab.hotkey": "Sneltoetsen",diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.jsonindex e78bea868e1..286b62f5ee3 100644--- a/locales/pl-PL/setting.json+++ b/locales/pl-PL/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Osobisty dysk","drive.tabs.public": "Publiczny dysk","drive.usage.enableOverage": "Włącz płatność za nadmiar",- "drive.usage.manage": "Zarządzaj w Magazynie","drive.usage.memberUnmeasured": "Niezmierzone","drive.usage.membersHint": "Tylko użycie — zawartość pozostaje prywatna","drive.usage.membersTitle": "Osobiste dyski członków",@@ -1894,7 +1893,6 @@"tab.connector": "Konektory","tab.creds": "Poświadczenia","tab.devices": "Urządzenia",- "tab.drive": "Magazyn","tab.environments": "Środowiska","tab.experiment": "Eksperyment","tab.hotkey": "Skróty klawiszowe",diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.jsonindex 7fce71bf884..17de0c3e8ea 100644--- a/locales/pt-BR/setting.json+++ b/locales/pt-BR/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Drive pessoal","drive.tabs.public": "Drive público","drive.usage.enableOverage": "Ativar pagamento conforme uso",- "drive.usage.manage": "Gerenciar em Armazenamento","drive.usage.memberUnmeasured": "Não medido","drive.usage.membersHint": "Apenas uso — conteúdos permanecem privados","drive.usage.membersTitle": "Drives pessoais dos membros",@@ -1894,7 +1893,6 @@"tab.connector": "Conectores","tab.creds": "Credenciais","tab.devices": "Dispositivos",- "tab.drive": "Armazenamento","tab.environments": "Ambientes","tab.experiment": "Experimentos","tab.hotkey": "Atalhos de Teclado",diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.jsonindex 4e242a5e275..53233003c96 100644--- a/locales/ru-RU/setting.json+++ b/locales/ru-RU/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Личный диск","drive.tabs.public": "Общий диск","drive.usage.enableOverage": "Включить оплату по мере использования",- "drive.usage.manage": "Управление в Хранилище","drive.usage.memberUnmeasured": "Не измерено","drive.usage.membersHint": "Только использование — содержимое остается приватным","drive.usage.membersTitle": "Личные диски участников",@@ -1894,7 +1893,6 @@"tab.connector": "Коннекторы","tab.creds": "Учетные данные","tab.devices": "Устройства",- "tab.drive": "Хранилище","tab.environments": "Среды","tab.experiment": "Эксперимент","tab.hotkey": "Горячие клавиши",diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.jsonindex 7f17f932808..ec9cfd02c9d 100644--- a/locales/tr-TR/setting.json+++ b/locales/tr-TR/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Kişisel sürücü","drive.tabs.public": "Genel sürücü","drive.usage.enableOverage": "Kullandıkça ödeyi etkinleştir",- "drive.usage.manage": "Depolamada yönet","drive.usage.memberUnmeasured": "Ölçülmedi","drive.usage.membersHint": "Yalnızca kullanım — içerikler gizli kalır","drive.usage.membersTitle": "Üyelerin kişisel sürücüleri",@@ -1894,7 +1893,6 @@"tab.connector": "Bağlayıcılar","tab.creds": "Kimlik Bilgileri","tab.devices": "Cihazlar",- "tab.drive": "Depolama","tab.environments": "Ortamlar","tab.experiment": "Deney","tab.hotkey": "Kısayollar",diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.jsonindex d2de7936974..8ce1ecde94e 100644--- a/locales/vi-VN/setting.json+++ b/locales/vi-VN/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "Ổ đĩa cá nhân","drive.tabs.public": "Ổ đĩa công khai","drive.usage.enableOverage": "Bật thanh toán theo mức sử dụng",- "drive.usage.manage": "Quản lý trong Bộ nhớ","drive.usage.memberUnmeasured": "Chưa được đo","drive.usage.membersHint": "Chỉ sử dụng — nội dung vẫn riêng tư","drive.usage.membersTitle": "Ổ đĩa cá nhân của các thành viên",@@ -1894,7 +1893,6 @@"tab.connector": "Trình kết nối","tab.creds": "Thông Tin Xác Thực","tab.devices": "Thiết bị",- "tab.drive": "Bộ nhớ","tab.environments": "Môi trường","tab.experiment": "Thử Nghiệm","tab.hotkey": "Phím Tắt",diff --git a/locales/zh-CN/electron.json b/locales/zh-CN/electron.jsonindex 81cb793a939..7301e2b6e72 100644--- a/locales/zh-CN/electron.json+++ b/locales/zh-CN/electron.json@@ -61,6 +61,7 @@"navigation.resourceFiles": "文件","navigation.resourceImages": "图片","navigation.resourcePages": "文稿",+ "navigation.resourceSandboxStorage": "沙箱存储","navigation.resourceVideos": "视频","navigation.resourceWorks": "产物","navigation.resources": "云文档",diff --git a/locales/zh-CN/file.json b/locales/zh-CN/file.jsonindex 33b07a21f51..aa1d98b42bb 100644--- a/locales/zh-CN/file.json+++ b/locales/zh-CN/file.json@@ -77,6 +77,7 @@"docs.section.drive": "云盘","docs.section.home": "主页","docs.section.library": "知识库",+ "docs.section.sandboxStorage": "沙箱存储","docs.section.works": "产物","docs.sectionView.emptyFiltered": "没有符合筛选条件的文档","docs.sectionView.filter": "显示",diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.jsonindex ce216a18132..55dc06dee5b 100644--- a/locales/zh-CN/setting.json+++ b/locales/zh-CN/setting.json@@ -641,7 +641,7 @@"drive.tabs.personal": "个人网盘","drive.tabs.public": "公共网盘","drive.usage.enableOverage": "开启按量计费",- "drive.usage.manage": "在存储设置中管理",+ "drive.usage.manage": "在沙箱存储中管理","drive.usage.memberUnmeasured": "未统计","drive.usage.membersHint": "只显示用量,看不到内容","drive.usage.membersTitle": "成员个人网盘",@@ -1986,7 +1986,6 @@"tab.connector": "连接器","tab.creds": "凭证管理","tab.devices": "设备",- "tab.drive": "存储","tab.environments": "环境","tab.experiment": "实验","tab.hotkey": "快捷键",diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.jsonindex b35705f1dd0..4da6716fe13 100644--- a/locales/zh-TW/setting.json+++ b/locales/zh-TW/setting.json@@ -600,7 +600,6 @@"drive.tabs.personal": "個人雲端硬碟","drive.tabs.public": "公共雲端硬碟","drive.usage.enableOverage": "啟用按量付費",- "drive.usage.manage": "在存儲中管理","drive.usage.memberUnmeasured": "未測量","drive.usage.membersHint": "僅限用量 — 內容保持私密","drive.usage.membersTitle": "成員的個人雲端硬碟",@@ -1894,7 +1893,6 @@"tab.connector": "連接器","tab.creds": "憑證","tab.devices": "裝置",- "tab.drive": "存儲","tab.environments": "環境","tab.experiment": "實驗","tab.hotkey": "快速鍵",diff --git a/packages/locales/src/default/electron.ts b/packages/locales/src/default/electron.tsindex 642f7beea7f..49ac1e9dfe6 100644--- a/packages/locales/src/default/electron.ts+++ b/packages/locales/src/default/electron.ts@@ -54,6 +54,7 @@ export default {'navigation.resourceFiles': 'Files','navigation.resourceImages': 'Images','navigation.resourcePages': 'Pages',+ 'navigation.resourceSandboxStorage': 'Sandbox Storage','navigation.resourceVideos': 'Videos','navigation.settings': 'Settings','navigation.selfLearning': 'Self-evolving',diff --git a/packages/locales/src/default/file.ts b/packages/locales/src/default/file.tsindex 83ab2edec07..ae1e2609eec 100644--- a/packages/locales/src/default/file.ts+++ b/packages/locales/src/default/file.ts@@ -87,6 +87,7 @@ export default {'docs.section.drive': 'Drive','docs.section.home': 'Home','docs.section.library': 'Knowledge Bases',+ 'docs.section.sandboxStorage': 'Sandbox Storage','docs.section.works': 'Works','docs.sectionView.emptyFiltered': 'No pages match this filter','docs.sectionView.filter': 'Show',diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.tsindex ef4c5f20a9f..2e4c4bc27a2 100644--- a/packages/locales/src/default/setting.ts+++ b/packages/locales/src/default/setting.ts@@ -4662,7 +4662,6 @@ When I am ___, I need ___'environments.files.readOnly':'Environment directories are read-only: only their own sessions write to them.','environments.files.notFound': 'That folder doesn’t exist.',- 'tab.drive': 'Storage','drive.tabs.public': 'Public drive','drive.tabs.personal': 'Personal drive','drive.scope.public': 'Visible to all members',@@ -4703,7 +4702,7 @@ When I am ___, I need ___'drive.retained.deleteConfirm.title': "Delete {{name}}'s personal drive?",'drive.retained.deleteConfirm.desc': 'Everything on it is deleted and cannot be recovered.','drive.retained.deleted': 'Drive deleted',- 'drive.usage.manage': 'Manage in Storage',+ 'drive.usage.manage': 'Manage in Sandbox Storage','drive.explorer.newFolder': 'New folder','drive.explorer.columns.name': 'Name','drive.explorer.columns.modified': 'Date modified',diff --git a/src/features/ResourceHome/Layout/Header/CategoryMenu.tsx b/src/features/ResourceHome/Layout/Header/CategoryMenu.tsxindex 55220084cf7..aa440988cdd 100644--- a/src/features/ResourceHome/Layout/Header/CategoryMenu.tsx+++ b/src/features/ResourceHome/Layout/Header/CategoryMenu.tsx@@ -7,16 +7,21 @@ import {HouseIcon,LibraryBigIcon,type LucideIcon,+ ServerIcon,} from 'lucide-react';import { memo, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { Link } from 'react-router';import { useBusinessResourceCategories } from '@/business/client/features/ResourceCategories';+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';import NavItem from '@/features/NavPanel/components/NavItem';import { useResourceManagerStore } from '@/features/ResourceManager/store';import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';+import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';import { useActiveLocation } from '@/hooks/useActiveLocation';+import { serverConfigSelectors, useServerConfigStore } from '@/store/serverConfig';import {type DocsSection,@@ -24,6 +29,7 @@ import {LIBRARY_INDEX_PATH,resolveDocsSection,RESOURCE_HOME_PATH,+ SANDBOX_STORAGE_PATH,WORKS_PATH,} from '../../paths';@@ -35,15 +41,18 @@ interface SectionItem {}/**- * The four Docs sections. Each owns a clearly separate pool — recent activity,- * every uploaded file, libraries, Agent output — instead of one mixed list of- * file types, libraries and business entities.+ * The Docs sections. Each owns a clearly separate pool — recent activity,+ * every uploaded file, the cloud sandbox's drives, libraries, Agent output —+ * instead of one mixed list of file types, libraries and business entities.*/const CategoryMenu = memo(() => {const { t } = useTranslation('file');const setMode = useResourceManagerStore((s) => s.setMode);const navigate = useWorkspaceAwareNavigate();const location = useActiveLocation();+ // The real href carries the workspace prefix too, so a middle-click or+ // "open in new tab" stays in the same workspace as a plain click.+ const workspaceSlug = useActiveWorkspaceSlug();// Business Works types keep their own routes but belong to Works.const businessCategories = useBusinessResourceCategories();const activeSection = resolveDocsSection(@@ -51,10 +60,26 @@ const CategoryMenu = memo(() => {businessCategories.map((category) => category.url),);+ // A workspace always has sandbox drives; a personal account has one only+ // where the drive service runs — a self-hosted deployment has none.+ const workspaceId = useActiveWorkspaceId();+ const enableBusinessFeatures = useServerConfigStore(serverConfigSelectors.enableBusinessFeatures);+ const showSandboxStorage = !!workspaceId || enableBusinessFeatures;+const items = useMemo<SectionItem[]>(() => [{ icon: HouseIcon, key: 'home', title: t('docs.section.home'), url: RESOURCE_HOME_PATH },{ icon: HardDriveIcon, key: 'drive', title: t('docs.section.drive'), url: DRIVE_PATH },+ ...(showSandboxStorage+ ? [+ {+ icon: ServerIcon,+ key: 'sandboxStorage' as const,+ title: t('docs.section.sandboxStorage'),+ url: SANDBOX_STORAGE_PATH,+ },+ ]+ : []),{icon: LibraryBigIcon,key: 'library',@@ -63,7 +88,7 @@ const CategoryMenu = memo(() => {},{ icon: ClipboardListIcon, key: 'works', title: t('docs.section.works'), url: WORKS_PATH },],- [t],+ [showSandboxStorage, t],);return (@@ -71,7 +96,7 @@ const CategoryMenu = memo(() => {{items.map((item) => (<Linkkey={item.key}- to={item.url}+ to={buildWorkspaceAwarePath(item.url, workspaceSlug)}onClick={(e) => {e.preventDefault();setMode('explorer');diff --git a/src/features/ResourceHome/paths.test.ts b/src/features/ResourceHome/paths.test.tsindex 0ac4ea64c2a..ad50e33d15c 100644--- a/src/features/ResourceHome/paths.test.ts+++ b/src/features/ResourceHome/paths.test.ts@@ -82,6 +82,8 @@ describe('resolveDocsSection', () => {['/resource/library', 'library'],['/resource/library/kb-1/folder', 'library'],['/resource/works', 'works'],+ ['/resource/sandbox-storage', 'sandboxStorage'],+ ['/team/resource/sandbox-storage', 'sandboxStorage'],])('maps %s to %s', (pathname, section) => {expect(resolveDocsSection(pathname)).toBe(section);});diff --git a/src/features/ResourceHome/paths.ts b/src/features/ResourceHome/paths.tsindex 5a15a2d116e..b8ad9906150 100644--- a/src/features/ResourceHome/paths.ts+++ b/src/features/ResourceHome/paths.ts@@ -3,12 +3,15 @@ import { FilesTabs } from '@/types/files';import { getIdFromIdentifier, standardizeIdentifier } from '@/utils/identifier';/**- * Docs (`/resource`) has four sections: the home dashboard, the drive (every- * uploaded file by type), the library gallery and the Works gallery. Paths are- * written without the workspace prefix; navigation adds it.+ * Docs (`/resource`) has five sections: the home dashboard, the drive (every+ * uploaded file by type), the cloud sandbox's storage, the library gallery and+ * the Works gallery. Paths are written without the workspace prefix;+ * navigation adds it.*/export const RESOURCE_HOME_PATH = '/resource';export const DRIVE_PATH = '/resource/drive';+/** The cloud sandbox's drives (public / personal) and their usage. */+export const SANDBOX_STORAGE_PATH = '/resource/sandbox-storage';export const LIBRARY_INDEX_PATH = '/resource/library';export const WORKS_PATH = '/resource/works';@@ -116,7 +119,7 @@ export const resolveResourceRoute = (return { kind: 'redirect', to: RESOURCE_HOME_PATH };};-export type DocsSection = 'drive' | 'home' | 'library' | 'works';+export type DocsSection = 'drive' | 'home' | 'library' | 'sandboxStorage' | 'works';/*** Which top-level Docs section a pathname belongs to. Business routes under@@ -131,6 +134,7 @@ export const resolveDocsSection = (const [section] = segments;if (!section) return 'home';if (section === 'drive') return 'drive';+ if (section === 'sandbox-storage') return 'sandboxStorage';if (section === 'library') return 'library';if (section === 'works') return 'works';if (worksPaths.includes(`${RESOURCE_HOME_PATH}/${section}`)) return 'works';diff --git a/src/features/SandboxDrive/SandboxStoragePage.tsx b/src/features/SandboxDrive/SandboxStoragePage.tsxnew file mode 100644index 00000000000..49a94e15402--- /dev/null+++ b/src/features/SandboxDrive/SandboxStoragePage.tsx@@ -0,0 +1,52 @@+'use client';++import { cssVar, Flexbox } from '@lobehub/ui';+import * as stylex from '@stylexjs/stylex';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++import NavHeader from '@/features/NavHeader';++import SandboxDrive from './index';++const styles = stylex.create({+ content: {+ display: 'flex',+ justifyContent: 'center',+ width: '100%',+ paddingBlockStart: '24px',+ paddingBlockEnd: '64px',+ paddingInline: '32px',+ },+ scroll: {+ overflowX: 'hidden',+ overflowY: 'auto',+ flex: '1',+ },+});++/**+ * Docs → Sandbox Storage: the cloud sandbox's drives under the Docs sidebar,+ * beside the file drive. Settings used to host it as the “Storage” tab.+ */+const SandboxStoragePage = memo(() => {+ const { t } = useTranslation('file');++ return (+ <Flexbox height={'100%'}>+ <NavHeader+ left={<Flexbox style={{ marginLeft: 8 }}>{t('docs.section.sandboxStorage')}</Flexbox>}+ style={{ borderBottom: `1px solid ${cssVar.colorBorderSecondary}` }}+ />+ <div {...stylex.props(styles.scroll)}>+ <div {...stylex.props(styles.content)}>+ <SandboxDrive />+ </div>+ </div>+ </Flexbox>+ );+});++SandboxStoragePage.displayName = 'SandboxStoragePage';++export default SandboxStoragePage;diff --git a/src/features/Settings/drive/index.tsx b/src/features/Settings/drive/index.tsxdeleted file mode 100644index 22831a3a2e9..00000000000--- a/src/features/Settings/drive/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-'use client';--export { default } from '@/features/SandboxDrive';diff --git a/src/features/Settings/features/SettingsContent.tsx b/src/features/Settings/features/SettingsContent.tsxindex 3e5f721ff08..94123006364 100644--- a/src/features/Settings/features/SettingsContent.tsx+++ b/src/features/Settings/features/SettingsContent.tsx@@ -37,7 +37,6 @@ const COMPACT_HEADER_TABS = [SettingsTabs.Plans,SettingsTabs.Profile,SettingsTabs.Referral,- SettingsTabs.Drive,SettingsTabs.Environments,SettingsTabs.ServiceModel,SettingsTabs.Stats,@@ -71,7 +70,6 @@ const SettingsContent = ({ mobile, activeTab }: SettingsContentProps) => {[SettingsTabs.Plans]: t('subscription:tab.plans'),[SettingsTabs.Profile]: t('auth:profile.title'),[SettingsTabs.Referral]: t('subscription:tab.referral'),- [SettingsTabs.Drive]: t('setting:tab.drive'),[SettingsTabs.Environments]: t('setting:tab.environments'),[SettingsTabs.ServiceModel]: t('setting:tab.serviceModel'),[SettingsTabs.Stats]: t('auth:tab.stats'),diff --git a/src/features/Settings/features/componentMap.desktop.ts b/src/features/Settings/features/componentMap.desktop.tsindex 3f7f67f10b2..08010aa4d90 100644--- a/src/features/Settings/features/componentMap.desktop.ts+++ b/src/features/Settings/features/componentMap.desktop.ts@@ -12,7 +12,6 @@ import Appearance from '../appearance';import Connector from '../connector';import Creds from '../creds';import Devices from '../devices';-import Drive from '../drive';import Environments from '../environments';import Hotkey from '../hotkey';import Integrations from '../integrations';@@ -51,7 +50,6 @@ export const componentMap = {[SettingsTabs.Storage]: Storage,[SettingsTabs.Trash]: Trash,[SettingsTabs.Devices]: Devices,- [SettingsTabs.Drive]: Drive,[SettingsTabs.Environments]: Environments,[SettingsTabs.Labels]: Labels,// Profile related tabsdiff --git a/src/features/Settings/features/componentMap.ts b/src/features/Settings/features/componentMap.tsindex e0bc627bb2e..18038b0ce7a 100644--- a/src/features/Settings/features/componentMap.ts+++ b/src/features/Settings/features/componentMap.ts@@ -59,9 +59,6 @@ export const componentMap = {[SettingsTabs.Devices]: dynamic(() => import('../devices'), {loading: loading('Settings > Devices'),}),- [SettingsTabs.Drive]: dynamic(() => import('../drive'), {- loading: loading('Settings > Drive'),- }),[SettingsTabs.Environments]: dynamic(() => import('../environments'), {loading: loading('Settings > Environments'),}),diff --git a/src/features/Settings/hooks/useCategory.test.tsx b/src/features/Settings/hooks/useCategory.test.tsxindex 4728d22a31b..df2bf64b4ed 100644--- a/src/features/Settings/hooks/useCategory.test.tsx+++ b/src/features/Settings/hooks/useCategory.test.tsx@@ -123,21 +123,16 @@ describe('settings useCategory', () => {expect(accountGroup?.items.map((item) => item.key)).toContain(SettingsTabs.Integrations);});- // The drives are what a persistent sandbox run keeps files on. Every Cloud- // account can reach them with no opt-in; a self-hosted deployment has no- // drive service, so it gets no tab.- it('shows Storage beside Environments wherever business features are on', () => {- expect(getItemKeys()).not.toContain(SettingsTabs.Drive);-+ // The sandbox drives moved to Docs → Sandbox Storage; settings keep only the+ // environment definitions.+ it('keeps Environments in settings without a sandbox storage tab', () => {const { result } = renderHook(() => useCategory(), {wrapper: createWrapper(true, true),});const generalGroup = result.current.find((group) => group.key === SettingsGroupKey.General);- expect(generalGroup?.items.map((item) => item.key)).toEqual(- expect.arrayContaining([SettingsTabs.Environments, SettingsTabs.Drive]),- );const keys = generalGroup!.items.map((item) => item.key);- expect(keys.indexOf(SettingsTabs.Drive)).toBe(keys.indexOf(SettingsTabs.Environments) + 1);+ expect(keys).toContain(SettingsTabs.Environments);+ expect(keys).not.toContain('drive');});it('shows OAuth Apps when the Labs preference is enabled', () => {diff --git a/src/features/Settings/hooks/useCategory.tsx b/src/features/Settings/hooks/useCategory.tsxindex 84d57e6addf..eed8cc57c6c 100644--- a/src/features/Settings/hooks/useCategory.tsx+++ b/src/features/Settings/hooks/useCategory.tsx@@ -18,7 +18,6 @@ import {EthernetPort,FlaskConical,Gift,- HardDriveIcon,Info,KeyboardIcon,KeyIcon,@@ -160,14 +159,6 @@ export const useCategory = () => {key: SettingsTabs.Environments,label: t('tab.environments'),},- // The drives a cloud-sandbox run keeps files on, with their usage and- // the way to a plan. A self-hosted deployment has no drive service, so- // the tab would only ever lead to an empty page there.- enableBusinessFeatures && {- icon: HardDriveIcon,- key: SettingsTabs.Drive,- label: t('tab.drive'),- },(enableBusinessFeatures || isDesktop) && {icon: BellIcon,key: SettingsTabs.Notification,diff --git a/src/features/SettingsSearch/items.ts b/src/features/SettingsSearch/items.tsindex e31715ace4e..ed5436e169d 100644--- a/src/features/SettingsSearch/items.ts+++ b/src/features/SettingsSearch/items.ts@@ -82,7 +82,6 @@ export const TAB_SEARCH_EN_KEYWORDS: Partial<Record<string, string[]>> = {[SettingsTabs.Hotkey]: ['hotkey', 'shortcut', 'keyboard'],[SettingsTabs.Labs]: ['labs', 'experiment', 'beta', 'preview', 'developer'],[SettingsTabs.Memory]: ['memory', 'memories', 'personalization'],- [SettingsTabs.Drive]: ['storage', 'drive', 'network drive', 'files', 'quota'],[SettingsTabs.Environments]: ['sandbox','environments',diff --git a/src/features/WorkspaceSetting/Layout.tsx b/src/features/WorkspaceSetting/Layout.tsxindex 7927086c1cb..7dc12510f9e 100644--- a/src/features/WorkspaceSetting/Layout.tsx+++ b/src/features/WorkspaceSetting/Layout.tsx@@ -24,7 +24,6 @@ const COMPACT_HEADER_TABS = new Set<string>([WorkspaceSettingsTabs.Creds,WorkspaceSettingsTabs.Credits,WorkspaceSettingsTabs.Devices,- WorkspaceSettingsTabs.Drive,WorkspaceSettingsTabs.Environments,WorkspaceSettingsTabs.General,WorkspaceSettingsTabs.Hotkey,diff --git a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx b/src/features/WorkspaceSetting/hooks/useCategory.test.tsxindex bdad4b81169..5f64595d164 100644--- a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx+++ b/src/features/WorkspaceSetting/hooks/useCategory.test.tsx@@ -131,7 +131,6 @@ describe('workspace settings useCategory', () => {WorkspaceSettingsTabs.Devices,WorkspaceSettingsTabs.SubscriptionAccounts,WorkspaceSettingsTabs.Environments,- WorkspaceSettingsTabs.Drive,]);expect(generalGroup?.items.map((item) => item.key)).not.toContain(WorkspaceSettingsTabs.Devices,diff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsxindex 13c7df2120b..e1cb081c60e 100644--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx@@ -17,7 +17,6 @@ import {FlaskConical,GaugeIcon,HandCoins,- HardDriveIcon,Info,KeyboardIcon,KeyIcon,@@ -206,12 +205,6 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =key: WorkspaceSettingsTabs.Environments,label: t('tab.environments'),},- // The public drive and the member's own, with the pool's usage.- {- icon: HardDriveIcon,- key: WorkspaceSettingsTabs.Drive,- label: t('tab.drive'),- },].filter(Boolean) as WorkspaceSettingCategoryItem[],key: WorkspaceSettingsGroupKey.Resource,title: t('workspaceSetting.group.resource'),diff --git a/src/routes/(main)/[workspaceSlug]/settings/drive/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/drive/index.tsxdeleted file mode 100644index 24180ccc1b9..00000000000--- a/src/routes/(main)/[workspaceSlug]/settings/drive/index.tsx+++ /dev/null@@ -1 +0,0 @@-export { default } from '@/features/SandboxDrive';diff --git a/src/routes/(main)/resource/(home)/sandbox-storage/index.tsx b/src/routes/(main)/resource/(home)/sandbox-storage/index.tsxnew file mode 100644index 00000000000..37a870aa02a--- /dev/null+++ b/src/routes/(main)/resource/(home)/sandbox-storage/index.tsx@@ -0,0 +1 @@+export { default } from '@/features/SandboxDrive/SandboxStoragePage';diff --git a/src/spa/router/desktopRouter.shared.tsx b/src/spa/router/desktopRouter.shared.tsxindex 1834b13998b..4c2f4488625 100644--- a/src/spa/router/desktopRouter.shared.tsx+++ b/src/spa/router/desktopRouter.shared.tsx@@ -42,6 +42,7 @@ import { projectWorkspaceRoute } from '@/spa/router/projectWorkspaceRoutes';import { agentAccessLoader, agentGroupAccessLoader } from '@/spa/router/resourceAccessLoader';import { resourceRoute } from '@/spa/router/resourceRoutes';import { NoRouteSkeleton, routeMeta } from '@/spa/router/routeMeta';+import { LegacySandboxStorageRedirect } from '@/spa/router/sandboxStorageRedirect';import { taskWorkspaceChildren } from '@/spa/router/taskWorkspaceRoutes';import { withSegmentFallback } from '@/spa/router/withSegmentFallback';import { workspaceSettingsContentRoute } from '@/spa/router/workspaceSettingsRoutes';@@ -667,6 +668,8 @@ const createMainAreaChildrenDefinition = (options: MainAreaRouteOptions = {}): Relement: redirectElement('/settings/credential'),path: 'creds',},+ // Sandbox storage moved to Docs (`/resource/sandbox-storage`).+ { element: <LegacySandboxStorageRedirect />, path: 'drive' },// Devices list and detail get their own page-shaped skeletons; the generic// `:tab` routes below would load them under the form-shaped settings one.{diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsxindex 5f1b16e12b4..ebe20247188 100644--- a/src/spa/router/mobileRouter.config.tsx+++ b/src/spa/router/mobileRouter.config.tsx@@ -15,6 +15,7 @@ import { mobileAgentRoute, mobileGroupRoute } from '@/spa/router/mobileAgentRoutimport { mobileUnsupportedRoutes, mobileWorkspaceRoutes } from '@/spa/router/mobileWorkspaceRoutes';import { mobileWorkspaceSettingsChildren } from '@/spa/router/mobileWorkspaceSettingsRoutes';import { routeMeta } from '@/spa/router/routeMeta';+import { LegacySandboxStorageRedirect } from '@/spa/router/sandboxStorageRedirect';import { SettingsTabs } from '@/store/global/initialState';import { dynamicElement, dynamicLayout, ErrorBoundary, redirectElement } from '@/utils/router';@@ -317,6 +318,7 @@ export const mobileRoutes: RouteObject[] = [element: redirectElement('/settings/credential'),path: 'creds',},+ { element: <LegacySandboxStorageRedirect />, path: 'drive' },// Every known tab gets a static segment: `/settings/memory` and// `/:workspaceSlug/memory` (or `/agent`, `/image`, …) tie on route// score, and the workspace tree would read `settings` as a slug.diff --git a/src/spa/router/resourceRoutes.tsx b/src/spa/router/resourceRoutes.tsxindex d48a0622e04..ff4c28b7ba4 100644--- a/src/spa/router/resourceRoutes.tsx+++ b/src/spa/router/resourceRoutes.tsx@@ -10,6 +10,7 @@ import {ImageIcon,LibraryBigIcon,Mic2,+ ServerIcon,SquarePlay,} from 'lucide-react';import type { RouteObject } from 'react-router';@@ -69,6 +70,22 @@ export const resourceRoute: RouteObject = {},...BusinessResourceRoutes,...resourceDriveRoutes,+ // The cloud sandbox's drives, beside the file drive (moved out of settings).+ {+ element: dynamicElement(+ () => import('@/routes/(main)/resource/(home)/sandbox-storage'),+ 'Desktop > Resource > Sandbox Storage',+ { preloadId: 'resource' },+ ),+ handle: {+ meta: routeMeta({+ icon: ServerIcon,+ Skeleton: createSurfaceSkeleton('list'),+ titleKey: 'navigation.resourceSandboxStorage',+ }),+ },+ path: 'sandbox-storage',+ },{element: dynamicElement(() => import('@/routes/(main)/resource/(home)'),diff --git a/src/spa/router/sandboxStoragePath.test.ts b/src/spa/router/sandboxStoragePath.test.tsnew file mode 100644index 00000000000..e32b750af87--- /dev/null+++ b/src/spa/router/sandboxStoragePath.test.ts@@ -0,0 +1,13 @@+import { describe, expect, it } from 'vitest';++import { legacySandboxStoragePath } from './sandboxStoragePath';++describe('legacySandboxStoragePath', () => {+ it.each([+ ['/settings/drive', '/resource/sandbox-storage'],+ ['/settings/drive/', '/resource/sandbox-storage'],+ ['/acme/settings/drive', '/acme/resource/sandbox-storage'],+ ])('%s → %s', (from, to) => {+ expect(legacySandboxStoragePath(from)).toBe(to);+ });+});diff --git a/src/spa/router/sandboxStoragePath.ts b/src/spa/router/sandboxStoragePath.tsnew file mode 100644index 00000000000..319343e7af6--- /dev/null+++ b/src/spa/router/sandboxStoragePath.ts@@ -0,0 +1,8 @@+const LEGACY_SETTINGS_DRIVE = /\/settings\/drive\/?$/;++/**+ * Where a legacy settings drive URL now lives: `/settings/drive` →+ * `/resource/sandbox-storage`, keeping any `/:workspaceSlug` prefix.+ */+export const legacySandboxStoragePath = (pathname: string): string =>+ pathname.replace(LEGACY_SETTINGS_DRIVE, '/resource/sandbox-storage');diff --git a/src/spa/router/sandboxStorageRedirect.tsx b/src/spa/router/sandboxStorageRedirect.tsxnew file mode 100644index 00000000000..beea8bc285e--- /dev/null+++ b/src/spa/router/sandboxStorageRedirect.tsx@@ -0,0 +1,14 @@+import { Navigate, useLocation } from 'react-router';++import { legacySandboxStoragePath } from './sandboxStoragePath';++/**+ * Sandbox storage left settings for Docs (T-2725): `/settings/drive` and+ * `/:workspaceSlug/settings/drive` now live at `…/resource/sandbox-storage`.+ * The workspace prefix, `?drive=` and the hash carry over.+ */+export const LegacySandboxStorageRedirect = () => {+ const { hash, pathname, search } = useLocation();++ return <Navigate replace to={{ hash, pathname: legacySandboxStoragePath(pathname), search }} />;+};diff --git a/src/spa/router/workspaceSettingsRoutes.tsx b/src/spa/router/workspaceSettingsRoutes.tsxindex b92d0f25daf..4a26f4c6f00 100644--- a/src/spa/router/workspaceSettingsRoutes.tsx+++ b/src/spa/router/workspaceSettingsRoutes.tsx@@ -5,6 +5,7 @@ import { WORKSPACE_SETTINGS_SECTION_SHAPES } from '@/components/Skeleton/Settingimport { createSurfaceSkeleton } from '@/components/Skeleton/Surface';import DevicesPageSkeleton from '@/features/DeviceManager/Skeleton';import { routeMeta } from '@/spa/router/routeMeta';+import { LegacySandboxStorageRedirect } from '@/spa/router/sandboxStorageRedirect';import { dynamicElement, dynamicLayout, redirectElement } from '@/utils/router';// Workspace settings tabs made of stacked filled groups. The content layout@@ -240,14 +241,8 @@ export const workspaceSettingsContentRoute: RouteObject = {handle: { meta: routeMeta({ Skeleton: createSurfaceSkeleton('list') }) },path: 'environments',},- {- element: dynamicElement(- () => import('@/routes/(main)/[workspaceSlug]/settings/drive'),- 'Desktop > Workspace > Settings > Drive',- ),- handle: { meta: routeMeta({ Skeleton: createSurfaceSkeleton('list') }) },- path: 'drive',- },+ // Sandbox storage moved to Docs (`/:slug/resource/sandbox-storage`).+ { element: <LegacySandboxStorageRedirect />, path: 'drive' },// Account-level tabs mirrored inside the workspace so members can// adjust user settings without leaving the workspace. Same pages// as personal `/settings/*`; only the chrome is workspace-owned.diff --git a/src/store/global/initialState.ts b/src/store/global/initialState.tsindex 5123d25fc1a..576624c4ecd 100644--- a/src/store/global/initialState.ts+++ b/src/store/global/initialState.ts@@ -79,8 +79,6 @@ export enum SettingsTabs {Credits = 'credits',Creds = 'credential',Devices = 'devices',- /** The cloud sandbox's network drives — labelled “Storage”; `storage` is local data. */- Drive = 'drive',Environments = 'environments',Hotkey = 'hotkey',/** @deprecated Use ServiceModel instead */diff --git a/src/types/workspaceSettings.ts b/src/types/workspaceSettings.tsindex 1e418cdf4de..e9efb2b7263 100644--- a/src/types/workspaceSettings.ts+++ b/src/types/workspaceSettings.ts@@ -18,7 +18,6 @@ export enum WorkspaceSettingsTabs {Credits = 'credits',Creds = 'credential',Devices = 'devices',- Drive = 'drive',Environments = 'environments',General = 'general',Hotkey = 'hotkey',