🤯 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
✨ feat(home): support agent list view-all page (#17512)
Rdmclin2a969ac0cc1e8
diff --git a/apps/server/src/routers/lambda/sessionGroup.ts b/apps/server/src/routers/lambda/sessionGroup.tsindex 1089f92e967..8d0fb251956 100644--- a/apps/server/src/routers/lambda/sessionGroup.ts+++ b/apps/server/src/routers/lambda/sessionGroup.ts@@ -8,8 +8,6 @@ import { router } from '@/libs/trpc/lambda';import { serverDatabase } from '@/libs/trpc/lambda/middleware';import { type SessionGroupItem } from '@/types/session';-import { assertWorkspaceRowManageable } from './_helpers/assertWorkspaceRowManageable';-const sessionProcedure = wsCompatProcedure.use(serverDatabase).use(async (opts) => {const { ctx } = opts;const wsId = ctx.workspaceId ?? undefined;@@ -57,13 +55,15 @@ export const sessionGroupRouter = router({return ctx.sessionGroupModel.query() as any;}),+ // NOTE: no row-level creator check on the mutations below (unlike other+ // workspace-shared resources). Sidebar organization is a per-member concern+ // now (section layout / agent membership live in workspace_user_settings),+ // so folder management stays open to every member holding the+ // session_group:update/delete scope instead of being creator/owner-gated.removeSessionGroup: sessionProcedure.use(withScopedPermission('session_group:delete')).input(z.object({ id: z.string(), removeChildren: z.boolean().optional() })).mutation(async ({ input, ctx }) => {- const group = await ctx.sessionGroupModel.findById(input.id);- if (group) assertWorkspaceRowManageable(ctx, group.userId, 'session group');-return ctx.sessionGroupModel.delete(input.id);}),@@ -76,9 +76,6 @@ export const sessionGroupRouter = router({}),).mutation(async ({ input, ctx }) => {- const group = await ctx.sessionGroupModel.findById(input.id);- if (group) assertWorkspaceRowManageable(ctx, group.userId, 'session group');-return ctx.sessionGroupModel.update(input.id, input.value);}),updateSessionGroupOrder: sessionProcedurediff --git a/locales/ar/common.json b/locales/ar/common.jsonindex c1c3ee7cb89..f61bf39008b 100644--- a/locales/ar/common.json+++ b/locales/ar/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "جرّب الآن","agentOnboardingPromo.description": "قم بإعداد فرق الوكلاء لديك عبر محادثة سريعة مع Lobe AI. ستبقى وكلاؤك الحاليون دون تغيير.","agentOnboardingPromo.title": "المعالج السريع",+ "agentViewAll.addToSidebar": "عرض في الشريط الجانبي",+ "agentViewAll.columns.author": "المؤلف",+ "agentViewAll.columns.name": "الاسم",+ "agentViewAll.columns.updatedAt": "وقت آخر تحديث",+ "agentViewAll.empty": "لا توجد وكلاء حتى الآن",+ "agentViewAll.form.grouping": "التجميع",+ "agentViewAll.form.ordering": "الترتيب",+ "agentViewAll.form.showSidebarHidden": "عرض الوكلاء المخفيين من الشريط الجانبي",+ "agentViewAll.groupBy.author": "المؤلف",+ "agentViewAll.groupBy.none": "بدون تجميع",+ "agentViewAll.groupBy.unknownAuthor": "مؤلف غير معروف",+ "agentViewAll.myAgents": "وكلائي",+ "agentViewAll.orderBy.author": "المؤلف",+ "agentViewAll.orderBy.title": "العنوان",+ "agentViewAll.orderBy.updatedAt": "تم التحديث في",+ "agentViewAll.removeFromSidebar": "إخفاء من الشريط الجانبي",+ "agentViewAll.title": "الوكلاء",+ "agentViewAll.untitled": "وكيل بدون عنوان",+ "agentViewAll.view.card": "بطاقة",+ "agentViewAll.view.list": "قائمة","alert.cloud.action": "جرّب الآن","alert.cloud.desc": "جميع المستخدمين المسجلين يحصلون على {{credit}} من أرصدة الحوسبة المجانية شهريًا — دون الحاجة إلى إعداد. يشمل المزامنة السحابية العالمية والبحث المتقدم على الويب.","alert.cloud.descOnMobile": "جميع المستخدمين المسجلين يحصلون على {{credit}} من أرصدة الحوسبة المجانية شهريًا — دون الحاجة إلى إعداد.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "البحث في الأخير...","navPanel.searchResultEmpty": "لم يتم العثور على نتائج","navPanel.show": "إظهار",+ "navPanel.viewAllAgents": "عرض الكل","navPanel.visible": "مرئي","new": "جديد","noContent": "لا يوجد محتوى",diff --git a/locales/ar/electron.json b/locales/ar/electron.jsonindex ecccdbeb495..922191acdf5 100644--- a/locales/ar/electron.json+++ b/locales/ar/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "جارٍ الاتصال بالبوابة...","gateway.statusDisconnected": "غير متصل بالبوابة","gateway.title": "بوابة الجهاز",+ "navigation.agents": "الوكلاء","navigation.chat": "محادثة","navigation.discover": "اكتشف","navigation.discoverAssistants": "اكتشف المساعدين",diff --git a/locales/ar/verify.json b/locales/ar/verify.jsonindex 8b4450d4aed..b5deef54374 100644--- a/locales/ar/verify.json+++ b/locales/ar/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "جميع القبولات","acceptance.workspace.filters.completed": "مكتمل","acceptance.workspace.filters.empty.active": "لا توجد قبولات قيد التنفيذ.",+ "acceptance.workspace.filters.empty.all": "لا توجد أي موافقات حتى الآن.","acceptance.workspace.filters.empty.completed": "لا توجد قبولات مكتملة.","acceptance.workspace.filters.noSearchResults": "لا توجد قبولات تطابق “{{query}}”.","acceptance.workspace.filters.showAll": "عرض جميع القبولات",diff --git a/locales/bg-BG/common.json b/locales/bg-BG/common.jsonindex 894c11a397d..0b0aa15ac3d 100644--- a/locales/bg-BG/common.json+++ b/locales/bg-BG/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Опитайте сега","agentOnboardingPromo.description": "Настройте своите екипи от агенти в кратък чат с Lobe AI. Съществуващите ви агенти ще останат непроменени.","agentOnboardingPromo.title": "Бърз съветник",+ "agentViewAll.addToSidebar": "Показване в страничната лента",+ "agentViewAll.columns.author": "Автор",+ "agentViewAll.columns.name": "Име",+ "agentViewAll.columns.updatedAt": "Време на последна актуализация",+ "agentViewAll.empty": "Все още няма агенти",+ "agentViewAll.form.grouping": "Групиране",+ "agentViewAll.form.ordering": "Подреждане",+ "agentViewAll.form.showSidebarHidden": "Показване на агенти, скрити от страничната лента",+ "agentViewAll.groupBy.author": "Автор",+ "agentViewAll.groupBy.none": "Без групиране",+ "agentViewAll.groupBy.unknownAuthor": "Неизвестен автор",+ "agentViewAll.myAgents": "Моите агенти",+ "agentViewAll.orderBy.author": "Автор",+ "agentViewAll.orderBy.title": "Заглавие",+ "agentViewAll.orderBy.updatedAt": "Актуализирано на",+ "agentViewAll.removeFromSidebar": "Скриване от страничната лента",+ "agentViewAll.title": "Агенти",+ "agentViewAll.untitled": "Агент без заглавие",+ "agentViewAll.view.card": "Картичка",+ "agentViewAll.view.list": "Списък","alert.cloud.action": "Опитайте сега","alert.cloud.desc": "Всички регистрирани потребители получават {{credit}} безплатни изчислителни кредити на месец — без нужда от настройка. Включва глобална синхронизация в облака и разширено търсене в мрежата.","alert.cloud.descOnMobile": "Всички регистрирани потребители получават {{credit}} безплатни изчислителни кредити на месец — без нужда от настройка.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Търсене в скорошни...","navPanel.searchResultEmpty": "Няма намерени резултати","navPanel.show": "Показване",+ "navPanel.viewAllAgents": "Преглед на всички","navPanel.visible": "Видимо","new": "Нов","noContent": "Няма съдържание",diff --git a/locales/bg-BG/electron.json b/locales/bg-BG/electron.jsonindex 5137d1e0019..2112234d374 100644--- a/locales/bg-BG/electron.json+++ b/locales/bg-BG/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Свързване с шлюза...","gateway.statusDisconnected": "Не е свързан с шлюза","gateway.title": "Шлюз на устройството",+ "navigation.agents": "Агенти","navigation.chat": "Чат","navigation.discover": "Откриване","navigation.discoverAssistants": "Откриване на Асистенти",diff --git a/locales/bg-BG/verify.json b/locales/bg-BG/verify.jsonindex e6471603a61..9f94d7c8021 100644--- a/locales/bg-BG/verify.json+++ b/locales/bg-BG/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Всички приемания","acceptance.workspace.filters.completed": "Завършени","acceptance.workspace.filters.empty.active": "Няма приемания в процес на изпълнение.",+ "acceptance.workspace.filters.empty.all": "Все още няма приемания.","acceptance.workspace.filters.empty.completed": "Няма завършени приемания.","acceptance.workspace.filters.noSearchResults": "Няма приемания, които съответстват на „{{query}}“.","acceptance.workspace.filters.showAll": "Покажи всички приемания",diff --git a/locales/de-DE/common.json b/locales/de-DE/common.jsonindex b4ef4bc0e89..3bf4ac44b96 100644--- a/locales/de-DE/common.json+++ b/locales/de-DE/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Jetzt ausprobieren","agentOnboardingPromo.description": "Richte deine Agent-Teams in einem kurzen Chat mit Lobe AI ein. Deine vorhandenen Agenten bleiben unverändert.","agentOnboardingPromo.title": "Schnellassistent",+ "agentViewAll.addToSidebar": "Im Seitenbereich anzeigen",+ "agentViewAll.columns.author": "Autor",+ "agentViewAll.columns.name": "Name",+ "agentViewAll.columns.updatedAt": "Letzte Aktualisierungszeit",+ "agentViewAll.empty": "Noch keine Agenten",+ "agentViewAll.form.grouping": "Gruppierung",+ "agentViewAll.form.ordering": "Sortierung",+ "agentViewAll.form.showSidebarHidden": "Agenten anzeigen, die im Seitenbereich ausgeblendet sind",+ "agentViewAll.groupBy.author": "Autor",+ "agentViewAll.groupBy.none": "Keine Gruppierung",+ "agentViewAll.groupBy.unknownAuthor": "Unbekannter Autor",+ "agentViewAll.myAgents": "Meine Agenten",+ "agentViewAll.orderBy.author": "Autor",+ "agentViewAll.orderBy.title": "Titel",+ "agentViewAll.orderBy.updatedAt": "Aktualisiert am",+ "agentViewAll.removeFromSidebar": "Im Seitenbereich ausblenden",+ "agentViewAll.title": "Agenten",+ "agentViewAll.untitled": "Unbenannter Agent",+ "agentViewAll.view.card": "Karte",+ "agentViewAll.view.list": "Liste","alert.cloud.action": "Jetzt ausprobieren","alert.cloud.desc": "Alle registrierten Nutzer erhalten monatlich {{credit}} kostenlose Rechen-Credits – keine Einrichtung erforderlich. Inklusive globaler Cloud-Synchronisierung und erweiterter Websuche.","alert.cloud.descOnMobile": "Alle registrierten Nutzer erhalten monatlich {{credit}} kostenlose Rechen-Credits – keine Einrichtung erforderlich.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Zuletzt gesucht...","navPanel.searchResultEmpty": "Keine Suchergebnisse gefunden","navPanel.show": "Anzeigen",+ "navPanel.viewAllAgents": "Alle anzeigen","navPanel.visible": "Sichtbar","new": "Neu","noContent": "Kein Inhalt",diff --git a/locales/de-DE/electron.json b/locales/de-DE/electron.jsonindex b239f85d3c5..d67b25bda9f 100644--- a/locales/de-DE/electron.json+++ b/locales/de-DE/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Verbindung zum Gateway wird hergestellt...","gateway.statusDisconnected": "Nicht mit Gateway verbunden","gateway.title": "Geräte-Gateway",+ "navigation.agents": "Agenten","navigation.chat": "Chat","navigation.discover": "Entdecken","navigation.discoverAssistants": "Assistenten entdecken",diff --git a/locales/de-DE/verify.json b/locales/de-DE/verify.jsonindex 1c75d8b7e2a..3cb3fee6ad3 100644--- a/locales/de-DE/verify.json+++ b/locales/de-DE/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Alle Akzeptanzen","acceptance.workspace.filters.completed": "Abgeschlossen","acceptance.workspace.filters.empty.active": "Keine Akzeptanzen in Bearbeitung.",+ "acceptance.workspace.filters.empty.all": "Noch keine Annahmen.","acceptance.workspace.filters.empty.completed": "Keine abgeschlossenen Akzeptanzen.","acceptance.workspace.filters.noSearchResults": "Keine Akzeptanzen entsprechen „{{query}}“.","acceptance.workspace.filters.showAll": "Alle Akzeptanzen anzeigen",diff --git a/locales/en-US/common.json b/locales/en-US/common.jsonindex eac27676340..15e9767af18 100644--- a/locales/en-US/common.json+++ b/locales/en-US/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Try it now","agentOnboardingPromo.description": "Set up your agent teams in a quick chat with Lobe AI. Your existing agents remain unchanged.","agentOnboardingPromo.title": "Quick Wizard",+ "agentViewAll.addToSidebar": "Show in sidebar",+ "agentViewAll.columns.author": "Author",+ "agentViewAll.columns.name": "Name",+ "agentViewAll.columns.updatedAt": "Last update time",+ "agentViewAll.empty": "No agents yet",+ "agentViewAll.form.grouping": "Grouping",+ "agentViewAll.form.ordering": "Ordering",+ "agentViewAll.form.showSidebarHidden": "Show agents hidden from sidebar",+ "agentViewAll.groupBy.author": "Author",+ "agentViewAll.groupBy.none": "No grouping",+ "agentViewAll.groupBy.unknownAuthor": "Unknown author",+ "agentViewAll.myAgents": "My Agents",+ "agentViewAll.orderBy.author": "Author",+ "agentViewAll.orderBy.title": "Title",+ "agentViewAll.orderBy.updatedAt": "Updated at",+ "agentViewAll.removeFromSidebar": "Hide from sidebar",+ "agentViewAll.title": "Agents",+ "agentViewAll.untitled": "Untitled Agent",+ "agentViewAll.view.card": "Card",+ "agentViewAll.view.list": "List","alert.cloud.action": "Try now","alert.cloud.desc": "All registered users get {{credit}} free credits per month—no setup needed. Includes global cloud sync and advanced web search.","alert.cloud.descOnMobile": "All registered users get {{credit}} free credits per month—no setup needed.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Search Recent...","navPanel.searchResultEmpty": "No search results found","navPanel.show": "Show",+ "navPanel.viewAllAgents": "View all","navPanel.visible": "Visible","new": "New","noContent": "No content",diff --git a/locales/en-US/electron.json b/locales/en-US/electron.jsonindex 272cc0d4973..b1408e0c411 100644--- a/locales/en-US/electron.json+++ b/locales/en-US/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Connecting to Gateway...","gateway.statusDisconnected": "Not connected to Gateway","gateway.title": "Device Gateway",+ "navigation.agents": "Agents","navigation.chat": "Chat","navigation.discover": "Discover","navigation.discoverAssistants": "Discover Agents",diff --git a/locales/es-ES/common.json b/locales/es-ES/common.jsonindex bc40fd3e554..a674dab6eff 100644--- a/locales/es-ES/common.json+++ b/locales/es-ES/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Probar ahora","agentOnboardingPromo.description": "Configura tus equipos de agentes en un chat breve con Lobe AI. Tus agentes actuales no se modificarán.","agentOnboardingPromo.title": "Asistente rápido",+ "agentViewAll.addToSidebar": "Mostrar en la barra lateral",+ "agentViewAll.columns.author": "Autor",+ "agentViewAll.columns.name": "Nombre",+ "agentViewAll.columns.updatedAt": "Última hora de actualización",+ "agentViewAll.empty": "No hay agentes aún",+ "agentViewAll.form.grouping": "Agrupación",+ "agentViewAll.form.ordering": "Ordenación",+ "agentViewAll.form.showSidebarHidden": "Mostrar agentes ocultos de la barra lateral",+ "agentViewAll.groupBy.author": "Autor",+ "agentViewAll.groupBy.none": "Sin agrupación",+ "agentViewAll.groupBy.unknownAuthor": "Autor desconocido",+ "agentViewAll.myAgents": "Mis Agentes",+ "agentViewAll.orderBy.author": "Autor",+ "agentViewAll.orderBy.title": "Título",+ "agentViewAll.orderBy.updatedAt": "Actualizado en",+ "agentViewAll.removeFromSidebar": "Ocultar de la barra lateral",+ "agentViewAll.title": "Agentes",+ "agentViewAll.untitled": "Agente sin título",+ "agentViewAll.view.card": "Tarjeta",+ "agentViewAll.view.list": "Lista","alert.cloud.action": "Probar ahora","alert.cloud.desc": "Todos los usuarios registrados reciben {{credit}} créditos de computación gratuitos al mes, sin necesidad de configuración. Incluye sincronización en la nube global y búsqueda web avanzada.","alert.cloud.descOnMobile": "Todos los usuarios registrados reciben {{credit}} créditos de computación gratuitos al mes, sin necesidad de configuración.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Buscar recientes...","navPanel.searchResultEmpty": "No se encontraron resultados","navPanel.show": "Mostrar",+ "navPanel.viewAllAgents": "Ver todos","navPanel.visible": "Visible","new": "Nuevo","noContent": "Sin contenido",diff --git a/locales/es-ES/electron.json b/locales/es-ES/electron.jsonindex ebe2d5ad8fd..6fee42831cf 100644--- a/locales/es-ES/electron.json+++ b/locales/es-ES/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Conectando al Gateway...","gateway.statusDisconnected": "No conectado al Gateway","gateway.title": "Gateway de Dispositivo",+ "navigation.agents": "Agentes","navigation.chat": "Chat","navigation.discover": "Descubrir","navigation.discoverAssistants": "Descubrir Asistentes",diff --git a/locales/es-ES/verify.json b/locales/es-ES/verify.jsonindex 83f28fcc404..daa197e8dc1 100644--- a/locales/es-ES/verify.json+++ b/locales/es-ES/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Todas las aceptaciones","acceptance.workspace.filters.completed": "Completadas","acceptance.workspace.filters.empty.active": "No hay aceptaciones en progreso.",+ "acceptance.workspace.filters.empty.all": "Aún no hay aceptaciones.","acceptance.workspace.filters.empty.completed": "No hay aceptaciones completadas.","acceptance.workspace.filters.noSearchResults": "No hay aceptaciones que coincidan con “{{query}}”.","acceptance.workspace.filters.showAll": "Mostrar todas las aceptaciones",diff --git a/locales/fa-IR/common.json b/locales/fa-IR/common.jsonindex 8e4cb20c62a..c2ea7959ccf 100644--- a/locales/fa-IR/common.json+++ b/locales/fa-IR/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "همین حالا امتحان کنید","agentOnboardingPromo.description": "تیمهای عامل خود را با یک گفتوگوی کوتاه با Lobe AI تنظیم کنید. عاملهای فعلی شما بدون تغییر باقی میمانند.","agentOnboardingPromo.title": "راهنمای سریع",+ "agentViewAll.addToSidebar": "نمایش در نوار کناری",+ "agentViewAll.columns.author": "نویسنده",+ "agentViewAll.columns.name": "نام",+ "agentViewAll.columns.updatedAt": "زمان آخرین بهروزرسانی",+ "agentViewAll.empty": "هنوز هیچ عاملی وجود ندارد",+ "agentViewAll.form.grouping": "گروهبندی",+ "agentViewAll.form.ordering": "ترتیبدهی",+ "agentViewAll.form.showSidebarHidden": "نمایش عوامل مخفی شده از نوار کناری",+ "agentViewAll.groupBy.author": "نویسنده",+ "agentViewAll.groupBy.none": "بدون گروهبندی",+ "agentViewAll.groupBy.unknownAuthor": "نویسنده ناشناس",+ "agentViewAll.myAgents": "عوامل من",+ "agentViewAll.orderBy.author": "نویسنده",+ "agentViewAll.orderBy.title": "عنوان",+ "agentViewAll.orderBy.updatedAt": "بهروزرسانی شده در",+ "agentViewAll.removeFromSidebar": "مخفی کردن از نوار کناری",+ "agentViewAll.title": "عوامل",+ "agentViewAll.untitled": "عامل بدون عنوان",+ "agentViewAll.view.card": "کارت",+ "agentViewAll.view.list": "لیست","alert.cloud.action": "هماکنون امتحان کنید","alert.cloud.desc": "تمام کاربران ثبتنامشده هر ماه {{credit}} اعتبار رایگان محاسباتی دریافت میکنند — بدون نیاز به تنظیمات. شامل همگامسازی ابری جهانی و جستجوی پیشرفته وب.","alert.cloud.descOnMobile": "تمام کاربران ثبتنامشده هر ماه {{credit}} اعتبار رایگان محاسباتی دریافت میکنند — بدون نیاز به تنظیمات.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "جستوجوی موارد اخیر...","navPanel.searchResultEmpty": "نتیجهای یافت نشد","navPanel.show": "نمایش",+ "navPanel.viewAllAgents": "مشاهده همه","navPanel.visible": "نمایان","new": "جدید","noContent": "محتوایی وجود ندارد",diff --git a/locales/fa-IR/electron.json b/locales/fa-IR/electron.jsonindex afeb2fc4752..6e253d89844 100644--- a/locales/fa-IR/electron.json+++ b/locales/fa-IR/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "در حال اتصال به درگاه...","gateway.statusDisconnected": "به درگاه متصل نیست","gateway.title": "درگاه دستگاه",+ "navigation.agents": "نمایندگان","navigation.chat": "چت","navigation.discover": "کشف","navigation.discoverAssistants": "کشف دستیاران",diff --git a/locales/fa-IR/verify.json b/locales/fa-IR/verify.jsonindex 0cadc0f0cb5..75ef0b8b3c4 100644--- a/locales/fa-IR/verify.json+++ b/locales/fa-IR/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "همه پذیرشها","acceptance.workspace.filters.completed": "تکمیل شده","acceptance.workspace.filters.empty.active": "هیچ پذیرشی در حال انجام نیست.",+ "acceptance.workspace.filters.empty.all": "هنوز هیچ پذیرشی وجود ندارد.","acceptance.workspace.filters.empty.completed": "هیچ پذیرش تکمیلشدهای وجود ندارد.","acceptance.workspace.filters.noSearchResults": "هیچ پذیرشی با «{{query}}» مطابقت ندارد.","acceptance.workspace.filters.showAll": "نمایش همه پذیرشها",diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.jsonindex 3944a768f87..5590ecb3a02 100644--- a/locales/fr-FR/common.json+++ b/locales/fr-FR/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Essayer maintenant","agentOnboardingPromo.description": "Configurez vos équipes d’agents dans un court échange avec Lobe AI. Vos agents existants restent inchangés.","agentOnboardingPromo.title": "Assistant rapide",+ "agentViewAll.addToSidebar": "Afficher dans la barre latérale",+ "agentViewAll.columns.author": "Auteur",+ "agentViewAll.columns.name": "Nom",+ "agentViewAll.columns.updatedAt": "Dernière mise à jour",+ "agentViewAll.empty": "Aucun agent pour le moment",+ "agentViewAll.form.grouping": "Regroupement",+ "agentViewAll.form.ordering": "Ordre",+ "agentViewAll.form.showSidebarHidden": "Afficher les agents masqués de la barre latérale",+ "agentViewAll.groupBy.author": "Auteur",+ "agentViewAll.groupBy.none": "Aucun regroupement",+ "agentViewAll.groupBy.unknownAuthor": "Auteur inconnu",+ "agentViewAll.myAgents": "Mes Agents",+ "agentViewAll.orderBy.author": "Auteur",+ "agentViewAll.orderBy.title": "Titre",+ "agentViewAll.orderBy.updatedAt": "Mis à jour le",+ "agentViewAll.removeFromSidebar": "Masquer de la barre latérale",+ "agentViewAll.title": "Agents",+ "agentViewAll.untitled": "Agent sans titre",+ "agentViewAll.view.card": "Carte",+ "agentViewAll.view.list": "Liste","alert.cloud.action": "Essayer maintenant","alert.cloud.desc": "Tous les utilisateurs enregistrés reçoivent {{credit}} crédits de calcul gratuits par mois — aucune configuration requise. Inclut la synchronisation cloud mondiale et la recherche web avancée.","alert.cloud.descOnMobile": "Tous les utilisateurs enregistrés reçoivent {{credit}} crédits de calcul gratuits par mois — aucune configuration requise.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Rechercher dans les récents...","navPanel.searchResultEmpty": "Aucun résultat trouvé","navPanel.show": "Afficher",+ "navPanel.viewAllAgents": "Voir tout","navPanel.visible": "Visible","new": "Nouveau","noContent": "Aucun contenu",diff --git a/locales/fr-FR/electron.json b/locales/fr-FR/electron.jsonindex c5deb7de796..98623926c86 100644--- a/locales/fr-FR/electron.json+++ b/locales/fr-FR/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Connexion à la passerelle...","gateway.statusDisconnected": "Non connecté à la passerelle","gateway.title": "Passerelle de l'appareil",+ "navigation.agents": "Agents","navigation.chat": "Chat","navigation.discover": "Découvrir","navigation.discoverAssistants": "Découvrir les Assistants",diff --git a/locales/fr-FR/verify.json b/locales/fr-FR/verify.jsonindex ba1aca6ff5e..6791c49aba6 100644--- a/locales/fr-FR/verify.json+++ b/locales/fr-FR/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Toutes les acceptations","acceptance.workspace.filters.completed": "Terminées","acceptance.workspace.filters.empty.active": "Aucune acceptation en cours.",+ "acceptance.workspace.filters.empty.all": "Aucune acceptation pour le moment.","acceptance.workspace.filters.empty.completed": "Aucune acceptation terminée.","acceptance.workspace.filters.noSearchResults": "Aucune acceptation ne correspond à « {{query}} ».","acceptance.workspace.filters.showAll": "Afficher toutes les acceptations",diff --git a/locales/it-IT/common.json b/locales/it-IT/common.jsonindex 22706f08e93..2d5ac883061 100644--- a/locales/it-IT/common.json+++ b/locales/it-IT/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Prova ora","agentOnboardingPromo.description": "Configura i tuoi team di agenti in una breve chat con Lobe AI. I tuoi agenti esistenti resteranno invariati.","agentOnboardingPromo.title": "Procedura rapida",+ "agentViewAll.addToSidebar": "Mostra nella barra laterale",+ "agentViewAll.columns.author": "Autore",+ "agentViewAll.columns.name": "Nome",+ "agentViewAll.columns.updatedAt": "Ultimo aggiornamento",+ "agentViewAll.empty": "Nessun agente disponibile",+ "agentViewAll.form.grouping": "Raggruppamento",+ "agentViewAll.form.ordering": "Ordinamento",+ "agentViewAll.form.showSidebarHidden": "Mostra gli agenti nascosti dalla barra laterale",+ "agentViewAll.groupBy.author": "Autore",+ "agentViewAll.groupBy.none": "Nessun raggruppamento",+ "agentViewAll.groupBy.unknownAuthor": "Autore sconosciuto",+ "agentViewAll.myAgents": "I miei agenti",+ "agentViewAll.orderBy.author": "Autore",+ "agentViewAll.orderBy.title": "Titolo",+ "agentViewAll.orderBy.updatedAt": "Aggiornato il",+ "agentViewAll.removeFromSidebar": "Nascondi dalla barra laterale",+ "agentViewAll.title": "Agenti",+ "agentViewAll.untitled": "Agente senza titolo",+ "agentViewAll.view.card": "Scheda",+ "agentViewAll.view.list": "Elenco","alert.cloud.action": "Prova ora","alert.cloud.desc": "Tutti gli utenti registrati ricevono {{credit}} crediti di calcolo gratuiti al mese—nessuna configurazione necessaria. Include sincronizzazione cloud globale e ricerca web avanzata.","alert.cloud.descOnMobile": "Tutti gli utenti registrati ricevono {{credit}} crediti di calcolo gratuiti al mese—nessuna configurazione necessaria.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Cerca recenti...","navPanel.searchResultEmpty": "Nessun risultato trovato","navPanel.show": "Mostra",+ "navPanel.viewAllAgents": "Visualizza tutti","navPanel.visible": "Visibile","new": "Nuovo","noContent": "Nessun contenuto",diff --git a/locales/it-IT/electron.json b/locales/it-IT/electron.jsonindex 48912970d98..d4e996ae26c 100644--- a/locales/it-IT/electron.json+++ b/locales/it-IT/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Connessione al Gateway in corso...","gateway.statusDisconnected": "Non connesso al Gateway","gateway.title": "Gateway Dispositivo",+ "navigation.agents": "Agenti","navigation.chat": "Chat","navigation.discover": "Scopri","navigation.discoverAssistants": "Scopri Assistenti",diff --git a/locales/it-IT/verify.json b/locales/it-IT/verify.jsonindex e700c0fc440..26cf308276d 100644--- a/locales/it-IT/verify.json+++ b/locales/it-IT/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Tutte le accettazioni","acceptance.workspace.filters.completed": "Completate","acceptance.workspace.filters.empty.active": "Nessuna accettazione in corso.",+ "acceptance.workspace.filters.empty.all": "Nessuna accettazione ancora.","acceptance.workspace.filters.empty.completed": "Nessuna accettazione completata.","acceptance.workspace.filters.noSearchResults": "Nessuna accettazione corrisponde a “{{query}}”.","acceptance.workspace.filters.showAll": "Mostra tutte le accettazioni",diff --git a/locales/ja-JP/common.json b/locales/ja-JP/common.jsonindex 4b923f48e5f..fc57391e4bc 100644--- a/locales/ja-JP/common.json+++ b/locales/ja-JP/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "今すぐ試す","agentOnboardingPromo.description": "Lobe AI と短く会話するだけで、エージェントチームを設定できます。既存のエージェントは変更されません。","agentOnboardingPromo.title": "かんたん設定",+ "agentViewAll.addToSidebar": "サイドバーに表示",+ "agentViewAll.columns.author": "作成者",+ "agentViewAll.columns.name": "名前",+ "agentViewAll.columns.updatedAt": "最終更新日時",+ "agentViewAll.empty": "エージェントがまだありません",+ "agentViewAll.form.grouping": "グループ化",+ "agentViewAll.form.ordering": "並び替え",+ "agentViewAll.form.showSidebarHidden": "サイドバーから非表示のエージェントを表示",+ "agentViewAll.groupBy.author": "作成者",+ "agentViewAll.groupBy.none": "グループ化なし",+ "agentViewAll.groupBy.unknownAuthor": "不明な作成者",+ "agentViewAll.myAgents": "私のエージェント",+ "agentViewAll.orderBy.author": "作成者",+ "agentViewAll.orderBy.title": "タイトル",+ "agentViewAll.orderBy.updatedAt": "更新日時",+ "agentViewAll.removeFromSidebar": "サイドバーから非表示",+ "agentViewAll.title": "エージェント",+ "agentViewAll.untitled": "無題のエージェント",+ "agentViewAll.view.card": "カード",+ "agentViewAll.view.list": "リスト","alert.cloud.action": "今すぐ試す","alert.cloud.desc": "すべての登録ユーザーは毎月{{credit}}の無料コンピューティングクレジットを受け取れます—設定は不要です。グローバルクラウド同期と高度なウェブ検索が含まれます。","alert.cloud.descOnMobile": "すべての登録ユーザーは毎月{{credit}}の無料コンピューティングクレジットを受け取れます—設定は不要です。",@@ -380,6 +400,7 @@"navPanel.searchRecent": "最近の検索...","navPanel.searchResultEmpty": "検索結果がありません","navPanel.show": "表示",+ "navPanel.viewAllAgents": "すべて表示","navPanel.visible": "表示中","new": "新規","noContent": "コンテンツがありません",diff --git a/locales/ja-JP/electron.json b/locales/ja-JP/electron.jsonindex 81fb5ac148a..dbdbd71b213 100644--- a/locales/ja-JP/electron.json+++ b/locales/ja-JP/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "ゲートウェイに接続中...","gateway.statusDisconnected": "ゲートウェイに接続されていません","gateway.title": "デバイスゲートウェイ",+ "navigation.agents": "エージェント","navigation.chat": "チャット","navigation.discover": "発見","navigation.discoverAssistants": "アシスタントを発見",diff --git a/locales/ja-JP/verify.json b/locales/ja-JP/verify.jsonindex b1e6eb3ca33..743aca28bd8 100644--- a/locales/ja-JP/verify.json+++ b/locales/ja-JP/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "すべての受け入れ","acceptance.workspace.filters.completed": "完了","acceptance.workspace.filters.empty.active": "進行中の受け入れはありません。",+ "acceptance.workspace.filters.empty.all": "まだ承認がありません。","acceptance.workspace.filters.empty.completed": "完了した受け入れはありません。","acceptance.workspace.filters.noSearchResults": "「{{query}}」に一致する受け入れはありません。","acceptance.workspace.filters.showAll": "すべての受け入れを表示",diff --git a/locales/ko-KR/common.json b/locales/ko-KR/common.jsonindex ed9f3471df7..6499c12dd20 100644--- a/locales/ko-KR/common.json+++ b/locales/ko-KR/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "지금 사용해 보기","agentOnboardingPromo.description": "Lobe AI와 짧게 대화하며 에이전트 팀을 설정하세요. 기존 에이전트는 그대로 유지됩니다.","agentOnboardingPromo.title": "빠른 설정",+ "agentViewAll.addToSidebar": "사이드바에 표시",+ "agentViewAll.columns.author": "작성자",+ "agentViewAll.columns.name": "이름",+ "agentViewAll.columns.updatedAt": "마지막 업데이트 시간",+ "agentViewAll.empty": "아직 에이전트가 없습니다",+ "agentViewAll.form.grouping": "그룹화",+ "agentViewAll.form.ordering": "정렬",+ "agentViewAll.form.showSidebarHidden": "사이드바에서 숨겨진 에이전트 표시",+ "agentViewAll.groupBy.author": "작성자",+ "agentViewAll.groupBy.none": "그룹화 없음",+ "agentViewAll.groupBy.unknownAuthor": "알 수 없는 작성자",+ "agentViewAll.myAgents": "내 에이전트",+ "agentViewAll.orderBy.author": "작성자",+ "agentViewAll.orderBy.title": "제목",+ "agentViewAll.orderBy.updatedAt": "업데이트 시간",+ "agentViewAll.removeFromSidebar": "사이드바에서 숨기기",+ "agentViewAll.title": "에이전트",+ "agentViewAll.untitled": "제목 없는 에이전트",+ "agentViewAll.view.card": "카드",+ "agentViewAll.view.list": "목록","alert.cloud.action": "지금 체험하기","alert.cloud.desc": "모든 등록된 사용자는 매월 {{credit}}의 무료 컴퓨팅 크레딧을 받을 수 있습니다—설정이 필요하지 않습니다. 전 세계 클라우드 동기화 및 고급 웹 검색 기능이 포함되어 있습니다.","alert.cloud.descOnMobile": "모든 등록된 사용자는 매월 {{credit}}의 무료 컴퓨팅 크레딧을 받을 수 있습니다—설정이 필요하지 않습니다.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "최근 검색...","navPanel.searchResultEmpty": "검색 결과가 없습니다","navPanel.show": "표시",+ "navPanel.viewAllAgents": "모두 보기","navPanel.visible": "표시됨","new": "새로운","noContent": "내용이 없습니다",diff --git a/locales/ko-KR/electron.json b/locales/ko-KR/electron.jsonindex 92a2ab61727..4289e8b4a6c 100644--- a/locales/ko-KR/electron.json+++ b/locales/ko-KR/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "게이트웨이에 연결 중...","gateway.statusDisconnected": "게이트웨이에 연결되지 않음","gateway.title": "장치 게이트웨이",+ "navigation.agents": "에이전트","navigation.chat": "채팅","navigation.discover": "발견","navigation.discoverAssistants": "어시스턴트 발견",diff --git a/locales/ko-KR/verify.json b/locales/ko-KR/verify.jsonindex e66b242bd4c..98020305185 100644--- a/locales/ko-KR/verify.json+++ b/locales/ko-KR/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "모든 수락","acceptance.workspace.filters.completed": "완료됨","acceptance.workspace.filters.empty.active": "진행 중인 수락이 없습니다.",+ "acceptance.workspace.filters.empty.all": "아직 승인된 항목이 없습니다.","acceptance.workspace.filters.empty.completed": "완료된 수락이 없습니다.","acceptance.workspace.filters.noSearchResults": "“{{query}}”와 일치하는 수락이 없습니다.","acceptance.workspace.filters.showAll": "모든 수락 보기",diff --git a/locales/nl-NL/common.json b/locales/nl-NL/common.jsonindex 47ee7cc2130..4255b2a362b 100644--- a/locales/nl-NL/common.json+++ b/locales/nl-NL/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Nu proberen","agentOnboardingPromo.description": "Stel je agentteams in via een korte chat met Lobe AI. Je bestaande agenten blijven ongewijzigd.","agentOnboardingPromo.title": "Snelle wizard",+ "agentViewAll.addToSidebar": "Weergeven in zijbalk",+ "agentViewAll.columns.author": "Auteur",+ "agentViewAll.columns.name": "Naam",+ "agentViewAll.columns.updatedAt": "Laatste update tijd",+ "agentViewAll.empty": "Nog geen agents",+ "agentViewAll.form.grouping": "Groeperen",+ "agentViewAll.form.ordering": "Sorteren",+ "agentViewAll.form.showSidebarHidden": "Toon agents verborgen in zijbalk",+ "agentViewAll.groupBy.author": "Auteur",+ "agentViewAll.groupBy.none": "Geen groepering",+ "agentViewAll.groupBy.unknownAuthor": "Onbekende auteur",+ "agentViewAll.myAgents": "Mijn Agents",+ "agentViewAll.orderBy.author": "Auteur",+ "agentViewAll.orderBy.title": "Titel",+ "agentViewAll.orderBy.updatedAt": "Bijgewerkt op",+ "agentViewAll.removeFromSidebar": "Verbergen in zijbalk",+ "agentViewAll.title": "Agents",+ "agentViewAll.untitled": "Naamloze Agent",+ "agentViewAll.view.card": "Kaart",+ "agentViewAll.view.list": "Lijst","alert.cloud.action": "Probeer nu","alert.cloud.desc": "Alle geregistreerde gebruikers ontvangen {{credit}} gratis computertegoed per maand—geen installatie nodig. Inclusief wereldwijde cloud-synchronisatie en geavanceerd webzoeken.","alert.cloud.descOnMobile": "Alle geregistreerde gebruikers ontvangen {{credit}} gratis computertegoed per maand—geen installatie nodig.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Recente items zoeken...","navPanel.searchResultEmpty": "Geen zoekresultaten gevonden","navPanel.show": "Weergeven",+ "navPanel.viewAllAgents": "Bekijk alles","navPanel.visible": "Zichtbaar","new": "Nieuw","noContent": "Geen inhoud",diff --git a/locales/nl-NL/electron.json b/locales/nl-NL/electron.jsonindex aafd4dbda6c..313833caa01 100644--- a/locales/nl-NL/electron.json+++ b/locales/nl-NL/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Verbinden met Gateway...","gateway.statusDisconnected": "Niet verbonden met Gateway","gateway.title": "Apparaat Gateway",+ "navigation.agents": "Agenten","navigation.chat": "Chat","navigation.discover": "Ontdekken","navigation.discoverAssistants": "Assistenten Ontdekken",diff --git a/locales/nl-NL/verify.json b/locales/nl-NL/verify.jsonindex 49ea4b90186..17a24aecfd7 100644--- a/locales/nl-NL/verify.json+++ b/locales/nl-NL/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Alle acceptaties","acceptance.workspace.filters.completed": "Voltooid","acceptance.workspace.filters.empty.active": "Geen acceptaties in uitvoering.",+ "acceptance.workspace.filters.empty.all": "Nog geen acceptaties.","acceptance.workspace.filters.empty.completed": "Geen voltooide acceptaties.","acceptance.workspace.filters.noSearchResults": "Geen acceptaties komen overeen met “{{query}}”.","acceptance.workspace.filters.showAll": "Toon alle acceptaties",diff --git a/locales/pl-PL/common.json b/locales/pl-PL/common.jsonindex a5f7852e857..a195ac537ef 100644--- a/locales/pl-PL/common.json+++ b/locales/pl-PL/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Wypróbuj teraz","agentOnboardingPromo.description": "Skonfiguruj swoje zespoły agentów w krótkiej rozmowie z Lobe AI. Twoi obecni agenci pozostaną bez zmian.","agentOnboardingPromo.title": "Szybki kreator",+ "agentViewAll.addToSidebar": "Pokaż w pasku bocznym",+ "agentViewAll.columns.author": "Autor",+ "agentViewAll.columns.name": "Nazwa",+ "agentViewAll.columns.updatedAt": "Czas ostatniej aktualizacji",+ "agentViewAll.empty": "Brak agentów",+ "agentViewAll.form.grouping": "Grupowanie",+ "agentViewAll.form.ordering": "Sortowanie",+ "agentViewAll.form.showSidebarHidden": "Pokaż agentów ukrytych w pasku bocznym",+ "agentViewAll.groupBy.author": "Autor",+ "agentViewAll.groupBy.none": "Brak grupowania",+ "agentViewAll.groupBy.unknownAuthor": "Nieznany autor",+ "agentViewAll.myAgents": "Moje Agenty",+ "agentViewAll.orderBy.author": "Autor",+ "agentViewAll.orderBy.title": "Tytuł",+ "agentViewAll.orderBy.updatedAt": "Zaktualizowano",+ "agentViewAll.removeFromSidebar": "Ukryj w pasku bocznym",+ "agentViewAll.title": "Agenty",+ "agentViewAll.untitled": "Agent bez tytułu",+ "agentViewAll.view.card": "Karta",+ "agentViewAll.view.list": "Lista","alert.cloud.action": "Wypróbuj teraz","alert.cloud.desc": "Wszyscy zarejestrowani użytkownicy otrzymują {{credit}} darmowych kredytów obliczeniowych miesięcznie — bez potrzeby konfiguracji. Zawiera globalną synchronizację w chmurze i zaawansowane wyszukiwanie w sieci.","alert.cloud.descOnMobile": "Wszyscy zarejestrowani użytkownicy otrzymują {{credit}} darmowych kredytów obliczeniowych miesięcznie — bez potrzeby konfiguracji.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Szukaj w ostatnich...","navPanel.searchResultEmpty": "Brak wyników wyszukiwania","navPanel.show": "Pokaż",+ "navPanel.viewAllAgents": "Zobacz wszystkie","navPanel.visible": "Widoczne","new": "Nowy","noContent": "Brak treści",diff --git a/locales/pl-PL/electron.json b/locales/pl-PL/electron.jsonindex 852154014ab..90911310dbb 100644--- a/locales/pl-PL/electron.json+++ b/locales/pl-PL/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Łączenie z bramą...","gateway.statusDisconnected": "Nie połączono z bramą","gateway.title": "Bramka urządzenia",+ "navigation.agents": "Agenci","navigation.chat": "Czat","navigation.discover": "Odkryj","navigation.discoverAssistants": "Odkryj Asystentów",diff --git a/locales/pl-PL/verify.json b/locales/pl-PL/verify.jsonindex 1f9d060a6ed..6d4f36dac5b 100644--- a/locales/pl-PL/verify.json+++ b/locales/pl-PL/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Wszystkie akceptacje","acceptance.workspace.filters.completed": "Zakończone","acceptance.workspace.filters.empty.active": "Brak akceptacji w toku.",+ "acceptance.workspace.filters.empty.all": "Brak akceptacji.","acceptance.workspace.filters.empty.completed": "Brak zakończonych akceptacji.","acceptance.workspace.filters.noSearchResults": "Brak akceptacji pasujących do „{{query}}”.","acceptance.workspace.filters.showAll": "Pokaż wszystkie akceptacje",diff --git a/locales/pt-BR/common.json b/locales/pt-BR/common.jsonindex 3d4fdee2f86..3c77611b3ed 100644--- a/locales/pt-BR/common.json+++ b/locales/pt-BR/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Experimentar agora","agentOnboardingPromo.description": "Configure suas equipes de agentes em um chat rápido com a Lobe AI. Seus agentes atuais permanecem inalterados.","agentOnboardingPromo.title": "Assistente rápido",+ "agentViewAll.addToSidebar": "Mostrar na barra lateral",+ "agentViewAll.columns.author": "Autor",+ "agentViewAll.columns.name": "Nome",+ "agentViewAll.columns.updatedAt": "Última atualização",+ "agentViewAll.empty": "Nenhum agente ainda",+ "agentViewAll.form.grouping": "Agrupamento",+ "agentViewAll.form.ordering": "Ordenação",+ "agentViewAll.form.showSidebarHidden": "Mostrar agentes ocultos na barra lateral",+ "agentViewAll.groupBy.author": "Autor",+ "agentViewAll.groupBy.none": "Sem agrupamento",+ "agentViewAll.groupBy.unknownAuthor": "Autor desconhecido",+ "agentViewAll.myAgents": "Meus Agentes",+ "agentViewAll.orderBy.author": "Autor",+ "agentViewAll.orderBy.title": "Título",+ "agentViewAll.orderBy.updatedAt": "Atualizado em",+ "agentViewAll.removeFromSidebar": "Ocultar da barra lateral",+ "agentViewAll.title": "Agentes",+ "agentViewAll.untitled": "Agente sem título",+ "agentViewAll.view.card": "Cartão",+ "agentViewAll.view.list": "Lista","alert.cloud.action": "Experimente agora","alert.cloud.desc": "Todos os usuários registrados recebem {{credit}} créditos de computação gratuitos por mês — sem necessidade de configuração. Inclui sincronização em nuvem global e pesquisa avançada na web.","alert.cloud.descOnMobile": "Todos os usuários registrados recebem {{credit}} créditos de computação gratuitos por mês — sem necessidade de configuração.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Pesquisar recentes...","navPanel.searchResultEmpty": "Nenhum resultado encontrado","navPanel.show": "Mostrar",+ "navPanel.viewAllAgents": "Ver todos","navPanel.visible": "Visível","new": "Novo","noContent": "Sem conteúdo",diff --git a/locales/pt-BR/electron.json b/locales/pt-BR/electron.jsonindex bbb033233ea..96d4e21488f 100644--- a/locales/pt-BR/electron.json+++ b/locales/pt-BR/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Conectando ao Gateway...","gateway.statusDisconnected": "Não conectado ao Gateway","gateway.title": "Gateway de Dispositivo",+ "navigation.agents": "Agentes","navigation.chat": "Chat","navigation.discover": "Descobrir","navigation.discoverAssistants": "Descobrir Assistentes",diff --git a/locales/pt-BR/verify.json b/locales/pt-BR/verify.jsonindex 8ef6740e17d..73e813630e1 100644--- a/locales/pt-BR/verify.json+++ b/locales/pt-BR/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Todas as aceitações","acceptance.workspace.filters.completed": "Concluídas","acceptance.workspace.filters.empty.active": "Nenhuma aceitação em andamento.",+ "acceptance.workspace.filters.empty.all": "Ainda não há aceites.","acceptance.workspace.filters.empty.completed": "Nenhuma aceitação concluída.","acceptance.workspace.filters.noSearchResults": "Nenhuma aceitação corresponde a “{{query}}”.","acceptance.workspace.filters.showAll": "Mostrar todas as aceitações",diff --git a/locales/ru-RU/common.json b/locales/ru-RU/common.jsonindex 9a4042b1693..e15c5a19f3d 100644--- a/locales/ru-RU/common.json+++ b/locales/ru-RU/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Попробовать","agentOnboardingPromo.description": "Настройте свои команды агентов в коротком чате с Lobe AI. Ваши существующие агенты останутся без изменений.","agentOnboardingPromo.title": "Быстрый мастер",+ "agentViewAll.addToSidebar": "Показать в боковой панели",+ "agentViewAll.columns.author": "Автор",+ "agentViewAll.columns.name": "Название",+ "agentViewAll.columns.updatedAt": "Время последнего обновления",+ "agentViewAll.empty": "Агенты отсутствуют",+ "agentViewAll.form.grouping": "Группировка",+ "agentViewAll.form.ordering": "Сортировка",+ "agentViewAll.form.showSidebarHidden": "Показать агентов, скрытых из боковой панели",+ "agentViewAll.groupBy.author": "Автор",+ "agentViewAll.groupBy.none": "Без группировки",+ "agentViewAll.groupBy.unknownAuthor": "Неизвестный автор",+ "agentViewAll.myAgents": "Мои агенты",+ "agentViewAll.orderBy.author": "Автор",+ "agentViewAll.orderBy.title": "Название",+ "agentViewAll.orderBy.updatedAt": "Обновлено",+ "agentViewAll.removeFromSidebar": "Скрыть из боковой панели",+ "agentViewAll.title": "Агенты",+ "agentViewAll.untitled": "Безымянный агент",+ "agentViewAll.view.card": "Карточка",+ "agentViewAll.view.list": "Список","alert.cloud.action": "Попробовать сейчас","alert.cloud.desc": "Все зарегистрированные пользователи получают {{credit}} бесплатных вычислительных кредитов в месяц — без необходимости настройки. Включает глобальную синхронизацию и расширенный веб-поиск.","alert.cloud.descOnMobile": "Все зарегистрированные пользователи получают {{credit}} бесплатных вычислительных кредитов в месяц — без необходимости настройки.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Поиск недавних...","navPanel.searchResultEmpty": "Результаты не найдены","navPanel.show": "Показать",+ "navPanel.viewAllAgents": "Просмотреть всех","navPanel.visible": "Видимо","new": "Новый","noContent": "Нет содержимого",diff --git a/locales/ru-RU/electron.json b/locales/ru-RU/electron.jsonindex 811d1146128..f003ba8b4ce 100644--- a/locales/ru-RU/electron.json+++ b/locales/ru-RU/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Подключение к шлюзу...","gateway.statusDisconnected": "Не подключено к шлюзу","gateway.title": "Шлюз устройства",+ "navigation.agents": "Агенты","navigation.chat": "Чат","navigation.discover": "Открыть","navigation.discoverAssistants": "Открыть Ассистентов",diff --git a/locales/ru-RU/verify.json b/locales/ru-RU/verify.jsonindex 527f434e995..b1f2972a949 100644--- a/locales/ru-RU/verify.json+++ b/locales/ru-RU/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Все принятия","acceptance.workspace.filters.completed": "Завершено","acceptance.workspace.filters.empty.active": "Нет принятий в процессе.",+ "acceptance.workspace.filters.empty.all": "Пока нет принятых заявок.","acceptance.workspace.filters.empty.completed": "Нет завершенных принятий.","acceptance.workspace.filters.noSearchResults": "Нет принятий, соответствующих «{{query}}».","acceptance.workspace.filters.showAll": "Показать все принятия",diff --git a/locales/tr-TR/common.json b/locales/tr-TR/common.jsonindex 47c1fc46f41..86a5b66bf55 100644--- a/locales/tr-TR/common.json+++ b/locales/tr-TR/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Şimdi dene","agentOnboardingPromo.description": "Aracı ekiplerinizi Lobe AI ile kısa bir sohbet üzerinden kurun. Mevcut aracılarınız değişmeden kalır.","agentOnboardingPromo.title": "Hızlı sihirbaz",+ "agentViewAll.addToSidebar": "Kenar çubuğunda göster",+ "agentViewAll.columns.author": "Yazar",+ "agentViewAll.columns.name": "Ad",+ "agentViewAll.columns.updatedAt": "Son güncelleme zamanı",+ "agentViewAll.empty": "Henüz ajan yok",+ "agentViewAll.form.grouping": "Gruplama",+ "agentViewAll.form.ordering": "Sıralama",+ "agentViewAll.form.showSidebarHidden": "Kenar çubuğunda gizlenen ajanları göster",+ "agentViewAll.groupBy.author": "Yazar",+ "agentViewAll.groupBy.none": "Gruplama yok",+ "agentViewAll.groupBy.unknownAuthor": "Bilinmeyen yazar",+ "agentViewAll.myAgents": "Ajanlarım",+ "agentViewAll.orderBy.author": "Yazar",+ "agentViewAll.orderBy.title": "Başlık",+ "agentViewAll.orderBy.updatedAt": "Güncelleme zamanı",+ "agentViewAll.removeFromSidebar": "Kenar çubuğundan gizle",+ "agentViewAll.title": "Ajanlar",+ "agentViewAll.untitled": "Başlıksız Ajan",+ "agentViewAll.view.card": "Kart",+ "agentViewAll.view.list": "Liste","alert.cloud.action": "Şimdi dene","alert.cloud.desc": "Tüm kayıtlı kullanıcılar her ay {{credit}} ücretsiz işlem kredisi alır—kurulum gerekmez. Küresel bulut senkronizasyonu ve gelişmiş web araması dahildir.","alert.cloud.descOnMobile": "Tüm kayıtlı kullanıcılar her ay {{credit}} ücretsiz işlem kredisi alır—kurulum gerekmez.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Son Arananlar...","navPanel.searchResultEmpty": "Arama sonucu bulunamadı","navPanel.show": "Göster",+ "navPanel.viewAllAgents": "Tümünü görüntüle","navPanel.visible": "Görünür","new": "Yeni","noContent": "İçerik yok",diff --git a/locales/tr-TR/electron.json b/locales/tr-TR/electron.jsonindex 40885539e37..a1bf74bdf10 100644--- a/locales/tr-TR/electron.json+++ b/locales/tr-TR/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Ağ Geçidine Bağlanıyor...","gateway.statusDisconnected": "Ağ Geçidine Bağlı Değil","gateway.title": "Cihaz Ağ Geçidi",+ "navigation.agents": "Temsilciler","navigation.chat": "Sohbet","navigation.discover": "Keşfet","navigation.discoverAssistants": "Asistanları Keşfet",diff --git a/locales/tr-TR/verify.json b/locales/tr-TR/verify.jsonindex e67e05f1b69..02acbd110c9 100644--- a/locales/tr-TR/verify.json+++ b/locales/tr-TR/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Tüm kabuller","acceptance.workspace.filters.completed": "Tamamlandı","acceptance.workspace.filters.empty.active": "Devam eden kabul yok.",+ "acceptance.workspace.filters.empty.all": "Henüz kabul yok.","acceptance.workspace.filters.empty.completed": "Tamamlanmış kabul yok.","acceptance.workspace.filters.noSearchResults": "“{{query}}” ile eşleşen kabul yok.","acceptance.workspace.filters.showAll": "Tüm kabulleri göster",diff --git a/locales/vi-VN/common.json b/locales/vi-VN/common.jsonindex be747d6cd7a..e70e39c0608 100644--- a/locales/vi-VN/common.json+++ b/locales/vi-VN/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "Dùng thử ngay","agentOnboardingPromo.description": "Thiết lập các nhóm trợ lý của bạn qua một cuộc trò chuyện nhanh với Lobe AI. Các trợ lý hiện có của bạn sẽ không thay đổi.","agentOnboardingPromo.title": "Trình hướng dẫn nhanh",+ "agentViewAll.addToSidebar": "Hiển thị trong thanh bên",+ "agentViewAll.columns.author": "Tác giả",+ "agentViewAll.columns.name": "Tên",+ "agentViewAll.columns.updatedAt": "Thời gian cập nhật cuối",+ "agentViewAll.empty": "Chưa có tác nhân nào",+ "agentViewAll.form.grouping": "Nhóm",+ "agentViewAll.form.ordering": "Sắp xếp",+ "agentViewAll.form.showSidebarHidden": "Hiển thị các tác nhân ẩn khỏi thanh bên",+ "agentViewAll.groupBy.author": "Tác giả",+ "agentViewAll.groupBy.none": "Không nhóm",+ "agentViewAll.groupBy.unknownAuthor": "Tác giả không xác định",+ "agentViewAll.myAgents": "Tác nhân của tôi",+ "agentViewAll.orderBy.author": "Tác giả",+ "agentViewAll.orderBy.title": "Tiêu đề",+ "agentViewAll.orderBy.updatedAt": "Cập nhật lúc",+ "agentViewAll.removeFromSidebar": "Ẩn khỏi thanh bên",+ "agentViewAll.title": "Tác nhân",+ "agentViewAll.untitled": "Tác nhân chưa có tiêu đề",+ "agentViewAll.view.card": "Thẻ",+ "agentViewAll.view.list": "Danh sách","alert.cloud.action": "Dùng thử ngay","alert.cloud.desc": "Tất cả người dùng đã đăng ký nhận được {{credit}} tín dụng điện toán miễn phí mỗi tháng—không cần cài đặt. Bao gồm đồng bộ đám mây toàn cầu và tìm kiếm web nâng cao.","alert.cloud.descOnMobile": "Tất cả người dùng đã đăng ký nhận được {{credit}} tín dụng điện toán miễn phí mỗi tháng—không cần cài đặt.",@@ -380,6 +400,7 @@"navPanel.searchRecent": "Tìm kiếm gần đây...","navPanel.searchResultEmpty": "Không tìm thấy kết quả","navPanel.show": "Hiển thị",+ "navPanel.viewAllAgents": "Xem tất cả","navPanel.visible": "Hiển thị","new": "Mới","noContent": "Không có nội dung",diff --git a/locales/vi-VN/electron.json b/locales/vi-VN/electron.jsonindex dcd98f46155..fae1e783968 100644--- a/locales/vi-VN/electron.json+++ b/locales/vi-VN/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "Đang kết nối với Gateway...","gateway.statusDisconnected": "Chưa kết nối với Gateway","gateway.title": "Cổng thiết bị",+ "navigation.agents": "Đại lý","navigation.chat": "Trò chuyện","navigation.discover": "Khám phá","navigation.discoverAssistants": "Khám phá Trợ lý",diff --git a/locales/vi-VN/verify.json b/locales/vi-VN/verify.jsonindex 3988e14d7d8..45c8ab170b2 100644--- a/locales/vi-VN/verify.json+++ b/locales/vi-VN/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "Tất cả các chấp nhận","acceptance.workspace.filters.completed": "Đã hoàn thành","acceptance.workspace.filters.empty.active": "Không có chấp nhận nào đang tiến hành.",+ "acceptance.workspace.filters.empty.all": "Chưa có sự chấp nhận nào.","acceptance.workspace.filters.empty.completed": "Không có chấp nhận nào đã hoàn thành.","acceptance.workspace.filters.noSearchResults": "Không có chấp nhận nào khớp với “{{query}}”.","acceptance.workspace.filters.showAll": "Hiển thị tất cả các chấp nhận",diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.jsonindex 17f66df1383..8497772facd 100644--- a/locales/zh-CN/common.json+++ b/locales/zh-CN/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "立即体验","agentOnboardingPromo.description": "与 Lobe AI 快速聊几句,即可设置你的助理团队。你现有的助理不会受到影响。","agentOnboardingPromo.title": "快速向导",+ "agentViewAll.addToSidebar": "在侧边栏显示",+ "agentViewAll.columns.author": "作者",+ "agentViewAll.columns.name": "名称",+ "agentViewAll.columns.updatedAt": "最后更新时间",+ "agentViewAll.empty": "暂无助手",+ "agentViewAll.form.grouping": "分组",+ "agentViewAll.form.ordering": "排序",+ "agentViewAll.form.showSidebarHidden": "显示侧边栏隐藏的助手",+ "agentViewAll.groupBy.author": "作者",+ "agentViewAll.groupBy.none": "不分组",+ "agentViewAll.groupBy.unknownAuthor": "未知作者",+ "agentViewAll.myAgents": "我的助手",+ "agentViewAll.orderBy.author": "作者",+ "agentViewAll.orderBy.title": "标题",+ "agentViewAll.orderBy.updatedAt": "更新时间",+ "agentViewAll.removeFromSidebar": "在侧边栏隐藏",+ "agentViewAll.title": "助手",+ "agentViewAll.untitled": "未命名助手",+ "agentViewAll.view.card": "卡片",+ "agentViewAll.view.list": "列表","alert.cloud.action": "立即体验","alert.cloud.desc": "所有注册用户每月可获得 {{credit}} 免费积分—无需设置。包括全球云同步和高级网页搜索功能。","alert.cloud.descOnMobile": "所有注册用户每月可获得 {{credit}} 免费积分—无需设置。",@@ -380,6 +400,7 @@"navPanel.searchRecent": "搜索最近…","navPanel.searchResultEmpty": "暂无搜索结果","navPanel.show": "显示",+ "navPanel.viewAllAgents": "查看全部","navPanel.visible": "显示中","new": "新","noContent": "暂无内容",diff --git a/locales/zh-CN/electron.json b/locales/zh-CN/electron.jsonindex 6eeb3a7eb9c..eab97955f2b 100644--- a/locales/zh-CN/electron.json+++ b/locales/zh-CN/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "正在连接到网关...","gateway.statusDisconnected": "未连接到网关","gateway.title": "设备网关",+ "navigation.agents": "助手","navigation.chat": "对话","navigation.discover": "发现","navigation.discoverAssistants": "发现助理",diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.jsonindex c6c90c24646..55e02ccd6ef 100644--- a/locales/zh-TW/common.json+++ b/locales/zh-TW/common.json@@ -5,6 +5,26 @@"agentOnboardingPromo.actionLabel": "立即試用","agentOnboardingPromo.description": "和 Lobe AI 快速聊幾句,即可設定你的助理團隊。你現有的助理不會受到影響。","agentOnboardingPromo.title": "快速嚮導",+ "agentViewAll.addToSidebar": "顯示於側邊欄",+ "agentViewAll.columns.author": "作者",+ "agentViewAll.columns.name": "名稱",+ "agentViewAll.columns.updatedAt": "最後更新時間",+ "agentViewAll.empty": "尚無代理",+ "agentViewAll.form.grouping": "分組",+ "agentViewAll.form.ordering": "排序",+ "agentViewAll.form.showSidebarHidden": "顯示隱藏於側邊欄的代理",+ "agentViewAll.groupBy.author": "作者",+ "agentViewAll.groupBy.none": "無分組",+ "agentViewAll.groupBy.unknownAuthor": "未知作者",+ "agentViewAll.myAgents": "我的代理",+ "agentViewAll.orderBy.author": "作者",+ "agentViewAll.orderBy.title": "標題",+ "agentViewAll.orderBy.updatedAt": "更新時間",+ "agentViewAll.removeFromSidebar": "從側邊欄隱藏",+ "agentViewAll.title": "代理",+ "agentViewAll.untitled": "未命名代理",+ "agentViewAll.view.card": "卡片",+ "agentViewAll.view.list": "列表","alert.cloud.action": "免費體驗","alert.cloud.desc": "所有註冊用戶每月可獲得 {{credit}} 免費運算點數—無需設定。包含全球雲端同步與進階網頁搜尋功能。","alert.cloud.descOnMobile": "所有註冊用戶每月可獲得 {{credit}} 免費運算點數—無需設定。",@@ -380,6 +400,7 @@"navPanel.searchRecent": "搜尋最近項目...","navPanel.searchResultEmpty": "暫無搜尋結果","navPanel.show": "顯示",+ "navPanel.viewAllAgents": "查看全部","navPanel.visible": "可見","new": "新增","noContent": "暫無內容",diff --git a/locales/zh-TW/electron.json b/locales/zh-TW/electron.jsonindex 56849557259..db8299fef15 100644--- a/locales/zh-TW/electron.json+++ b/locales/zh-TW/electron.json@@ -8,6 +8,7 @@"gateway.statusConnecting": "正在連接到網關...","gateway.statusDisconnected": "未連接到網關","gateway.title": "設備網關",+ "navigation.agents": "代理","navigation.chat": "對話","navigation.discover": "發現","navigation.discoverAssistants": "發現助理",diff --git a/locales/zh-TW/verify.json b/locales/zh-TW/verify.jsonindex 8bb834f9bfc..664b05195e3 100644--- a/locales/zh-TW/verify.json+++ b/locales/zh-TW/verify.json@@ -207,6 +207,7 @@"acceptance.workspace.filters.all": "所有驗收","acceptance.workspace.filters.completed": "已完成","acceptance.workspace.filters.empty.active": "目前沒有進行中的驗收。",+ "acceptance.workspace.filters.empty.all": "尚無任何接受。","acceptance.workspace.filters.empty.completed": "目前沒有已完成的驗收。","acceptance.workspace.filters.noSearchResults": "沒有符合「{{query}}」的驗收。","acceptance.workspace.filters.showAll": "顯示所有驗收",diff --git a/packages/database/src/models/__tests__/sessionGroup.test.ts b/packages/database/src/models/__tests__/sessionGroup.test.tsindex 4dfaf8adbcf..8540b207619 100644--- a/packages/database/src/models/__tests__/sessionGroup.test.ts+++ b/packages/database/src/models/__tests__/sessionGroup.test.ts@@ -190,7 +190,10 @@ describe('SessionGroupModel', () => {});describe('ownership visibility filter', () => {- it('should let another member see public folders but not the owner’s private folder', async () => {+ // Folders are a per-member concern in workspace mode: each member sees+ // and manages ONLY their own folders regardless of visibility (which+ // now merely decides the sidebar section a folder renders in).+ it('should scope a member to their own folders only', async () => {const ownerPrivate = await ownerModel.create({name: 'Owner Private',visibility: 'private',@@ -207,19 +210,37 @@ describe('SessionGroupModel', () => {const seenByMember = await memberModel.query();const ids = seenByMember.map((row) => row.id).sort();- expect(ids).toContain(ownerPublic.id);expect(ids).toContain(memberPrivate.id);+ expect(ids).not.toContain(ownerPublic.id);expect(ids).not.toContain(ownerPrivate.id);});- it('should return undefined when a member reads another member’s private folder by id', async () => {+ it('should return undefined when a member reads another member’s folder by id', async () => {const ownerPrivate = await ownerModel.create({name: 'Owner Private',visibility: 'private',});+ const ownerPublic = await ownerModel.create({+ name: 'Owner Public',+ visibility: 'public',+ });- const found = await memberModel.findById(ownerPrivate.id);- expect(found).toBeUndefined();+ expect(await memberModel.findById(ownerPrivate.id)).toBeUndefined();+ expect(await memberModel.findById(ownerPublic.id)).toBeUndefined();+ });++ it('should not delete another member’s folder even by id', async () => {+ const ownerPublic = await ownerModel.create({+ name: 'Owner Public',+ visibility: 'public',+ });++ await memberModel.delete(ownerPublic.id);++ const stillThere = await serverDB.query.sessionGroups.findFirst({+ where: eq(sessionGroups.id, ownerPublic.id),+ });+ expect(stillThere).toBeDefined();});});diff --git a/packages/database/src/models/sessionGroup.ts b/packages/database/src/models/sessionGroup.tsindex af67caec29f..678fab970d6 100644--- a/packages/database/src/models/sessionGroup.ts+++ b/packages/database/src/models/sessionGroup.ts@@ -17,8 +17,13 @@ export class SessionGroupModel {this.workspaceId = workspaceId;}- private ownership = () =>- buildWorkspaceWhere(+ // Sidebar folders are a per-member concern: in workspace mode every member+ // sees and manages ONLY their own folders (visibility still decides which+ // sidebar section a folder renders in). This deliberately diverges from the+ // shared "public rows + own private rows" predicate other resources use —+ // one member's folder edits must never reshape another member's sidebar.+ private ownership = () => {+ const shared = buildWorkspaceWhere({ userId: this.userId, workspaceId: this.workspaceId },{userId: sessionGroups.userId,@@ -26,6 +31,9 @@ export class SessionGroupModel {visibility: sessionGroups.visibility,},);+ if (!this.workspaceId) return shared;+ return and(shared, eq(sessionGroups.userId, this.userId))!;+ };create = async (params: { name: string; sort?: number; visibility?: 'private' | 'public' }) => {const [result] = await this.dbdiff --git a/packages/database/src/models/workspaceUserSettings.ts b/packages/database/src/models/workspaceUserSettings.tsindex 102f9d799a8..1903326bb88 100644--- a/packages/database/src/models/workspaceUserSettings.ts+++ b/packages/database/src/models/workspaceUserSettings.ts@@ -100,6 +100,14 @@ export class WorkspaceUserSettingsModel {},}: {}),+ ...(patch.sidebarGroupAssignments+ ? {+ sidebarGroupAssignments: {+ ...current.sidebarGroupAssignments,+ ...patch.sidebarGroupAssignments,+ },+ }+ : {}),};const [row] = await this.db.insert(workspaceUserSettings)diff --git a/packages/database/src/repositories/home/index.ts b/packages/database/src/repositories/home/index.tsindex ad5ae1e0003..d61080fdf12 100644--- a/packages/database/src/repositories/home/index.ts+++ b/packages/database/src/repositories/home/index.ts@@ -14,6 +14,7 @@ import {sessionGroups,sessions,topics,+ workspaceUserSettings,} from '../../schemas';import { type LobeChatDatabase } from '../../type';import { sanitizeBm25Query } from '../../utils/bm25';@@ -132,7 +133,16 @@ export class HomeRepository {// loaded topics for.const { agentUnread, groupUnread } = await this.getUnreadCounts();- // 3. Query all sessionGroups (user-defined folders)+ // 3. Query sessionGroups (user-defined folders). Folders are a per-member+ // concern in workspace mode: only the caller's own folders render —+ // another member's folder must never shape this caller's sidebar. Items+ // whose groupId points at a folder invisible to the caller fall back to+ // the ungrouped list in processAgentList.+ const folderWhere = buildWorkspaceWhere(this.scope, {+ userId: sessionGroups.userId,+ workspaceId: sessionGroups.workspaceId,+ visibility: sessionGroups.visibility,+ });const groupList = await this.db.select({id: sessionGroups.id,@@ -143,14 +153,26 @@ export class HomeRepository {}).from(sessionGroups).where(- buildWorkspaceWhere(this.scope, {- userId: sessionGroups.userId,- workspaceId: sessionGroups.workspaceId,- visibility: sessionGroups.visibility,- }),+ this.workspaceId ? and(folderWhere, eq(sessionGroups.userId, this.userId)) : folderWhere,).orderBy(sessionGroups.sort);+ // 3.5 Per-member folder assignments: workspace members organize shared+ // items into their own folders without touching the shared+ // `agents.sessionGroupId` column (one member's drag must not regroup+ // another member's sidebar). The shared column remains the fallback for+ // items the caller never reassigned.+ let assignmentOverrides: Record<string, string | null> = {};+ if (this.workspaceId) {+ const settings = await this.db.query.workspaceUserSettings.findFirst({+ where: and(+ eq(workspaceUserSettings.workspaceId, this.workspaceId),+ eq(workspaceUserSettings.userId, this.userId),+ ),+ });+ assignmentOverrides = settings?.preference?.sidebarGroupAssignments ?? {};+ }+// 4. Process and categorizereturn this.processAgentList(agentList,@@ -159,6 +181,7 @@ export class HomeRepository {memberAvatarsMap,agentUnread,groupUnread,+ assignmentOverrides,);}@@ -252,7 +275,12 @@ export class HomeRepository {memberAvatarsMap: Map<string, Array<{ avatar: string; background?: string }>>,agentUnread: Map<string, number> = new Map(),groupUnread: Map<string, number> = new Map(),+ assignmentOverrides: Record<string, string | null> = {},): SidebarAgentListResponse {+ // Per-member folder choice wins over the shared column; `null` means the+ // caller explicitly moved the item back to the default (ungrouped) list.+ const effectiveGroupId = (itemId: string, sharedGroupId: string | null): string | null =>+ itemId in assignmentOverrides ? assignmentOverrides[itemId] : sharedGroupId;// Convert to unified format// For pinned status: agents.pinned takes priority, fallback to sessions.pinned for backward compatibility// For groupId: agents.sessionGroupId takes priority, fallback to sessions.groupId for backward compatibility@@ -273,7 +301,7 @@ export class HomeRepository {avatar: meta.avatar,backgroundColor: a.backgroundColor,description: a.description,- groupId: a.agentSessionGroupId ?? a.sessionGroupId,+ groupId: effectiveGroupId(a.id, a.agentSessionGroupId ?? a.sessionGroupId),heterogeneousType: a.agencyConfig?.heterogeneousProvider?.type ?? null,id: a.id,isPrivate: visibility === 'private',@@ -297,7 +325,7 @@ export class HomeRepository {backgroundColor: g.backgroundColor,description: g.description,groupAvatar: g.avatar,- groupId: g.groupId,+ groupId: effectiveGroupId(g.id, g.groupId),id: g.id,isPrivate: visibility === 'private',pinned: g.pinned ?? false,diff --git a/packages/locales/src/default/common.ts b/packages/locales/src/default/common.tsindex ba80d54aede..562d9ead63d 100644--- a/packages/locales/src/default/common.ts+++ b/packages/locales/src/default/common.ts@@ -8,6 +8,26 @@ export default {'All registered users get {{credit}} free credits per month—no setup needed.','alert.cloud.title': '{{name}} beta is live','agentOnboardingPromo.actionLabel': 'Try it now',+ 'agentViewAll.addToSidebar': 'Show in sidebar',+ 'agentViewAll.columns.author': 'Author',+ 'agentViewAll.columns.name': 'Name',+ 'agentViewAll.columns.updatedAt': 'Last update time',+ 'agentViewAll.empty': 'No agents yet',+ 'agentViewAll.form.grouping': 'Grouping',+ 'agentViewAll.form.ordering': 'Ordering',+ 'agentViewAll.form.showSidebarHidden': 'Show agents hidden from sidebar',+ 'agentViewAll.groupBy.author': 'Author',+ 'agentViewAll.groupBy.none': 'No grouping',+ 'agentViewAll.groupBy.unknownAuthor': 'Unknown author',+ 'agentViewAll.myAgents': 'My Agents',+ 'agentViewAll.orderBy.author': 'Author',+ 'agentViewAll.orderBy.title': 'Title',+ 'agentViewAll.orderBy.updatedAt': 'Updated at',+ 'agentViewAll.removeFromSidebar': 'Hide from sidebar',+ 'agentViewAll.title': 'Agents',+ 'agentViewAll.untitled': 'Untitled Agent',+ 'agentViewAll.view.card': 'Card',+ 'agentViewAll.view.list': 'List','agentOnboardingPromo.description':'Set up your agent teams in a quick chat with Lobe AI. Your existing agents remain unchanged.','agentOnboardingPromo.title': 'Quick Wizard',@@ -460,6 +480,7 @@ export default {'navPanel.show': 'Show','navPanel.visible': 'Visible','navPanel.searchAgent': 'Search Agent...',+ 'navPanel.viewAllAgents': 'View all','navPanel.searchRecent': 'Search Recent...','navPanel.searchResultEmpty': 'No search results found','new': 'New',diff --git a/packages/locales/src/default/electron.ts b/packages/locales/src/default/electron.tsindex 6344c2345e0..02736230d23 100644--- a/packages/locales/src/default/electron.ts+++ b/packages/locales/src/default/electron.ts@@ -1,4 +1,5 @@export default {+ 'navigation.agents': 'Agents','navigation.chat': 'Chat','navigation.discover': 'Discover','navigation.discoverAssistants': 'Discover Agents',diff --git a/packages/types/src/user/preference.ts b/packages/types/src/user/preference.tsindex 2efa77f5a26..d21a4f185cb 100644--- a/packages/types/src/user/preference.ts+++ b/packages/types/src/user/preference.ts@@ -45,12 +45,47 @@ export interface AgentDeviceOverride {* deserve its own column (à la `user_settings.hotkey` / `user_settings.tts`),* split it out at that point.*/+/**+ * Per-user sidebar layout config for one workspace. Mirrors the two+ * client-side `status.workspace.*` overlay fields that are worth syncing+ * across devices; expansion state stays device-local.+ */+export interface SidebarLayoutPreference {+ /** Section keys hidden from the sidebar (customize-sidebar "Hide"). */+ hiddenSections?: string[];+ /** Full sidebar item order, including the flex-spacer sentinel. */+ items?: string[];+}+export interface WorkspaceUserPreference {agentDeviceOverrides?: Record<string /* agentId */, AgentDeviceOverride>;/** Personal model choices for workspace agents that allow member selection. */agentModelOverrides?: Record<string /* agentId */, AgentModelOverride>;/** Per-member Agent/Chat runtime mode for shared workspace agents. */agentModeOverrides?: Record<string /* agentId */, boolean>;+ /**+ * Per-member sidebar sections layout (order + hidden sections). Written as+ * a complete object on every update — partial patches would drop the+ * sibling field through the model's top-level merge.+ */+ sidebar?: SidebarLayoutPreference;+ /**+ * Per-member folder assignment for sidebar items (agentId/chatGroupId →+ * sessionGroupId). Folders are per-member in workspace mode, so moving a+ * shared item into "my" folder must not rewrite the shared+ * `agents.sessionGroupId` column (which would regroup every member's+ * sidebar). `null` = explicitly moved back to the default list. Items+ * absent here fall back to the shared column.+ */+ sidebarGroupAssignments?: Record<string /* itemId */, string | null>;+ /**+ * Sidebar agents/chat-groups the caller removed from their own sidebar+ * ("加入/移出左侧边栏" on the View All page). Every item is listed by+ * default (no entry here); removal hides it from this member's sidebar+ * only — the shared 置顶 `agents.pinned` column and other members are+ * untouched. Distinct from pinning: this is membership, not ordering.+ */+ sidebarHiddenAgentIds?: string[];}export interface LobeUser {@@ -165,6 +200,12 @@ export interface UserPreference {* context. Stored as id (not slug) so workspace renames don't invalidate it.*/lastWorkspaceId?: string | null;+ /**+ * Personal-mode counterpart of+ * {@link WorkspaceUserPreference.sidebarHiddenAgentIds}: agents/chat-groups+ * removed from the personal sidebar via the View All page.+ */+ sidebarHiddenAgentIds?: string[];/*** @deprecated Use settings.general.telemetry instead*/@@ -238,6 +279,7 @@ export const UserPreferenceSchema = zhideSyncAlert: z.boolean().optional(),lab: UserLabSchema.optional(),lastWorkspaceId: z.string().nullish(),+ sidebarHiddenAgentIds: z.array(z.string()).optional(),terminalFontFamily: z.string().optional(),telemetry: z.boolean().nullable(),topicGroupMode: z.enum(['byTime', 'byProject', 'flat', 'byStatus']).optional(),diff --git a/src/business/client/hooks/useWorkspaceMembers.ts b/src/business/client/hooks/useWorkspaceMembers.tsindex 1b557dea0f6..55d72d9a266 100644--- a/src/business/client/hooks/useWorkspaceMembers.ts+++ b/src/business/client/hooks/useWorkspaceMembers.ts@@ -1,3 +1,19 @@import type { WorkspaceMemberItem } from '@lobechat/database/schemas';-export const useWorkspaceMembers = (): WorkspaceMemberItem[] => [];+export interface WorkspaceMemberUserProfile {+ avatar?: string | null;+ email?: string | null;+ fullName?: string | null;+ username?: string | null;+}++/**+ * Membership row enriched with the member's display profile. The OSS build+ * has no workspace membership, so the stub returns an empty list; cloud+ * overrides this hook with the real workspace store data.+ */+export type WorkspaceMemberWithProfile = WorkspaceMemberItem & {+ user?: WorkspaceMemberUserProfile | null;+};++export const useWorkspaceMembers = (): WorkspaceMemberWithProfile[] => [];diff --git a/src/features/AgentViewAll/AgentAvatar.tsx b/src/features/AgentViewAll/AgentAvatar.tsxnew file mode 100644index 00000000000..b0cf4a78437--- /dev/null+++ b/src/features/AgentViewAll/AgentAvatar.tsx@@ -0,0 +1,39 @@+'use client';++import { DEFAULT_AVATAR } from '@lobechat/const';+import { type SidebarAgentItem } from '@lobechat/types';+import { Avatar } from '@lobehub/ui';+import { memo } from 'react';++import AgentGroupAvatar from '@/features/AgentGroupAvatar';++interface AgentAvatarProps {+ item: SidebarAgentItem;+ size: number;+}++/** Agent avatar that renders the stacked group variant for group chats. */+const AgentAvatar = memo<AgentAvatarProps>(({ item, size }) => {+ const { avatar, backgroundColor, type } = item;++ return type === 'group' ? (+ <AgentGroupAvatar+ avatar={typeof avatar === 'string' ? avatar : undefined}+ backgroundColor={backgroundColor || undefined}+ memberAvatars={Array.isArray(avatar) ? avatar : []}+ size={size}+ />+ ) : (+ <Avatar+ emojiScaleWithBackground+ avatar={typeof avatar === 'string' ? avatar : DEFAULT_AVATAR}+ background={backgroundColor || undefined}+ shape={'square'}+ size={size}+ />+ );+});++AgentAvatar.displayName = 'AgentViewAllAgentAvatar';++export default AgentAvatar;diff --git a/src/features/AgentViewAll/AgentCard.tsx b/src/features/AgentViewAll/AgentCard.tsxnew file mode 100644index 00000000000..097580a4fc1--- /dev/null+++ b/src/features/AgentViewAll/AgentCard.tsx@@ -0,0 +1,176 @@+'use client';++import { AGENT_CHAT_URL, DEFAULT_AVATAR, GROUP_CHAT_URL } from '@lobechat/const';+import { type SidebarAgentItem } from '@lobechat/types';+import { ActionIcon, Avatar, Block, Flexbox, Text } from '@lobehub/ui';+import { DropdownMenu } from '@lobehub/ui/base-ui';+import { createStaticStyles, responsive } from 'antd-style';+import { EllipsisIcon, EyeIcon, EyeOffIcon } from 'lucide-react';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++import WorkspaceLink from '@/features/Workspace/WorkspaceLink';++import AgentAvatar from './AgentAvatar';+import { type AgentRowAuthor, formatUpdatedAt } from './AgentRow';++// Card layout mirrors the agent channel platform cards+// (src/routes/(main)/agent/channel/list.tsx): icon + title + trailing state on+// one row, a two-line description below, hover lift on the whole card.+export const cardStyles = createStaticStyles(({ css, cssVar }) => ({+ card: css`+ display: flex;+ flex-direction: column;+ gap: 8px;+ align-items: stretch;++ min-height: 104px;+ padding-block: 12px;+ padding-inline: 12px;++ transition:+ transform 0.18s,+ box-shadow 0.18s,+ border-color 0.18s;++ &:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgb(0 0 0 / 6%);+ }+ `,+ description: css`+ overflow: hidden;+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;++ line-height: 1.5;+ `,+ grid: css`+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 12px;++ width: 100%;+ min-width: 0;++ ${responsive.md} {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }++ ${responsive.sm} {+ grid-template-columns: minmax(0, 1fr);+ }+ `,+ link: css`+ display: block;+ min-width: 0;+ color: inherit;+ `,+ updatedAt: css`+ flex: none;+ color: ${cssVar.colorTextQuaternary};+ `,+}));++interface AgentCardProps {+ /** Creator profile; rendered only when `showAuthor` is set. */+ author?: AgentRowAuthor | null;+ item: SidebarAgentItem;+ /** Toggle whether this item appears in the caller's sidebar. */+ onToggleSidebar?: (item: SidebarAgentItem) => void;+ /** Whether to render the author info (workspace mode). */+ showAuthor?: boolean;+ /** Whether the caller removed this item from their sidebar (default listed). */+ sidebarHidden?: boolean;+}++const AgentCard = memo<AgentCardProps>(+ ({ author, item, onToggleSidebar, showAuthor, sidebarHidden }) => {+ const { t } = useTranslation('common');+ const { description, id, title, type, updatedAt } = item;++ const handleToggleSidebar = useCallback(() => {+ onToggleSidebar?.(item);+ }, [item, onToggleSidebar]);++ return (+ <WorkspaceLink+ aria-label={title || undefined}+ className={cardStyles.link}+ to={type === 'group' ? GROUP_CHAT_URL(id) : AGENT_CHAT_URL(id, false)}+ >+ <Block clickable className={cardStyles.card} height={'100%'} variant={'outlined'}>+ <Flexbox horizontal align={'center'} gap={8} style={{ minWidth: 0 }}>+ <AgentAvatar item={item} size={24} />+ <Text ellipsis style={{ flex: 1, minWidth: 0 }} weight={600}>+ {title || t('agentViewAll.untitled')}+ </Text>+ {onToggleSidebar && (+ <Flexbox+ flex={'none'}+ onClick={(e) => {+ // Keep the menu from following the card link.+ e.preventDefault();+ e.stopPropagation();+ }}+ >+ <DropdownMenu+ nativeButton={false}+ items={[+ {+ icon: sidebarHidden ? EyeIcon : EyeOffIcon,+ key: 'sidebar',+ label: sidebarHidden+ ? t('agentViewAll.addToSidebar')+ : t('agentViewAll.removeFromSidebar'),+ onClick: handleToggleSidebar,+ },+ ]}+ >+ <ActionIcon icon={EllipsisIcon} size={'small'} />+ </DropdownMenu>+ </Flexbox>+ )}+ </Flexbox>+ <Text className={cardStyles.description} fontSize={12} type={'secondary'}>+ {description}+ </Text>+ <Flexbox+ horizontal+ align={'center'}+ gap={8}+ justify={'space-between'}+ style={{ marginBlockStart: 'auto' }}+ >+ {showAuthor ? (+ <Flexbox horizontal align={'center'} gap={6} style={{ minWidth: 0 }}>+ {author ? (+ <>+ <Avatar avatar={author.avatar || DEFAULT_AVATAR} size={18} />+ <Text ellipsis fontSize={12} type={'secondary'}>+ {author.name}+ </Text>+ </>+ ) : (+ <Text fontSize={12} type={'secondary'}>+ –+ </Text>+ )}+ </Flexbox>+ ) : (+ <div />+ )}+ <Text className={cardStyles.updatedAt} fontSize={12}>+ {updatedAt ? formatUpdatedAt(updatedAt) : '–'}+ </Text>+ </Flexbox>+ </Block>+ </WorkspaceLink>+ );+ },+);++AgentCard.displayName = 'AgentCard';++export default AgentCard;diff --git a/src/features/AgentViewAll/AgentRow.tsx b/src/features/AgentViewAll/AgentRow.tsxnew file mode 100644index 00000000000..145de7bb41e--- /dev/null+++ b/src/features/AgentViewAll/AgentRow.tsx@@ -0,0 +1,157 @@+'use client';++import { AGENT_CHAT_URL, DEFAULT_AVATAR, GROUP_CHAT_URL } from '@lobechat/const';+import { type SidebarAgentItem } from '@lobechat/types';+import { ActionIcon, Avatar, Flexbox, Text } from '@lobehub/ui';+import { createStaticStyles, cssVar } from 'antd-style';+import dayjs from 'dayjs';+import { EyeIcon, EyeOffIcon } from 'lucide-react';+import { memo, type MouseEvent, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++import WorkspaceLink from '@/features/Workspace/WorkspaceLink';++import AgentAvatar from './AgentAvatar';++/** Shared column widths so the table header and rows stay aligned. */+export const AUTHOR_COL_WIDTH = 180;+export const TIME_COL_WIDTH = 130;+export const ACTION_COL_WIDTH = 56;++const styles = createStaticStyles(({ css, cssVar }) => ({+ description: css`+ max-width: min(720px, 100%);+ `,+ row: css`+ cursor: pointer;++ padding-block: 8px;+ padding-inline: 12px;+ border-radius: ${cssVar.borderRadiusLG};++ color: inherit;++ &:hover {+ background: ${cssVar.colorFillTertiary};+ }+ `,+ updatedAt: css`+ flex: none;+ color: ${cssVar.colorTextQuaternary};+ `,+}));++/** < 7 days → relative time; older → plain date (mirrors TopicSelector). */+export const formatUpdatedAt = (updatedAt: Date | number | string) =>+ dayjs().diff(dayjs(updatedAt), 'd') < 7+ ? dayjs(updatedAt).fromNow()+ : dayjs(updatedAt).format('YYYY-MM-DD');++export interface AgentRowAuthor {+ avatar?: string | null;+ name?: string | null;+}++interface AgentRowProps {+ /** Creator profile; rendered only when `showAuthor` is set. */+ author?: AgentRowAuthor | null;+ item: SidebarAgentItem;+ /**+ * Toggle whether this item appears in the caller's sidebar. A membership+ * action, deliberately distinct from the sidebar's own 置顶 pin+ * (`agents.pinned`) — that stays untouched.+ */+ onToggleSidebar?: (item: SidebarAgentItem) => void;+ /** Whether to render the author column (workspace mode). */+ showAuthor?: boolean;+ /** Whether the caller removed this item from their sidebar (default listed). */+ sidebarHidden?: boolean;+}++const AgentRow = memo<AgentRowProps>(+ ({ author, item, onToggleSidebar, showAuthor, sidebarHidden }) => {+ const { t } = useTranslation('common');+ const { description, id, title, type, updatedAt } = item;++ const handleToggleSidebar = useCallback(+ (e: MouseEvent) => {+ // Keep the toggle from following the row link.+ e.preventDefault();+ e.stopPropagation();+ onToggleSidebar?.(item);+ },+ [item, onToggleSidebar],+ );++ return (+ <WorkspaceLink+ aria-label={title || undefined}+ className={styles.row}+ to={type === 'group' ? GROUP_CHAT_URL(id) : AGENT_CHAT_URL(id, false)}+ >+ <Flexbox horizontal align={'center'} gap={12}>+ <AgentAvatar item={item} size={36} />+ <Flexbox flex={1} gap={2} style={{ minWidth: 0 }}>+ <Text ellipsis weight={500}>+ {title || t('agentViewAll.untitled')}+ </Text>+ {description && (+ <Text ellipsis className={styles.description} fontSize={12} type={'secondary'}>+ {description}+ </Text>+ )}+ </Flexbox>+ {showAuthor && (+ <Flexbox+ horizontal+ align={'center'}+ flex={'none'}+ gap={6}+ style={{ width: AUTHOR_COL_WIDTH }}+ >+ {author ? (+ <>+ <Avatar avatar={author.avatar || DEFAULT_AVATAR} size={20} />+ <Text ellipsis fontSize={12} type={'secondary'}>+ {author.name}+ </Text>+ </>+ ) : (+ <Text fontSize={12} type={'secondary'}>+ –+ </Text>+ )}+ </Flexbox>+ )}+ <Text className={styles.updatedAt} fontSize={12} style={{ width: TIME_COL_WIDTH }}>+ {updatedAt ? formatUpdatedAt(updatedAt) : '–'}+ </Text>+ {onToggleSidebar ? (+ <Flexbox align={'center'} flex={'none'} style={{ width: ACTION_COL_WIDTH }}>+ <ActionIcon+ color={cssVar.colorTextSecondary}+ icon={sidebarHidden ? EyeOffIcon : EyeIcon}+ size={'small'}+ // Hidden agents read as faded, mirroring the customize-sidebar+ // modal's 0.5-opacity treatment of hidden rows.+ style={{ opacity: sidebarHidden ? 0.5 : undefined }}+ title={+ sidebarHidden+ ? t('agentViewAll.addToSidebar')+ : t('agentViewAll.removeFromSidebar')+ }+ onClick={handleToggleSidebar}+ />+ </Flexbox>+ ) : (+ <div style={{ flex: 'none', width: ACTION_COL_WIDTH }} />+ )}+ </Flexbox>+ </WorkspaceLink>+ );+ },+);++AgentRow.displayName = 'AgentRow';++export default AgentRow;diff --git a/src/features/AgentViewAll/AgentViewAllPage.tsx b/src/features/AgentViewAll/AgentViewAllPage.tsxnew file mode 100644index 00000000000..6a7ec82afcd--- /dev/null+++ b/src/features/AgentViewAll/AgentViewAllPage.tsx@@ -0,0 +1,416 @@+'use client';++import { type SidebarAgentItem } from '@lobechat/types';+import { Center, Empty, Flexbox, Icon, SearchBar, Text, Tooltip } from '@lobehub/ui';+import { Button, DropdownMenu, Segmented } from '@lobehub/ui/base-ui';+import dayjs from 'dayjs';+import isEqual from 'fast-deep-equal';+import { ChevronDownIcon, PlusIcon } from 'lucide-react';+import { memo, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useSearchParams } from 'react-router';++import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import { useWorkspaceMembers } from '@/business/client/hooks/useWorkspaceMembers';+import NavHeader from '@/features/NavHeader';+import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import WideScreenContainer from '@/features/WideScreenContainer';+import { useFetchAgentList } from '@/hooks/useFetchAgentList';+import { usePermission } from '@/hooks/usePermission';+import { AgentModalProvider } from '@/routes/(main)/home/_layout/Body/Agent/ModalProvider';+import { useCreateMenuItems } from '@/routes/(main)/home/_layout/hooks';+import { useGlobalStore } from '@/store/global';+import { systemStatusSelectors } from '@/store/global/selectors';+import { useHomeStore } from '@/store/home';+import { homeAgentListSelectors } from '@/store/home/selectors';+import { useUserStore } from '@/store/user';+import { workspaceUserSettingsSelectors } from '@/store/user/selectors';++import AgentCard, { cardStyles } from './AgentCard';+import AgentRow, { type AgentRowAuthor } from './AgentRow';+import ListConfig from './ListConfig';+import { type AgentListViewOptions, normalizeAgentListViewOptions } from './listViewOptions';+import TableHeader from './TableHeader';++type SegmentValue = 'private' | 'workspace';+type ViewMode = 'card' | 'list';++/** Flatten sidebar buckets into one list, first occurrence of an id wins. */+const dedupeById = (items: SidebarAgentItem[]): SidebarAgentItem[] => {+ const seen = new Set<string>();+ return items.filter((item) => {+ if (seen.has(item.id)) return false;+ seen.add(item.id);+ return true;+ });+};++const AgentViewAllPage = memo(() => {+ const { t } = useTranslation('common');+ const activeWorkspaceId = useActiveWorkspaceId();+ // `?tab=private` lands the page on the Private tab, so each sidebar+ // section's "View all" arrow opens its own bucket. The URL is the single+ // source of truth — the page stays mounted across same-route navigations+ // (Workspace-arrow while on the Private tab), so local state would go stale.+ const [searchParams, setSearchParams] = useSearchParams();+ const segment: SegmentValue = searchParams.get('tab') === 'private' ? 'private' : 'workspace';+ const handleSegmentChange = useCallback(+ (value: SegmentValue) => {+ setSearchParams(value === 'private' ? { tab: 'private' } : {}, { replace: true });+ },+ [setSearchParams],+ );+ const [keyword, setKeyword] = useState('');++ // Card vs list rendering — persisted in systemStatus so the page reopens+ // in the last chosen mode (same mechanism as imageTopicViewMode & friends).+ const viewMode = useGlobalStore(systemStatusSelectors.agentListViewMode);+ const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);+ const handleViewModeChange = useCallback(+ (mode: ViewMode) => updateSystemStatus({ agentListViewMode: mode }),+ [updateSystemStatus],+ );++ // Grouping / ordering / hidden-agent visibility — persisted alongside the+ // view mode so the page keeps its display config (same as taskListViewOptions).+ const rawViewOptions = useGlobalStore(systemStatusSelectors.agentListViewOptions);+ const viewOptions = useMemo(+ () => normalizeAgentListViewOptions(rawViewOptions),+ [rawViewOptions],+ );+ const setViewOptions = useCallback(+ (updater: (prev: AgentListViewOptions) => AgentListViewOptions) => {+ const next = normalizeAgentListViewOptions(updater(viewOptions));+ updateSystemStatus({ agentListViewOptions: next }, 'updateAgentListViewOptions');+ },+ [updateSystemStatus, viewOptions],+ );++ // The sidebar usually owns these fetches, but this page must survive a+ // direct deep link — SWR dedupes when both are mounted.+ useFetchAgentList();+ const useFetchWorkspaceUserPreference = useUserStore((s) => s.useFetchWorkspaceUserPreference);+ useFetchWorkspaceUserPreference();++ const isInit = useHomeStore(homeAgentListSelectors.isAgentListInit);+ const pinnedAgents = useHomeStore(homeAgentListSelectors.pinnedAgents, isEqual);+ const agentGroups = useHomeStore(homeAgentListSelectors.agentGroups, isEqual);+ const ungroupedAgents = useHomeStore(homeAgentListSelectors.ungroupedAgents, isEqual);+ const privateAgentGroups = useHomeStore(homeAgentListSelectors.privateAgentGroups, isEqual);+ const privateUngroupedAgents = useHomeStore(+ homeAgentListSelectors.privateUngroupedAgents,+ isEqual,+ );++ // "In my sidebar" membership — workspace mode persists per-member in+ // workspace_user_settings; personal mode persists in users.preference.+ const sidebarHiddenAgentIds = useUserStore(+ (s) =>+ activeWorkspaceId+ ? workspaceUserSettingsSelectors.sidebarHiddenAgentIds(s)+ : (s.preference.sidebarHiddenAgentIds ?? []),+ isEqual,+ );+ const updateWorkspaceUserPreference = useUserStore((s) => s.updateWorkspaceUserPreference);+ const updatePreference = useUserStore((s) => s.updatePreference);++ const workspaceItems = useMemo(+ () => dedupeById([...pinnedAgents, ...agentGroups.flatMap((g) => g.items), ...ungroupedAgents]),+ [pinnedAgents, agentGroups, ungroupedAgents],+ );+ const privateItems = useMemo(+ () => dedupeById([...privateAgentGroups.flatMap((g) => g.items), ...privateUngroupedAgents]),+ [privateAgentGroups, privateUngroupedAgents],+ );++ const items = activeWorkspaceId && segment === 'private' ? privateItems : workspaceItems;++ // Creator column: resolve each item's userId against the member roster.+ const members = useWorkspaceMembers();+ const authorByUserId = useMemo(() => {+ const map = new Map<string, AgentRowAuthor>();+ for (const member of members) {+ const profile = member.user;+ if (!profile) continue;+ map.set(member.userId, {+ avatar: profile.avatar,+ name: profile.fullName || profile.username || profile.email || undefined,+ });+ }+ return map;+ }, [members]);++ const { groupBy, orderBy, orderDirection, showSidebarHidden } = viewOptions;++ const filteredItems = useMemo(() => {+ const query = keyword.trim().toLowerCase();+ let matched = query+ ? items.filter(+ (item) =>+ item.title?.toLowerCase().includes(query) ||+ item.description?.toLowerCase().includes(query),+ )+ : items;++ if (!showSidebarHidden) {+ matched = matched.filter((item) => !sidebarHiddenAgentIds.includes(item.id));+ }++ const authorName = (item: SidebarAgentItem) =>+ (item.userId && authorByUserId.get(item.userId)?.name) || '';++ const direction = orderDirection === 'asc' ? 1 : -1;+ return [...matched].sort((a, b) => {+ if (orderBy === 'title') return direction * (a.title ?? '').localeCompare(b.title ?? '');+ if (orderBy === 'author') return direction * authorName(a).localeCompare(authorName(b));+ return direction * (dayjs(a.updatedAt).valueOf() - dayjs(b.updatedAt).valueOf());+ });+ }, [+ items,+ keyword,+ orderBy,+ orderDirection,+ showSidebarHidden,+ sidebarHiddenAgentIds,+ authorByUserId,+ ]);++ // Author sections (workspace only): items are already sorted, so buckets+ // keep the in-group order; groups themselves read alphabetically.+ const groupedItems = useMemo(() => {+ if (!activeWorkspaceId || groupBy !== 'author') return null;+ const buckets = new Map<string, SidebarAgentItem[]>();+ for (const item of filteredItems) {+ const key = item.userId ?? '';+ const bucket = buckets.get(key);+ if (bucket) bucket.push(item);+ else buckets.set(key, [item]);+ }+ const groups = [...buckets.entries()].map(([userId, groupItems]) => ({+ items: groupItems,+ key: userId || 'unknown',+ label:+ (userId && authorByUserId.get(userId)?.name) || t('agentViewAll.groupBy.unknownAuthor'),+ }));+ return groups.sort((a, b) => a.label.localeCompare(b.label));+ }, [activeWorkspaceId, groupBy, filteredItems, authorByUserId, t]);++ const handleToggleSidebar = useCallback(+ (item: SidebarAgentItem) => {+ const next = sidebarHiddenAgentIds.includes(item.id)+ ? sidebarHiddenAgentIds.filter((id) => id !== item.id)+ : [...sidebarHiddenAgentIds, item.id];+ if (activeWorkspaceId) {+ void updateWorkspaceUserPreference({ sidebarHiddenAgentIds: next });+ } else {+ void updatePreference({ sidebarHiddenAgentIds: next });+ }+ },+ [activeWorkspaceId, sidebarHiddenAgentIds, updatePreference, updateWorkspaceUserPreference],+ );++ const renderCard = useCallback(+ (item: SidebarAgentItem) => (+ <AgentCard+ author={item.userId ? authorByUserId.get(item.userId) : undefined}+ item={item}+ key={item.id}+ showAuthor={!!activeWorkspaceId}+ sidebarHidden={sidebarHiddenAgentIds.includes(item.id)}+ onToggleSidebar={handleToggleSidebar}+ />+ ),+ [activeWorkspaceId, authorByUserId, handleToggleSidebar, sidebarHiddenAgentIds],+ );++ const renderRow = useCallback(+ (item: SidebarAgentItem) => (+ <AgentRow+ author={item.userId ? authorByUserId.get(item.userId) : undefined}+ item={item}+ key={item.id}+ showAuthor={!!activeWorkspaceId}+ sidebarHidden={sidebarHiddenAgentIds.includes(item.id)}+ onToggleSidebar={handleToggleSidebar}+ />+ ),+ [activeWorkspaceId, authorByUserId, handleToggleSidebar, sidebarHiddenAgentIds],+ );++ const { allowed: canCreate, reason: createBlockedReason } = usePermission('create_content');+ const {+ createAgentMenuItem,+ createGroupChatMenuItem,+ createHeterogeneousAgentMenuItems,+ createPlatformAgentMenuItem,+ isMutatingAgent,+ } = useCreateMenuItems();++ // Creating from the Private tab lands the item in the private bucket, so+ // the new row appears in the list the user is currently looking at.+ const createOptions = useMemo(+ () =>+ activeWorkspaceId && segment === 'private' ? { visibility: 'private' as const } : undefined,+ [activeWorkspaceId, segment],+ );++ // Same menu as the sidebar's create button: agent / group chat / external+ // CLI agents / platform agent, all inheriting the segment's visibility.+ const createMenuItems = useMemo(() => {+ const heteroItems = createHeterogeneousAgentMenuItems(createOptions);+ const platformItem = createPlatformAgentMenuItem(createOptions);+ return [+ createAgentMenuItem(createOptions),+ createGroupChatMenuItem(createOptions),+ ...(heteroItems.length > 0 ? [{ type: 'divider' as const }, ...heteroItems] : []),+ ...(platformItem ? [{ type: 'divider' as const }, platformItem] : []),+ ];+ }, [+ createAgentMenuItem,+ createGroupChatMenuItem,+ createHeterogeneousAgentMenuItems,+ createPlatformAgentMenuItem,+ createOptions,+ ]);++ return (+ <Flexbox flex={1} height={'100%'}>+ <NavHeader+ left={+ <Text style={{ paddingInlineStart: 4 }} weight={500}>+ {t('agentViewAll.title')}+ </Text>+ }+ right={+ <ListConfig+ options={viewOptions}+ setOptions={setViewOptions}+ setViewMode={handleViewModeChange}+ showAuthor={!!activeWorkspaceId}+ viewMode={viewMode}+ />+ }+ />+ <WideScreenContainer gap={16} paddingBlock={16} wrapperStyle={{ flex: 1, overflowY: 'auto' }}>+ <Flexbox horizontal align={'center'} gap={12} justify={'space-between'}>+ {/* The workspace/private split only exists inside a workspace;+ personal mode leads with the search box instead. */}+ {activeWorkspaceId ? (+ <Segmented+ value={segment}+ options={[+ { label: t('navPanel.publicAgents'), value: 'workspace' },+ { label: t('navPanel.privateAgents'), value: 'private' },+ ]}+ onChange={(value) => handleSegmentChange(value as SegmentValue)}+ />+ ) : (+ <SearchBar+ allowClear+ placeholder={t('navPanel.searchAgent')}+ style={{ maxWidth: 240 }}+ value={keyword}+ onChange={(e) => setKeyword(e.target.value)}+ />+ )}+ <Flexbox horizontal align={'center'} gap={8}>+ {activeWorkspaceId && (+ <SearchBar+ allowClear+ placeholder={t('navPanel.searchAgent')}+ style={{ maxWidth: 240 }}+ value={keyword}+ onChange={(e) => setKeyword(e.target.value)}+ />+ )}+ {canCreate ? (+ <DropdownMenu items={createMenuItems}>+ <Button icon={PlusIcon} loading={isMutatingAgent}>+ <Icon icon={ChevronDownIcon} size={14} />+ </Button>+ </DropdownMenu>+ ) : (+ <Tooltip title={createBlockedReason}>+ <Button disabled icon={PlusIcon}>+ <Icon icon={ChevronDownIcon} size={14} />+ </Button>+ </Tooltip>+ )}+ </Flexbox>+ </Flexbox>+ {!isInit ? (+ <SkeletonList rows={8} />+ ) : filteredItems.length === 0 ? (+ <Center flex={1} padding={40}>+ <Empty+ description={+ keyword.trim() ? t('navPanel.searchResultEmpty') : t('agentViewAll.empty')+ }+ />+ </Center>+ ) : viewMode === 'card' ? (+ groupedItems ? (+ <Flexbox gap={24}>+ {groupedItems.map((group) => (+ <Flexbox gap={12} key={group.key}>+ <Flexbox horizontal align={'center'} gap={6}>+ <Text fontSize={13} weight={500}>+ {group.label}+ </Text>+ <Text fontSize={12} type={'secondary'}>+ {group.items.length}+ </Text>+ </Flexbox>+ <div className={cardStyles.grid}>{group.items.map(renderCard)}</div>+ </Flexbox>+ ))}+ </Flexbox>+ ) : (+ <div className={cardStyles.grid}>{filteredItems.map(renderCard)}</div>+ )+ ) : (+ <Flexbox gap={2}>+ <TableHeader showAuthor={!!activeWorkspaceId} />+ {groupedItems+ ? groupedItems.map((group) => (+ <Flexbox gap={2} key={group.key}>+ <Flexbox+ horizontal+ align={'center'}+ gap={6}+ paddingBlock={8}+ paddingInline={12}+ >+ <Text fontSize={13} weight={500}>+ {group.label}+ </Text>+ <Text fontSize={12} type={'secondary'}>+ {group.items.length}+ </Text>+ </Flexbox>+ {group.items.map(renderRow)}+ </Flexbox>+ ))+ : filteredItems.map(renderRow)}+ </Flexbox>+ )}+ </WideScreenContainer>+ </Flexbox>+ );+});++AgentViewAllPage.displayName = 'AgentViewAllPage';++// The create menu prefers the wizard modal (`openCreateModal`) over blind+// blank-agent creation, and that modal lives in AgentModalContext — normally+// mounted by the Home layout, which this standalone route is NOT inside. Wrap+// the page so the "+" menu opens the same create wizard as the sidebar.+const AgentViewAllPageWithModals = memo(() => (+ <AgentModalProvider>+ <AgentViewAllPage />+ </AgentModalProvider>+));++AgentViewAllPageWithModals.displayName = 'AgentViewAllPageWithModals';++export default AgentViewAllPageWithModals;diff --git a/src/features/AgentViewAll/ListConfig.tsx b/src/features/AgentViewAll/ListConfig.tsxnew file mode 100644index 00000000000..f7338f8c0e6--- /dev/null+++ b/src/features/AgentViewAll/ListConfig.tsx@@ -0,0 +1,170 @@+'use client';++import { type FormItemProps } from '@lobehub/ui';+import { ActionIcon, Flexbox, Form, Icon, Popover } from '@lobehub/ui';+import { Select, Switch, Tabs } from '@lobehub/ui/base-ui';+import { createStaticStyles } from 'antd-style';+import {+ ArrowDownWideNarrow,+ ArrowUpNarrowWide,+ LayoutGrid,+ LayoutList,+ Settings2Icon,+} from 'lucide-react';+import { memo, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';++import type { AgentGroupBy, AgentListViewOptions, AgentOrderBy } from './listViewOptions';++type ViewMode = 'card' | 'list';++interface ListConfigProps {+ options: AgentListViewOptions;+ setOptions: (updater: (prev: AgentListViewOptions) => AgentListViewOptions) => void;+ setViewMode: (mode: ViewMode) => void;+ /** Author-based grouping/ordering only makes sense inside a workspace. */+ showAuthor?: boolean;+ viewMode: ViewMode;+}++const styles = createStaticStyles(({ css, cssVar }) => {+ return {+ form: css`+ label {+ font-size: 13px !important;+ color: ${cssVar.colorTextSecondary} !important;+ }+ `,+ };+});++const ListConfig = memo<ListConfigProps>(+ ({ options, setOptions, setViewMode, showAuthor, viewMode }) => {+ const [open, setOpen] = useState(false);+ const { t } = useTranslation('common');++ const groupingOptions = useMemo<Array<{ label: string; value: AgentGroupBy }>>(+ () => [+ { label: t('agentViewAll.groupBy.none'), value: 'none' },+ { label: t('agentViewAll.groupBy.author'), value: 'author' },+ ],+ [t],+ );+ const orderOptions = useMemo<Array<{ label: string; value: AgentOrderBy }>>(+ () => [+ { label: t('agentViewAll.orderBy.updatedAt'), value: 'updatedAt' },+ ...(showAuthor+ ? [{ label: t('agentViewAll.orderBy.author'), value: 'author' as const }]+ : []),+ { label: t('agentViewAll.orderBy.title'), value: 'title' },+ ],+ [showAuthor, t],+ );++ const formItems: FormItemProps[] = [+ ...(showAuthor+ ? [+ {+ children: (+ <Select+ options={groupingOptions}+ size={'small'}+ style={{ width: 150 }}+ value={options.groupBy}+ onChange={(value: AgentGroupBy) => {+ setOptions((prev) => ({ ...prev, groupBy: value }));+ }}+ />+ ),+ label: t('agentViewAll.form.grouping'),+ } satisfies FormItemProps,+ ]+ : []),+ {+ children: (+ <Flexbox horizontal align={'center'} gap={8}>+ <ActionIcon+ icon={options.orderDirection === 'asc' ? ArrowUpNarrowWide : ArrowDownWideNarrow}+ size={'small'}+ onClick={() => {+ setOptions((prev) => ({+ ...prev,+ orderDirection: prev.orderDirection === 'asc' ? 'desc' : 'asc',+ }));+ }}+ />+ <Select+ options={orderOptions}+ size={'small'}+ style={{ width: 112 }}+ value={options.orderBy}+ onChange={(value: AgentOrderBy) => {+ setOptions((prev) => ({ ...prev, orderBy: value }));+ }}+ />+ </Flexbox>+ ),+ label: t('agentViewAll.form.ordering'),+ },+ {+ children: (+ <Switch+ checked={options.showSidebarHidden}+ size={'small'}+ onChange={(checked) => {+ setOptions((prev) => ({ ...prev, showSidebarHidden: checked }));+ }}+ />+ ),+ minWidth: undefined,+ label: t('agentViewAll.form.showSidebarHidden'),+ },+ ];++ const panelContent = (+ <Flexbox gap={12} width={280}>+ <Tabs+ activeKey={viewMode}+ items={[+ { icon: <Icon icon={LayoutList} />, key: 'list', label: t('agentViewAll.view.list') },+ { icon: <Icon icon={LayoutGrid} />, key: 'card', label: t('agentViewAll.view.card') },+ ]}+ styles={{+ list: { display: 'flex', width: '100%' },+ tab: { flex: 1 },+ }}+ onChange={(key) => setViewMode(key as ViewMode)}+ />+ <Form+ className={styles.form}+ items={formItems}+ itemsType={'flat'}+ size={'small'}+ variant={'borderless'}+ styles={{+ item: { padding: 0 },+ }}+ />+ </Flexbox>+ );++ return (+ <Popover+ arrow={false}+ content={panelContent}+ open={open}+ placement={'bottomRight'}+ trigger={['click']}+ onOpenChange={setOpen}+ >+ <ActionIcon icon={Settings2Icon} size={DESKTOP_HEADER_ICON_SMALL_SIZE} />+ </Popover>+ );+ },+);++ListConfig.displayName = 'AgentViewAllListConfig';++export default ListConfig;diff --git a/src/features/AgentViewAll/TableHeader.tsx b/src/features/AgentViewAll/TableHeader.tsxnew file mode 100644index 00000000000..ee04db376e9--- /dev/null+++ b/src/features/AgentViewAll/TableHeader.tsx@@ -0,0 +1,54 @@+'use client';++import { Flexbox, Text } from '@lobehub/ui';+import { createStaticStyles } from 'antd-style';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++import { ACTION_COL_WIDTH, AUTHOR_COL_WIDTH, TIME_COL_WIDTH } from './AgentRow';++const styles = createStaticStyles(({ css, cssVar }) => ({+ header: css`+ padding-block: 4px;+ padding-inline: 12px;+ border-block-end: 1px solid ${cssVar.colorBorderSecondary};+ `,+}));++interface TableHeaderProps {+ showAuthor?: boolean;+}++// Plain column labels — ordering lives in the display-config popover, so the+// header carries no sort affordance.+const TableHeader = memo<TableHeaderProps>(({ showAuthor }) => {+ const { t } = useTranslation('common');++ return (+ <Flexbox horizontal align={'center'} className={styles.header} gap={12}>+ <Flexbox flex={1}>+ <Text fontSize={12} type={'secondary'}>+ {t('agentViewAll.columns.name')}+ </Text>+ </Flexbox>+ {showAuthor && (+ <Flexbox flex={'none'} style={{ width: AUTHOR_COL_WIDTH }}>+ <Text fontSize={12} type={'secondary'}>+ {t('agentViewAll.columns.author')}+ </Text>+ </Flexbox>+ )}+ <Flexbox flex={'none'} style={{ width: TIME_COL_WIDTH }}>+ <Text fontSize={12} type={'secondary'}>+ {t('agentViewAll.columns.updatedAt')}+ </Text>+ </Flexbox>+ {/* Action column keeps its width but shows no label. */}+ <div style={{ flex: 'none', width: ACTION_COL_WIDTH }} />+ </Flexbox>+ );+});++TableHeader.displayName = 'AgentViewAllTableHeader';++export default TableHeader;diff --git a/src/features/AgentViewAll/index.ts b/src/features/AgentViewAll/index.tsnew file mode 100644index 00000000000..901e83bf5e7--- /dev/null+++ b/src/features/AgentViewAll/index.ts@@ -0,0 +1,2 @@+export { default as AgentViewAllPage } from './AgentViewAllPage';+export { agentsRouteMeta } from './routeMeta';diff --git a/src/features/AgentViewAll/listViewOptions.ts b/src/features/AgentViewAll/listViewOptions.tsnew file mode 100644index 00000000000..8befd0bdbf6--- /dev/null+++ b/src/features/AgentViewAll/listViewOptions.ts@@ -0,0 +1,43 @@+export type AgentGroupBy = 'author' | 'none';+export type AgentOrderBy = 'author' | 'title' | 'updatedAt';+export type AgentOrderDirection = 'asc' | 'desc';++export interface AgentListViewOptions {+ groupBy: AgentGroupBy;+ orderBy: AgentOrderBy;+ orderDirection: AgentOrderDirection;+ /** Whether agents hidden from the sidebar still appear on this page. */+ showSidebarHidden: boolean;+}++export const DEFAULT_AGENT_LIST_VIEW_OPTIONS: AgentListViewOptions = {+ groupBy: 'none',+ orderBy: 'updatedAt',+ orderDirection: 'desc',+ showSidebarHidden: true,+};++const AGENT_GROUP_BY_SET = new Set<AgentGroupBy>(['author', 'none']);+const AGENT_ORDER_BY_SET = new Set<AgentOrderBy>(['author', 'title', 'updatedAt']);+const AGENT_ORDER_DIRECTION_SET = new Set<AgentOrderDirection>(['asc', 'desc']);++export const normalizeAgentListViewOptions = (+ value?: Partial<AgentListViewOptions> | null,+): AgentListViewOptions => {+ const next = value ?? {};+ return {+ groupBy: AGENT_GROUP_BY_SET.has(next.groupBy as AgentGroupBy)+ ? (next.groupBy as AgentGroupBy)+ : DEFAULT_AGENT_LIST_VIEW_OPTIONS.groupBy,+ orderBy: AGENT_ORDER_BY_SET.has(next.orderBy as AgentOrderBy)+ ? (next.orderBy as AgentOrderBy)+ : DEFAULT_AGENT_LIST_VIEW_OPTIONS.orderBy,+ orderDirection: AGENT_ORDER_DIRECTION_SET.has(next.orderDirection as AgentOrderDirection)+ ? (next.orderDirection as AgentOrderDirection)+ : DEFAULT_AGENT_LIST_VIEW_OPTIONS.orderDirection,+ showSidebarHidden:+ typeof next.showSidebarHidden === 'boolean'+ ? next.showSidebarHidden+ : DEFAULT_AGENT_LIST_VIEW_OPTIONS.showSidebarHidden,+ };+};diff --git a/src/features/AgentViewAll/routeMeta.ts b/src/features/AgentViewAll/routeMeta.tsnew file mode 100644index 00000000000..7bde7a6ac0a--- /dev/null+++ b/src/features/AgentViewAll/routeMeta.ts@@ -0,0 +1,8 @@+import { BotIcon } from 'lucide-react';++import { routeMeta } from '@/spa/router/routeMeta';++export const agentsRouteMeta = routeMeta({+ icon: BotIcon,+ titleKey: 'navigation.agents',+});diff --git a/src/features/Workspace/workspaceAwarePath.ts b/src/features/Workspace/workspaceAwarePath.tsindex c41a9928702..f0ea5f8b568 100644--- a/src/features/Workspace/workspaceAwarePath.ts+++ b/src/features/Workspace/workspaceAwarePath.ts@@ -57,6 +57,7 @@ const FIRST_SEGMENT_REGEX = /^\/([^/?#]+)/;const WORKSPACE_MIRRORED_FIRST_SEGMENTS = new Set(['agent',+ 'agents','community','eval','group',diff --git a/src/routes/(main)/agents/index.tsx b/src/routes/(main)/agents/index.tsxnew file mode 100644index 00000000000..e23ccfb1815--- /dev/null+++ b/src/routes/(main)/agents/index.tsx@@ -0,0 +1,5 @@+import { AgentViewAllPage } from '@/features/AgentViewAll';++const AgentsRoute = () => <AgentViewAllPage />;++export default AgentsRoute;diff --git a/src/routes/(main)/home/_layout/Body/Agent/List/List.tsx b/src/routes/(main)/home/_layout/Body/Agent/List/List.tsxindex 45a17d7b4a9..acefd31269b 100644--- a/src/routes/(main)/home/_layout/Body/Agent/List/List.tsx+++ b/src/routes/(main)/home/_layout/Body/Agent/List/List.tsx@@ -15,6 +15,7 @@ import { SessionDefaultGroup } from '@/types/session';import CreateAgentButton from '../CreateAgentButton';import GroupItem from './AgentGroupItem';import AgentItem from './AgentItem';+import { useKeepSidebarListed } from './useAgentList';interface SessionListProps {dataSource: SidebarAgentItem[];@@ -34,11 +35,14 @@ const List = memo<SessionListProps>(// Check if this is defaultList and if there are more agentsconst isDefaultList = groupId === SessionDefaultGroup.Default;- const ungroupedAgentsCount = useHomeStore(homeAgentListSelectors.ungroupedAgentsCount);+ const ungroupedAgents = useHomeStore(homeAgentListSelectors.ungroupedAgents);const agentPageSize = useGlobalStore(systemStatusSelectors.agentPageSize);const openAllAgentsDrawer = useHomeStore((s) => s.openAllAgentsDrawer);+ const keep = useKeepSidebarListed();- const hasMore = isDefaultList && ungroupedAgentsCount > agentPageSize;+ // Count what the sidebar can actually show (caller's unpins excluded) so+ // hidden items alone never surface a dangling "More" row.+ const hasMore = isDefaultList && keep(ungroupedAgents).length > agentPageSize;// Empty custom/default groups always show the Create button so the user can populate them.// Non-empty lists only show it at the bottom of the default group; custom groups rely ondiff --git a/src/routes/(main)/home/_layout/Body/Agent/List/useAgentList.tsx b/src/routes/(main)/home/_layout/Body/Agent/List/useAgentList.tsxindex 69d8829210a..616121c0781 100644--- a/src/routes/(main)/home/_layout/Body/Agent/List/useAgentList.tsx+++ b/src/routes/(main)/home/_layout/Body/Agent/List/useAgentList.tsx@@ -3,22 +3,44 @@import isEqual from 'fast-deep-equal';import { useMemo } from 'react';+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { useHomeStore } from '@/store/home';import { homeAgentListSelectors } from '@/store/home/selectors';+import { useUserStore } from '@/store/user';+import { workspaceUserSettingsSelectors } from '@/store/user/selectors';++/**+ * Filter predicate over the caller's "removed from my sidebar" list —+ * workspace mode reads the per-member `workspace_user_settings` bucket,+ * personal mode reads `users.preference`. Applied at sidebar render — not in+ * the home store — so "view all" surfaces (AllAgentsDrawer, the /agents page)+ * still list every item.+ */+export const useKeepSidebarListed = () => {+ const activeWorkspaceId = useActiveWorkspaceId();+ const sidebarHiddenAgentIds = useUserStore(+ (s) =>+ activeWorkspaceId+ ? workspaceUserSettingsSelectors.sidebarHiddenAgentIds(s)+ : (s.preference.sidebarHiddenAgentIds ?? []),+ isEqual,+ );++ return useMemo(() => {+ const hidden = new Set(sidebarHiddenAgentIds);+ return <T extends { id: string }>(items: T[]) =>+ hidden.size === 0 ? items : items.filter((item) => !hidden.has(item.id));+ }, [sidebarHiddenAgentIds]);+};// SWR subscription is owned by the caller of AgentListContent (Body/Agent// accordion, or the standalone SwitchPanel). Subscribing here would re-fetch// on every accordion expand and flash spinners across the sidebar.export const useAgentList = (limitDefault = true) => {const agentPageSize = useGlobalStore(systemStatusSelectors.agentPageSize);- const ungroupedAgents = useHomeStore(- limitDefault- ? homeAgentListSelectors.ungroupedAgentsLimited(agentPageSize)- : homeAgentListSelectors.ungroupedAgents,- isEqual,- );+ const ungroupedAgents = useHomeStore(homeAgentListSelectors.ungroupedAgents, isEqual);const agentGroups = useHomeStore(homeAgentListSelectors.agentGroups, isEqual);const pinnedAgents = useHomeStore(homeAgentListSelectors.pinnedAgents, isEqual);const privateAgentGroups = useHomeStore(homeAgentListSelectors.privateAgentGroups, isEqual);@@ -26,14 +48,30 @@ export const useAgentList = (limitDefault = true) => {homeAgentListSelectors.privateUngroupedAgents,isEqual,);+ const keep = useKeepSidebarListed();return useMemo(() => {+ const filteredUngrouped = keep(ungroupedAgents);+return {- customList: agentGroups,- defaultList: ungroupedAgents,- pinnedList: pinnedAgents,- privateGroupList: privateAgentGroups,- privateUngroupedList: privateUngroupedAgents,+ customList: agentGroups.map((group) => ({ ...group, items: keep(group.items) })),+ // Filter BEFORE the page-size cut so an unpin doesn't shrink the page.+ defaultList: limitDefault ? filteredUngrouped.slice(0, agentPageSize) : filteredUngrouped,+ pinnedList: keep(pinnedAgents),+ privateGroupList: privateAgentGroups.map((group) => ({+ ...group,+ items: keep(group.items),+ })),+ privateUngroupedList: keep(privateUngroupedAgents),};- }, [agentGroups, pinnedAgents, ungroupedAgents, privateAgentGroups, privateUngroupedAgents]);+ }, [+ agentGroups,+ agentPageSize,+ keep,+ limitDefault,+ pinnedAgents,+ ungroupedAgents,+ privateAgentGroups,+ privateUngroupedAgents,+ ]);};diff --git a/src/routes/(main)/home/_layout/Body/Agent/index.tsx b/src/routes/(main)/home/_layout/Body/Agent/index.tsxindex 33ba14054ae..eafd8cc9489 100644--- a/src/routes/(main)/home/_layout/Body/Agent/index.tsx+++ b/src/routes/(main)/home/_layout/Body/Agent/index.tsx@@ -1,12 +1,14 @@'use client';-import { AccordionItem, ContextMenuTrigger, Flexbox, Text } from '@lobehub/ui';-import React, { memo, Suspense, useCallback, useMemo } from 'react';+import { AccordionItem, ActionIcon, ContextMenuTrigger, Flexbox, Text } from '@lobehub/ui';+import { ArrowRight } from 'lucide-react';+import React, { memo, type MouseEvent, Suspense, useCallback, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';import NeuralNetworkLoading from '@/components/NeuralNetworkLoading';import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';import { useFetchAgentList } from '@/hooks/useFetchAgentList';import { useCreateMenuItems } from '../../hooks';@@ -43,13 +45,34 @@ const Agent = memo<AgentProps>(({ itemKey }) => {openConfigGroupModal: handleOpenConfigGroupModal,});+ const navigate = useWorkspaceAwareNavigate();+ const handleViewAll = useCallback(+ (e: MouseEvent) => {+ // Stop the click from toggling the accordion header.+ e.stopPropagation();+ navigate('/agents');+ },+ [navigate],+ );+return (<AccordionItemitemKey={itemKey}paddingBlock={4}paddingInline={'8px 4px'}action={- <Actions addMenuItems={addMenuItems} dropdownMenu={dropdownMenu} isLoading={isLoading} />+ <Flexbox horizontal align="center" gap={2}>+ {/* The flat view-all page adapts per mode: workspace gets the+ workspace/private segments + per-user pin + author column;+ personal mode gets the plain flat list. */}+ <ActionIcon+ icon={ArrowRight}+ size={'small'}+ title={t('navPanel.viewAllAgents')}+ onClick={handleViewAll}+ />+ <Actions addMenuItems={addMenuItems} dropdownMenu={dropdownMenu} isLoading={isLoading} />+ </Flexbox>}headerWrapper={(header) => (<ContextMenuTrigger items={dropdownMenu}>{header}</ContextMenuTrigger>diff --git a/src/routes/(main)/home/_layout/Body/Private/List.tsx b/src/routes/(main)/home/_layout/Body/Private/List.tsxindex 6d4a8caab68..0d2c92faec1 100644--- a/src/routes/(main)/home/_layout/Body/Private/List.tsx+++ b/src/routes/(main)/home/_layout/Body/Private/List.tsx@@ -8,6 +8,7 @@ import { useTranslation } from 'react-i18next';import NavItem from '@/features/NavPanel/components/NavItem';import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { useHomeStore } from '@/store/home';@@ -16,6 +17,7 @@ import { homeAgentListSelectors } from '@/store/home/selectors';import CreateAgentButton from '../Agent/CreateAgentButton';import Group from '../Agent/List/Group';import SessionList from '../Agent/List/List';+import { useKeepSidebarListed } from '../Agent/List/useAgentList';interface PrivateListProps {hideCreateButton?: boolean;@@ -29,25 +31,30 @@ interface PrivateListProps {const PrivateList = memo<PrivateListProps>(({ hideCreateButton, onMoreClick }) => {const { t } = useTranslation('chat');const isInit = useHomeStore(homeAgentListSelectors.isAgentListInit);- const privatePinned = useHomeStore(homeAgentListSelectors.privatePinnedAgents, isEqual);- const privateGroups = useHomeStore(homeAgentListSelectors.privateAgentGroups, isEqual);+ const rawPrivatePinned = useHomeStore(homeAgentListSelectors.privatePinnedAgents, isEqual);+ const rawPrivateGroups = useHomeStore(homeAgentListSelectors.privateAgentGroups, isEqual);const privateAgentPageSize = useGlobalStore(systemStatusSelectors.privateAgentPageSize);- const privateUngrouped = useHomeStore(- homeAgentListSelectors.privateUngroupedAgentsLimited(privateAgentPageSize),- isEqual,- );- const privateUngroupedCount = useHomeStore(homeAgentListSelectors.privateUngroupedAgentsCount);- const openAllAgentsDrawer = useHomeStore((s) => s.openAllAgentsDrawer);+ const rawPrivateUngrouped = useHomeStore(homeAgentListSelectors.privateUngroupedAgents, isEqual);+ const navigate = useWorkspaceAwareNavigate();+ const keep = useKeepSidebarListed();if (!isInit) return <SkeletonList rows={2} />;+ // Drop the caller's sidebar-hidden items BEFORE the page-size cut so a+ // removal doesn't shrink the visible page below `privateAgentPageSize`.+ const privatePinned = keep(rawPrivatePinned);+ const privateGroups = rawPrivateGroups.map((group) => ({ ...group, items: keep(group.items) }));+ const filteredUngrouped = keep(rawPrivateUngrouped);+ const privateUngrouped = filteredUngrouped.slice(0, privateAgentPageSize);+const hasPinned = privatePinned.length > 0;const hasGroups = privateGroups.length > 0;const hasUngrouped = privateUngrouped.length > 0;- const hasMore = privateUngroupedCount > privateAgentPageSize;- // `openAllAgentsDrawer` targets the Home-owned drawer; compact reusers+ const hasMore = filteredUngrouped.length > privateAgentPageSize;+ // The shared AllAgentsDrawer lists the workspace bucket, so the private+ // overflow routes to the private view-all tab instead; compact reusers// (e.g. the agent-detail switcher) pass their own navigation handler.- const handleMoreClick = onMoreClick ?? openAllAgentsDrawer;+ const handleMoreClick = onMoreClick ?? (() => navigate('/agents?tab=private'));// Empty state still surfaces the create-button so a fresh user has an// obvious affordance for their first private agent.diff --git a/src/routes/(main)/home/_layout/Body/Private/index.tsx b/src/routes/(main)/home/_layout/Body/Private/index.tsxindex 6d009d0e64c..beaabfebcde 100644--- a/src/routes/(main)/home/_layout/Body/Private/index.tsx+++ b/src/routes/(main)/home/_layout/Body/Private/index.tsx@@ -1,11 +1,13 @@'use client';-import { AccordionItem, ContextMenuTrigger, Flexbox, Text } from '@lobehub/ui';-import React, { memo, Suspense, useCallback, useMemo } from 'react';+import { AccordionItem, ActionIcon, ContextMenuTrigger, Flexbox, Text } from '@lobehub/ui';+import { ArrowRight } from 'lucide-react';+import React, { memo, type MouseEvent, Suspense, useCallback, useMemo } from 'react';import { useTranslation } from 'react-i18next';import NeuralNetworkLoading from '@/components/NeuralNetworkLoading';import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';import { useFetchAgentList } from '@/hooks/useFetchAgentList';import { useCreateMenuItems } from '../../hooks';@@ -70,13 +72,32 @@ const Private = memo<PrivateProps>(({ itemKey }) => {openConfigGroupModal: handleOpenConfigGroupModal,});+ const navigate = useWorkspaceAwareNavigate();+ const handleViewAll = useCallback(+ (e: MouseEvent) => {+ // Stop the click from toggling the accordion header.+ e.stopPropagation();+ // Land the view-all page on the tab matching this section.+ navigate('/agents?tab=private');+ },+ [navigate],+ );+return (<AccordionItemitemKey={itemKey}paddingBlock={4}paddingInline={'8px 4px'}action={- <Actions addMenuItems={addMenuItems} dropdownMenu={dropdownMenu} isLoading={isLoading} />+ <Flexbox horizontal align="center" gap={2}>+ <ActionIcon+ icon={ArrowRight}+ size={'small'}+ title={t('navPanel.viewAllAgents')}+ onClick={handleViewAll}+ />+ <Actions addMenuItems={addMenuItems} dropdownMenu={dropdownMenu} isLoading={isLoading} />+ </Flexbox>}headerWrapper={(header) => (<ContextMenuTrigger items={dropdownMenu}>{header}</ContextMenuTrigger>diff --git a/src/routes/(main)/home/_layout/Body/index.tsx b/src/routes/(main)/home/_layout/Body/index.tsxindex 34497582c37..771d515a1ff 100644--- a/src/routes/(main)/home/_layout/Body/index.tsx+++ b/src/routes/(main)/home/_layout/Body/index.tsx@@ -18,11 +18,13 @@ import Recents from '@/routes/(main)/home/features/Recents';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { SIDEBAR_SPACER_ID } from '@/store/global/selectors/systemStatus';+import { useUserStore } from '@/store/user';import { isModifierClick } from '@/utils/navigation';import Agent from './Agent';import { openCustomizeSidebarModal } from './CustomizeSidebarModal';import Private from './Private';+import { useSyncWorkspaceSidebarPreference } from './useSyncWorkspaceSidebarPreference';export enum GroupKey {Agent = 'agent',@@ -71,6 +73,12 @@ const Body = memo(() => {// is implicitly the owner's. Hide the Private section entirely there so the// sidebar doesn't sprout an empty accordion users can't populate.const activeWorkspaceId = useActiveWorkspaceId();+ // The Agent/Private sections subtract the caller's sidebar-hidden items,+ // and the section layout syncs per-member — both live in the workspace+ // user preference, so load it alongside the sidebar.+ const useFetchWorkspaceUserPreference = useUserStore((s) => s.useFetchWorkspaceUserPreference);+ useFetchWorkspaceUserPreference();+ useSyncWorkspaceSidebarPreference(activeWorkspaceId);const sidebarItems = useGlobalStore(systemStatusSelectors.sidebarItems(activeWorkspaceId));const sidebarExpandedKeys = useGlobalStore(systemStatusSelectors.sidebarExpandedKeys(activeWorkspaceId),diff --git a/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.test.tsx b/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.test.tsxnew file mode 100644index 00000000000..4d6ea39e71d--- /dev/null+++ b/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.test.tsx@@ -0,0 +1,91 @@+import { renderHook } from '@testing-library/react';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { useGlobalStore } from '@/store/global';+import { useUserStore } from '@/store/user';++import { useSyncWorkspaceSidebarPreference } from './useSyncWorkspaceSidebarPreference';++// Route `updateSystemStatus` writes into the workspace overlay, as on cloud+// where the user is inside a workspace (the OSS stub returns null).+vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({+ getActiveWorkspaceId: () => 'ws-b',+ useActiveWorkspaceId: () => 'ws-b',+}));++const setOverlay = (overlay: Record<string, unknown> | undefined) => {+ useGlobalStore.setState((s) => ({+ isStatusInit: true,+ status: { ...s.status, workspace: overlay as never },+ }));+};++describe('useSyncWorkspaceSidebarPreference', () => {+ beforeEach(() => {+ setOverlay(undefined);+ useUserStore.setState({+ workspaceUserPreference: {},+ workspaceUserPreferenceWorkspaceId: null,+ });+ });++ it('clears a previous workspace overlay when the loaded preference has no sidebar', () => {+ // Overlay still holds workspace A's layout…+ setOverlay({ hiddenSidebarSections: ['recents'], sidebarItems: ['agents'] });+ // …while workspace B's preference row has loaded with no sidebar value.+ useUserStore.setState({+ workspaceUserPreference: {},+ workspaceUserPreferenceWorkspaceId: 'ws-b',+ });++ renderHook(() => useSyncWorkspaceSidebarPreference('ws-b'));++ const workspace = useGlobalStore.getState().status.workspace;+ expect(workspace?.sidebarItems).toBeUndefined();+ expect(workspace?.hiddenSidebarSections).toBeUndefined();+ });++ it('keeps the overlay while the active workspace preference has not loaded yet', () => {+ setOverlay({ sidebarItems: ['agents'] });+ // Bucket still belongs to the previously visited workspace.+ useUserStore.setState({+ workspaceUserPreference: {},+ workspaceUserPreferenceWorkspaceId: 'ws-a',+ });++ renderHook(() => useSyncWorkspaceSidebarPreference('ws-b'));++ expect(useGlobalStore.getState().status.workspace?.sidebarItems).toEqual(['agents']);+ });++ it('deletes overlay fields the loaded server sidebar does not carry', () => {+ // Workspace A left a custom item order; workspace B only hides sections.+ setOverlay({ sidebarItems: ['agents'] });+ useUserStore.setState({+ workspaceUserPreference: { sidebar: { hiddenSections: ['recents'] } },+ workspaceUserPreferenceWorkspaceId: 'ws-b',+ });++ renderHook(() => useSyncWorkspaceSidebarPreference('ws-b'));++ const workspace = useGlobalStore.getState().status.workspace;+ expect(workspace?.hiddenSidebarSections).toEqual(['recents']);+ expect(workspace?.sidebarItems).toBeUndefined();+ });++ it('pulls the loaded server sidebar layout onto the overlay', () => {+ setOverlay({ sidebarItems: ['agents'] });+ useUserStore.setState({+ workspaceUserPreference: {+ sidebar: { hiddenSections: ['recents'], items: ['projects', 'agents'] },+ },+ workspaceUserPreferenceWorkspaceId: 'ws-b',+ });++ renderHook(() => useSyncWorkspaceSidebarPreference('ws-b'));++ const workspace = useGlobalStore.getState().status.workspace;+ expect(workspace?.sidebarItems).toEqual(['projects', 'agents']);+ expect(workspace?.hiddenSidebarSections).toEqual(['recents']);+ });+});diff --git a/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.ts b/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.tsnew file mode 100644index 00000000000..991587c957e--- /dev/null+++ b/src/routes/(main)/home/_layout/Body/useSyncWorkspaceSidebarPreference.ts@@ -0,0 +1,68 @@+import type { SidebarLayoutPreference } from '@lobechat/types';+import isEqual from 'fast-deep-equal';+import { useEffect } from 'react';++import { useGlobalStore } from '@/store/global';+import { useUserStore } from '@/store/user';+import { workspaceUserSettingsSelectors } from '@/store/user/selectors';++/**+ * Two-way bridge between the client-side sidebar layout overlay+ * (`status.workspace.sidebarItems` / `.hiddenSidebarSections` — a single+ * device-local bucket) and the per-member server preference+ * (`workspace_user_settings.preference.sidebar`), so each member's section+ * order and hidden sections follow them across devices.+ *+ * - Pull: server value → overlay whenever they diverge (workspace switch,+ * another device's edit arriving via SWR revalidation).+ * - Push: local overlay edits (customize-sidebar modal, "Hide Section") →+ * server, skipped when the overlay already equals the server value (which+ * is exactly the state a pull leaves behind, so the bridge cannot loop).+ *+ * Expansion state (`sidebarExpandedKeys` etc.) deliberately stays local.+ */+export const useSyncWorkspaceSidebarPreference = (workspaceId: string | null) => {+ const serverSidebar = useUserStore(workspaceUserSettingsSelectors.sidebarLayout, isEqual);+ const loadedWorkspaceId = useUserStore(workspaceUserSettingsSelectors.preferenceWorkspaceId);++ // Pull: apply the per-member server layout onto the local overlay.+ useEffect(() => {+ // Only trust the preference bucket once it holds THIS workspace's row —+ // before that, `serverSidebar` may be the previous workspace's value (or+ // an unfetched placeholder) and must not be pulled or cleared from.+ if (!workspaceId || loadedWorkspaceId !== workspaceId) return;+ // Replace wholesale: a field the server preference does not carry must be+ // DELETED from the shared overlay bucket (not left behind by a deep+ // merge), or the previous workspace's layout leaks into this one.+ useGlobalStore.getState().setWorkspaceSidebarOverlay({+ hiddenSidebarSections: serverSidebar?.hiddenSections,+ sidebarItems: serverSidebar?.items,+ });+ }, [workspaceId, serverSidebar, loadedWorkspaceId]);++ // Push: persist local overlay edits (and seed the server from a+ // pre-existing local customization the first time it changes).+ useEffect(() => {+ // Same trust boundary as the pull effect: don't diff local edits against+ // (or seed the server from) another workspace's baseline.+ if (!workspaceId || loadedWorkspaceId !== workspaceId) return;+ return useGlobalStore.subscribe(+ (s) => ({+ hiddenSections: s.status.workspace?.hiddenSidebarSections,+ items: s.status.workspace?.sidebarItems,+ }),+ (overlay) => {+ if (overlay.items === undefined && overlay.hiddenSections === undefined) return;+ const state = useUserStore.getState();+ const current = state.workspaceUserPreference.sidebar;+ const next: SidebarLayoutPreference = {+ ...(overlay.hiddenSections ? { hiddenSections: overlay.hiddenSections } : {}),+ ...(overlay.items ? { items: overlay.items } : {}),+ };+ if (isEqual(current ?? {}, next)) return;+ void state.updateWorkspaceUserPreference({ sidebar: next });+ },+ { equalityFn: isEqual },+ );+ }, [workspaceId, loadedWorkspaceId]);+};diff --git a/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx b/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsxindex cb9b033d5de..08a859a5b22 100644--- a/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx+++ b/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx@@ -95,6 +95,9 @@ export const useCreateMenuItems = () => {config: DEFAULT_CHAT_GROUP_CHAT_CONFIG,groupId: arg?.groupId,title: arg?.title || t('defaultGroupChat'),+ // Forward the caller's bucket choice — without it a "Create Private+ // Group" entry silently lands the group in the public bucket.+ ...(arg?.visibility ? { visibility: arg.visibility } : {}),},[],true, // silent mode - don't switch session, we'll navigate insteaddiff --git a/src/spa/router/desktopRouter.config.desktop.tsx b/src/spa/router/desktopRouter.config.desktop.tsxindex a918bd01a51..d0e32b4cb57 100644--- a/src/spa/router/desktopRouter.config.desktop.tsx+++ b/src/spa/router/desktopRouter.config.desktop.tsx@@ -19,6 +19,7 @@ import {} from '@/business/client/BusinessDesktopRoutes';import { agentDocumentRouteMeta } from '@/features/AgentDocumentPage/routeMeta';import { taskRouteMeta, tasksRouteMeta } from '@/features/AgentTasks/routeMeta';+import { agentsRouteMeta } from '@/features/AgentViewAll/routeMeta';import { pageRouteMeta } from '@/features/Pages/routeMeta';import {acceptanceRouteMeta,@@ -72,6 +73,7 @@ import AgentStatsPage from '@/routes/(main)/agent/stats';import AgentTaskDetailRoute from '@/routes/(main)/agent/task/[taskId]';import AgentScopedTasksRoute from '@/routes/(main)/agent/tasks';import AgentTopicsPage from '@/routes/(main)/agent/topics';+import AgentsViewAllRoute from '@/routes/(main)/agents';import CommunityLayout from '@/routes/(main)/community/_layout';import CommunityDetailLayout from '@/routes/(main)/community/(detail)/_layout';import CommunityDetailAgentPage from '@/routes/(main)/community/(detail)/agent';@@ -568,6 +570,19 @@ export const sharedMainAreaChildren: RouteObject[] = [path: 'eval',},+ // Agents view-all route (flat list of workspace/private agents)+ {+ children: [+ {+ element: <AgentsViewAllRoute />,+ handle: { meta: agentsRouteMeta },+ index: true,+ },+ ],+ errorElement: <ErrorBoundary resetPath=".." />,+ path: 'agents',+ },+// Task workspace routes (cross-agent){children: [diff --git a/src/spa/router/desktopRouter.config.tsx b/src/spa/router/desktopRouter.config.tsxindex ac5896ea675..8cd2581133c 100644--- a/src/spa/router/desktopRouter.config.tsx+++ b/src/spa/router/desktopRouter.config.tsx@@ -19,6 +19,7 @@ import {} from '@/business/client/BusinessDesktopRoutes';import { agentDocumentRouteMeta } from '@/features/AgentDocumentPage/routeMeta';import { taskRouteMeta, tasksRouteMeta } from '@/features/AgentTasks/routeMeta';+import { agentsRouteMeta } from '@/features/AgentViewAll/routeMeta';import { pageRouteMeta } from '@/features/Pages/routeMeta';import {acceptanceRouteMeta,@@ -653,6 +654,19 @@ export const sharedMainAreaChildren: RouteObject[] = [path: 'eval',},+ // Agents view-all route (flat list of workspace/private agents)+ {+ children: [+ {+ element: dynamicElement(() => import('@/routes/(main)/agents'), 'Desktop > Agents'),+ handle: { meta: agentsRouteMeta },+ index: true,+ },+ ],+ errorElement: <ErrorBoundary resetPath=".." />,+ path: 'agents',+ },+// Task workspace routes (cross-agent){children: [diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsxindex 626d3786faa..f62b45c8a46 100644--- a/src/spa/router/mobileRouter.config.tsx+++ b/src/spa/router/mobileRouter.config.tsx@@ -214,6 +214,18 @@ export const sharedMainAreaChildren: RouteObject[] = [path: 'community',},+ // Agents view-all route (flat list of workspace/private agents)+ {+ children: [+ {+ element: dynamicElement(() => import('@/routes/(main)/agents'), 'Mobile > Agents'),+ index: true,+ },+ ],+ errorElement: <ErrorBoundary resetPath=".." />,+ path: 'agents',+ },+// Task workspace routes (cross-agent){children: [diff --git a/src/store/global/actions/general.ts b/src/store/global/actions/general.tsindex 4b7807b9c65..b330efe367d 100644--- a/src/store/global/actions/general.ts+++ b/src/store/global/actions/general.ts@@ -181,6 +181,36 @@ export class GlobalGeneralActionImpl {});};+ /**+ * Replace the workspace overlay's sidebar-layout fields wholesale. An+ * absent field is DELETED from the overlay (falling back to "untouched"+ * defaults) — `updateSystemStatus` deep-merges and can neither delete keys+ * nor drop a field the incoming server preference no longer carries.+ */+ setWorkspaceSidebarOverlay = (layout: {+ hiddenSidebarSections?: string[];+ sidebarItems?: string[];+ }): void => {+ if (!this.#get().isStatusInit) return;+ const status = this.#get().status;+ const {+ hiddenSidebarSections: _hidden,+ sidebarItems: _items,+ ...rest+ } = status.workspace ?? {};+ const workspace = {+ ...rest,+ ...(layout.hiddenSidebarSections+ ? { hiddenSidebarSections: layout.hiddenSidebarSections }+ : {}),+ ...(layout.sidebarItems ? { sidebarItems: layout.sidebarItems } : {}),+ };+ if (isEqual(status.workspace ?? {}, workspace)) return;+ const nextStatus = { ...status, workspace };+ this.#set({ status: nextStatus }, false, n('setWorkspaceSidebarOverlay'));+ this.#get().statusStorage.saveToLocalStorage(nextStatus);+ };+resetSidebarCustomization = (): void => {this.#get().updateSystemStatus({diff --git a/src/store/global/initialState.ts b/src/store/global/initialState.tsindex ca4aec9545a..c69c01fe2e3 100644--- a/src/store/global/initialState.ts+++ b/src/store/global/initialState.ts@@ -143,6 +143,19 @@ export interface SystemStatus {* Agent Builder panel width*/agentBuilderPanelWidth?: number;+ /**+ * View mode of the agent view-all page (card grid vs table list)+ */+ agentListViewMode?: 'card' | 'list';+ /**+ * Display options of the agent view-all page (grouping / ordering / hidden-agent visibility)+ */+ agentListViewOptions?: {+ groupBy: 'author' | 'none';+ orderBy: 'author' | 'title' | 'updatedAt';+ orderDirection: 'asc' | 'desc';+ showSidebarHidden: boolean;+ };/*** number of agents (defaultList) to display*/@@ -443,6 +456,13 @@ export interface GlobalState {export const INITIAL_STATUS = {agentBuilderPanelWidth: 360,+ agentListViewMode: 'list' as const,+ agentListViewOptions: {+ groupBy: 'none' as const,+ orderBy: 'updatedAt' as const,+ orderDirection: 'desc' as const,+ showSidebarHidden: true,+ },agentPageSize: 5,privateAgentPageSize: 5,chatInputHeight: 64,diff --git a/src/store/global/selectors/systemStatus.ts b/src/store/global/selectors/systemStatus.tsindex af19a0b8593..dfc06282d6d 100644--- a/src/store/global/selectors/systemStatus.ts+++ b/src/store/global/selectors/systemStatus.ts@@ -398,6 +398,8 @@ const portalWidth = (s: GlobalState) => s.status.portalWidth || 400;const filePanelWidth = (s: GlobalState) => s.status.filePanelWidth;const groupAgentBuilderPanelWidth = (s: GlobalState) => s.status.groupAgentBuilderPanelWidth || 360;const imagePanelWidth = (s: GlobalState) => s.status.imagePanelWidth;+const agentListViewMode = (s: GlobalState) => s.status.agentListViewMode || 'list';+const agentListViewOptions = (s: GlobalState) => s.status.agentListViewOptions;const imageTopicViewMode = (s: GlobalState) => s.status.imageTopicViewMode || 'grid';const imageTopicPanelWidth = (s: GlobalState) => s.status.imageTopicPanelWidth;const verifyReportPanelWidth = (s: GlobalState) => s.status.verifyReportPanelWidth || 300;@@ -442,6 +444,8 @@ const homeSelectedAgentId = (s: GlobalState) => s.status.homeSelectedAgentId;export const systemStatusSelectors = {agentBuilderPanelWidth,+ agentListViewMode,+ agentListViewOptions,agentPageSize,chatInputHeight,disabledModelProvidersSortType,diff --git a/src/store/home/slices/sidebarUI/action.ts b/src/store/home/slices/sidebarUI/action.tsindex 9a015011c8a..baba809ce2b 100644--- a/src/store/home/slices/sidebarUI/action.ts+++ b/src/store/home/slices/sidebarUI/action.ts@@ -1,5 +1,6 @@import { t } from 'i18next';+import { getActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';import { message } from '@/components/AntdStaticMethods';import { agentService } from '@/services/agent';import { chatGroupService } from '@/services/chatGroup';@@ -117,7 +118,20 @@ export class SidebarUIActionImpl {};updateAgentGroup = async (agentId: string, groupId: string | null): Promise<void> => {- await homeService.updateAgentSessionGroupId(agentId, groupId === 'default' ? null : groupId);+ const normalized = groupId === 'default' ? null : groupId;+ const workspaceId = getActiveWorkspaceId();+ if (workspaceId) {+ // Folders are per-member in workspace mode: record the assignment in the+ // caller's workspace_user_settings instead of the shared+ // `agents.sessionGroupId` column, so one member's move never regroups+ // another member's sidebar.+ const { getUserStoreState } = await import('@/store/user');+ await getUserStoreState().updateWorkspaceUserPreference({+ sidebarGroupAssignments: { [agentId]: normalized },+ });+ } else {+ await homeService.updateAgentSessionGroupId(agentId, normalized);+ }await this.#get().refreshAgentList();};diff --git a/src/store/user/slices/workspaceUserSettings/action.ts b/src/store/user/slices/workspaceUserSettings/action.tsindex 51b86d25caf..f51ae82c264 100644--- a/src/store/user/slices/workspaceUserSettings/action.ts+++ b/src/store/user/slices/workspaceUserSettings/action.ts@@ -59,13 +59,13 @@ export class WorkspaceUserSettingsActionImpl {// response (no server row) clears the bucket for the same reason.const data = swr.data;useEffect(() => {- if (data === undefined) return;+ if (data === undefined || !workspaceId) return;this.#set(- { workspaceUserPreference: data ?? {} },+ { workspaceUserPreference: data ?? {}, workspaceUserPreferenceWorkspaceId: workspaceId },false,n('useFetchWorkspaceUserPreference/sync'),);- }, [data]);+ }, [data, workspaceId]);return swr;};@@ -106,6 +106,14 @@ export class WorkspaceUserSettingsActionImpl {},}: {}),+ ...(patch.sidebarGroupAssignments+ ? {+ sidebarGroupAssignments: {+ ...previous.sidebarGroupAssignments,+ ...patch.sidebarGroupAssignments,+ },+ }+ : {}),};const workspaceId = getActiveWorkspaceId();const swrKey = workspaceId ? [WORKSPACE_USER_SETTINGS_SWR_KEY, workspaceId] : null;diff --git a/src/store/user/slices/workspaceUserSettings/initialState.ts b/src/store/user/slices/workspaceUserSettings/initialState.tsindex 2b8994f01c3..a25e171f782 100644--- a/src/store/user/slices/workspaceUserSettings/initialState.ts+++ b/src/store/user/slices/workspaceUserSettings/initialState.ts@@ -12,8 +12,16 @@ export interface WorkspaceUserSettingsState {* shared defaults", identical to the pre-LOBE-11689 behaviour.*/workspaceUserPreference: WorkspaceUserPreference;+ /**+ * The workspace whose preference row `workspaceUserPreference` currently+ * holds, or `null` before the first fetch resolves. Lets consumers tell+ * "loaded and empty" apart from "not fetched yet" (e.g. the sidebar bridge+ * must not clear the overlay until the active workspace's row has loaded).+ */+ workspaceUserPreferenceWorkspaceId: string | null;}export const initialWorkspaceUserSettingsState: WorkspaceUserSettingsState = {workspaceUserPreference: {},+ workspaceUserPreferenceWorkspaceId: null,};diff --git a/src/store/user/slices/workspaceUserSettings/selectors.ts b/src/store/user/slices/workspaceUserSettings/selectors.tsindex 61d1f6720ae..0d69e18c21d 100644--- a/src/store/user/slices/workspaceUserSettings/selectors.ts+++ b/src/store/user/slices/workspaceUserSettings/selectors.ts@@ -19,7 +19,33 @@ const agentModelOverrideById =(s: UserStore): AgentModelOverride | undefined =>s.workspaceUserPreference.agentModelOverrides?.[agentId];+const EMPTY_HIDDEN: string[] = [];++/**+ * Sidebar items the caller removed from their sidebar in the active+ * workspace. Empty in personal mode (the preference bucket never loads+ * there — the personal counterpart lives in `users.preference`).+ */+const sidebarHiddenAgentIds = (s: UserStore): string[] =>+ s.workspaceUserPreference.sidebarHiddenAgentIds ?? EMPTY_HIDDEN;++/** Whether the caller removed this item from their sidebar (default is listed). */+const isAgentHiddenFromSidebar =+ (agentId: string) =>+ (s: UserStore): boolean =>+ !!s.workspaceUserPreference.sidebarHiddenAgentIds?.includes(agentId);++/** Per-member sidebar sections layout for the active workspace. */+const sidebarLayout = (s: UserStore) => s.workspaceUserPreference.sidebar;++/** The workspace whose preference row is currently loaded (null = not yet fetched). */+const preferenceWorkspaceId = (s: UserStore) => s.workspaceUserPreferenceWorkspaceId;+export const workspaceUserSettingsSelectors = {agentDeviceOverrideById,agentModelOverrideById,+ isAgentHiddenFromSidebar,+ preferenceWorkspaceId,+ sidebarHiddenAgentIds,+ sidebarLayout,};