🤯 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(sidebar): flatten the menu, move Memory into Settings, rename Marketplace to Plugins (#23709)
AmAzing-bd28095d0cff
diff --git a/locales/en-US/common.json b/locales/en-US/common.jsonindex 2a3d2a716f0..f41f813056b 100644--- a/locales/en-US/common.json+++ b/locales/en-US/common.json@@ -85,7 +85,7 @@"cmdk.communitySupport": "Community Support","cmdk.contactUs": "Contact Us","cmdk.context.agent": "Agent",- "cmdk.context.community": "Marketplace",+ "cmdk.context.community": "Plugins","cmdk.context.general": "General","cmdk.context.group": "Group","cmdk.context.memory": "Memory",@@ -106,7 +106,7 @@"cmdk.keywords.funds": "funds balance usage money","cmdk.keywords.hotkey": "hotkey shortcut keyboard","cmdk.keywords.image": "image picture photo",- "cmdk.keywords.marketplace": "marketplace market community discover agent skill connector model provider mcp",+ "cmdk.keywords.marketplace": "plugin plugins marketplace market community discover agent skill connector model provider mcp","cmdk.keywords.memory": "identities contexts preferences experiences","cmdk.keywords.pages": "documents write notes","cmdk.keywords.painting": "painting art generate draw",@@ -153,7 +153,7 @@"cmdk.search.knowledgeBase": "Library","cmdk.search.knowledgeBases": "Libraries","cmdk.search.loading": "Searching...",- "cmdk.search.market": "Marketplace",+ "cmdk.search.market": "Plugins","cmdk.search.mcp": "MCP Server","cmdk.search.mcps": "MCP Servers","cmdk.search.memories": "Memories",@@ -360,7 +360,6 @@"messengerBanner.title": "Talk to Lobe AI on your favorite messaging apps","more": "More","navPanel.agent": "Agents",- "navPanel.bottomDivider": "Items below anchor to bottom","navPanel.browseAllAgents": "All agents","navPanel.createPrivateFolder": "New private category","navPanel.customizeSidebar": "Customize Sidebar",@@ -505,7 +504,7 @@"tab.home": "Home","tab.image": "Image","tab.knowledgeBase": "Library",- "tab.marketplace": "Marketplace",+ "tab.marketplace": "Plugins","tab.me": "Me","tab.memory": "Memory","tab.music": "Music",diff --git a/locales/en-US/discover.json b/locales/en-US/discover.jsonindex 5de99b53b90..d01418d6d07 100644--- a/locales/en-US/discover.json+++ b/locales/en-US/discover.json@@ -236,7 +236,7 @@"fork.forks": "forks","fork.forksCount": "{{count}} fork","fork.forksCount_other": "{{count}} forks",- "fork.orgSetupRequired.memberContent": "This workspace has not yet set up a Community profile, so forks from the marketplace can't be saved here. Please ask the workspace owner to set it up under Marketplace → Workspace.",+ "fork.orgSetupRequired.memberContent": "This workspace has not yet set up a Community profile, so forks from the marketplace can't be saved here. Please ask the workspace owner to set it up under Plugins → Workspace.","fork.orgSetupRequired.ownerContent": "This workspace has not yet set up a Community profile. Set one up to fork agents from the marketplace into your workspace.","fork.orgSetupRequired.ownerOk": "Go to setup","fork.orgSetupRequired.title": "Community profile setup required",diff --git a/locales/en-US/electron.json b/locales/en-US/electron.jsonindex ff6e978309d..9f0e65ed825 100644--- a/locales/en-US/electron.json+++ b/locales/en-US/electron.json@@ -40,15 +40,15 @@"navigation.knowledgeBase": "Knowledge Base","navigation.lobehub": "LobeHub","navigation.mail": "Mail",- "navigation.marketplace": "Marketplace",- "navigation.marketplaceAgents": "Marketplace · Agents",+ "navigation.marketplace": "Plugins",+ "navigation.marketplaceAgents": "Plugins · Agents","navigation.marketplaceApps": "Apps","navigation.marketplaceConnectors": "Connectors","navigation.marketplaceInstalledSkills": "Installed Skills",- "navigation.marketplaceMcp": "Marketplace · MCP Servers",- "navigation.marketplaceModels": "Marketplace · Models",- "navigation.marketplaceProviders": "Marketplace · Providers",- "navigation.marketplaceSkills": "Marketplace · Skills",+ "navigation.marketplaceMcp": "Plugins · MCP Servers",+ "navigation.marketplaceModels": "Plugins · Models",+ "navigation.marketplaceProviders": "Plugins · Providers",+ "navigation.marketplaceSkills": "Plugins · Skills","navigation.memory": "Memory","navigation.memoryContexts": "Memory - Contexts","navigation.memoryIdentities": "Memory - Identities",diff --git a/locales/en-US/memory.json b/locales/en-US/memory.jsonindex b7e9301911b..c729b759ca0 100644--- a/locales/en-US/memory.json+++ b/locales/en-US/memory.json@@ -406,6 +406,7 @@"tab.contexts": "Contexts","tab.home": "Home","tab.identities": "Identities",+ "tab.overview": "Overview","tab.preferences": "Preferences","tab.rules": "Self-evolving","tab.search": "Search",diff --git a/locales/en-US/messenger.json b/locales/en-US/messenger.jsonindex 3ee854bf782..f28ab671126 100644--- a/locales/en-US/messenger.json+++ b/locales/en-US/messenger.json@@ -30,7 +30,7 @@"messenger.discord.connections.disconnectSuccess": "Server removed.","messenger.discord.connections.disconnectTitle": "Remove server","messenger.discord.installBlocked.dismiss": "Got it",- "messenger.discord.installBlocked.nextSteps": "DM the LobeHub bot on Discord to link your personal account — you don't need to add the bot again. Or ask the original installer to remove this server in LobeHub Marketplace → Apps before re-adding it.",+ "messenger.discord.installBlocked.nextSteps": "DM the LobeHub bot on Discord to link your personal account — you don't need to add the bot again. Or ask the original installer to remove this server in LobeHub Plugins → Apps before re-adding it.","messenger.discord.installBlocked.title": "Server already connected","messenger.discord.installBlocked.withName": "\"{{workspace}}\" is already connected to LobeHub by another user.","messenger.discord.installBlocked.withoutName": "This Discord server is already connected to LobeHub by another user.",@@ -202,13 +202,13 @@"verify.confirm.conflict.title": "This account is already linked","verify.confirm.cta": "Confirm linking","verify.confirm.defaultAgent": "Default agent",- "verify.confirm.defaultAgentMarketplaceHint": "Your messages will be routed here first. You can switch any time via /agents in the bot or from Marketplace → Apps.",+ "verify.confirm.defaultAgentMarketplaceHint": "Your messages will be routed here first. You can switch any time via /agents in the bot or from Plugins → Apps.","verify.confirm.defaultAgentPlaceholder": "Select an agent","verify.confirm.fields.lobeHubAccount": "LobeHub account","verify.confirm.fields.platformAccount": "{{platform}} account","verify.confirm.fields.workspace": "Workspace","verify.confirm.noAgents": "You don't have any agents yet. Create one in LobeHub, then come back to finish linking.",- "verify.confirm.relink.disconnectInMarketplace": "This LobeHub account is already linked to {{platform}} account {{account}}. To link a different {{platform}} account, disconnect the current one first in Marketplace → Apps.",+ "verify.confirm.relink.disconnectInMarketplace": "This LobeHub account is already linked to {{platform}} account {{account}}. To link a different {{platform}} account, disconnect the current one first in Plugins → Apps.","verify.confirm.relink.openApp": "Open app","verify.confirm.relink.title": "Another {{platform}} account is already linked","verify.confirm.title": "Confirm linking",@@ -220,7 +220,7 @@"verify.error.generic": "Something went wrong. Please try again.","verify.error.missingToken": "Invalid link. Open this page from the bot.","verify.error.title": "Unable to confirm link",- "verify.error.unlinkBeforeRelink": "This LobeHub account is already linked to another account on this platform. Disconnect it in Marketplace → Apps before linking a new one.",+ "verify.error.unlinkBeforeRelink": "This LobeHub account is already linked to another account on this platform. Disconnect it in Plugins → Apps before linking a new one.","verify.signInCta": "Sign in to continue","verify.signInRequired": "Please sign in to LobeHub to confirm the link.","verify.success.backToLobeHub": "Back to LobeHub",diff --git a/locales/en-US/metadata.json b/locales/en-US/metadata.jsonindex f078d1cb34f..536b588cac5 100644--- a/locales/en-US/metadata.json+++ b/locales/en-US/metadata.json@@ -15,7 +15,7 @@"discover.providers.description": "Explore leading model providers OpenAI / Qwen / Ollama / Anthropic / DeepSeek / Google Gemini / OpenRouter","discover.providers.title": "Provider Marketplace","discover.search": "Search",- "discover.title": "Marketplace",+ "discover.title": "Plugins","image.description": "{{appName}} brings you the best experience with GPT Image, Flux, Midjourney, and Stable Diffusion","image.title": "AI Art","plugins.description": "Search, charts, academic tools, image/video/voice generation, workflows—add Skills to your Agents.",diff --git a/locales/en-US/setting.json b/locales/en-US/setting.jsonindex 0c064fe35fa..8b815a3fc37 100644--- a/locales/en-US/setting.json+++ b/locales/en-US/setting.json@@ -4209,9 +4209,9 @@"workspace.onboarding.step3.subtitle": "Pick a few to start — discover more anytime.","workspace.onboarding.step4.cta": "Enter workspace","workspace.onboarding.step4.heading": "{{name}} is ready!",- "workspace.onboarding.step4.marketProfileAdjust": "We've automatically created a Community profile for your workspace. <cta>Adjust it in the Marketplace</cta>.",- "workspace.onboarding.step4.marketProfileCreate": "We couldn't set up your Community profile automatically. <cta>Create one in the Marketplace</cta> so workspace agents can be shared.",- "workspace.onboarding.step4.marketProfileNudge": "We've set up a Community profile for <strong>{{name}}</strong> so workspace agents can be installed. <cta>Customize it in the Marketplace</cta>.",+ "workspace.onboarding.step4.marketProfileAdjust": "We've automatically created a Community profile for your workspace. <cta>Adjust it in Plugins</cta>.",+ "workspace.onboarding.step4.marketProfileCreate": "We couldn't set up your Community profile automatically. <cta>Create one in Plugins</cta> so workspace agents can be shared.",+ "workspace.onboarding.step4.marketProfileNudge": "We've set up a Community profile for <strong>{{name}}</strong> so workspace agents can be installed. <cta>Customize it in Plugins</cta>.","workspace.onboarding.step4.subtitle": "Your workspace is set up. Jump in and start collaborating with your team.","workspace.onboarding.step4.subtitleWithAgents": "{{count}} agent(s) ready to help. Jump in and start collaborating with your team.","workspace.onboarding.step4Invite.addMore": "Add another email",diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.jsonindex d229f5f619b..2beb12e479e 100644--- a/locales/zh-CN/common.json+++ b/locales/zh-CN/common.json@@ -85,7 +85,7 @@"cmdk.communitySupport": "社区支持","cmdk.contactUs": "联系我们","cmdk.context.agent": "助理",- "cmdk.context.community": "市场",+ "cmdk.context.community": "插件","cmdk.context.general": "通用","cmdk.context.group": "群组","cmdk.context.memory": "记忆",@@ -106,7 +106,7 @@"cmdk.keywords.funds": "资金 余额 额度 充值","cmdk.keywords.hotkey": "热键 快捷键 键盘","cmdk.keywords.image": "图像 图片 照片",- "cmdk.keywords.marketplace": "市场 社区 发现 助理 技能 连接器 模型 提供商 mcp marketplace community",+ "cmdk.keywords.marketplace": "插件 plugin 市场 社区 发现 助理 技能 连接器 模型 提供商 mcp marketplace community","cmdk.keywords.memory": "身份 上下文 偏好 经验 记忆","cmdk.keywords.pages": "文档 写作 笔记 文稿","cmdk.keywords.painting": "绘画 艺术 生成 画图 绘图",@@ -153,7 +153,7 @@"cmdk.search.knowledgeBase": "知识库","cmdk.search.knowledgeBases": "知识库","cmdk.search.loading": "搜索中…",- "cmdk.search.market": "市场",+ "cmdk.search.market": "插件","cmdk.search.mcp": "MCP 服务器","cmdk.search.mcps": "MCP 服务器","cmdk.search.memories": "记忆",@@ -360,7 +360,6 @@"messengerBanner.title": "在你喜爱的聊天应用中,与 Lobe AI 畅聊","more": "更多","navPanel.agent": "助理",- "navPanel.bottomDivider": "下方条目锚定到底部","navPanel.browseAllAgents": "全部助理","navPanel.createPrivateFolder": "新建私人分组","navPanel.customizeSidebar": "自定义侧边栏",@@ -505,7 +504,7 @@"tab.home": "首页","tab.image": "图片","tab.knowledgeBase": "资源库",- "tab.marketplace": "市场",+ "tab.marketplace": "插件","tab.me": "我","tab.memory": "记忆","tab.music": "音乐",diff --git a/locales/zh-CN/discover.json b/locales/zh-CN/discover.jsonindex 05a928496b5..1233c1f5d46 100644--- a/locales/zh-CN/discover.json+++ b/locales/zh-CN/discover.json@@ -236,7 +236,7 @@"fork.forks": "派生","fork.forksCount": "{{count}} 个派生","fork.forksCount_other": "{{count}} 个派生",- "fork.orgSetupRequired.memberContent": "当前工作区还未配置社区资料,无法把市场派生的助理保存到工作区。请联系工作区所有者到「市场 → 工作区」配置一次。",+ "fork.orgSetupRequired.memberContent": "当前工作区还未配置社区资料,无法把市场派生的助理保存到工作区。请联系工作区所有者到「插件 → 工作区」配置一次。","fork.orgSetupRequired.ownerContent": "当前工作区还未配置社区资料。配置后即可把市场的助理派生到工作区里使用。","fork.orgSetupRequired.ownerOk": "前往配置","fork.orgSetupRequired.title": "需要先配置社区资料",diff --git a/locales/zh-CN/electron.json b/locales/zh-CN/electron.jsonindex b344136d1d3..6998ab61d17 100644--- a/locales/zh-CN/electron.json+++ b/locales/zh-CN/electron.json@@ -40,15 +40,15 @@"navigation.knowledgeBase": "知识库","navigation.lobehub": "LobeHub","navigation.mail": "邮箱",- "navigation.marketplace": "市场",- "navigation.marketplaceAgents": "市场 · 助理",+ "navigation.marketplace": "插件",+ "navigation.marketplaceAgents": "插件 · 助理","navigation.marketplaceApps": "应用","navigation.marketplaceConnectors": "连接器","navigation.marketplaceInstalledSkills": "已安装技能",- "navigation.marketplaceMcp": "市场 · MCP 服务器",- "navigation.marketplaceModels": "市场 · 模型",- "navigation.marketplaceProviders": "市场 · 模型服务商",- "navigation.marketplaceSkills": "市场 · 技能",+ "navigation.marketplaceMcp": "插件 · MCP 服务器",+ "navigation.marketplaceModels": "插件 · 模型",+ "navigation.marketplaceProviders": "插件 · 模型服务商",+ "navigation.marketplaceSkills": "插件 · 技能","navigation.memory": "记忆","navigation.memoryContexts": "记忆 - 上下文","navigation.memoryIdentities": "记忆 - 身份",diff --git a/locales/zh-CN/memory.json b/locales/zh-CN/memory.jsonindex 032e1f0b2c4..21cff8413ee 100644--- a/locales/zh-CN/memory.json+++ b/locales/zh-CN/memory.json@@ -406,6 +406,7 @@"tab.contexts": "情境","tab.home": "首页","tab.identities": "身份",+ "tab.overview": "概览","tab.preferences": "偏好","tab.rules": "自进化","tab.search": "搜索",diff --git a/locales/zh-CN/messenger.json b/locales/zh-CN/messenger.jsonindex baf9130ee35..8110450a4e0 100644--- a/locales/zh-CN/messenger.json+++ b/locales/zh-CN/messenger.json@@ -30,7 +30,7 @@"messenger.discord.connections.disconnectSuccess": "服务器已移除。","messenger.discord.connections.disconnectTitle": "移除服务器","messenger.discord.installBlocked.dismiss": "我知道了",- "messenger.discord.installBlocked.nextSteps": "在 Discord 中私信 LobeHub 机器人即可绑定个人账号——不需要再次添加机器人。如需重新接管该服务器,请让原安装人先在「市场 → 应用」中移除该服务器后再重新邀请。",+ "messenger.discord.installBlocked.nextSteps": "在 Discord 中私信 LobeHub 机器人即可绑定个人账号——不需要再次添加机器人。如需重新接管该服务器,请让原安装人先在「插件 → 应用」中移除该服务器后再重新邀请。","messenger.discord.installBlocked.title": "服务器已被连接","messenger.discord.installBlocked.withName": "「{{workspace}}」已被另一位 LobeHub 用户连接到 LobeHub。","messenger.discord.installBlocked.withoutName": "该 Discord 服务器已被另一位 LobeHub 用户连接到 LobeHub。",@@ -202,13 +202,13 @@"verify.confirm.conflict.title": "该账号已被绑定","verify.confirm.cta": "确认绑定","verify.confirm.defaultAgent": "默认 Agent",- "verify.confirm.defaultAgentMarketplaceHint": "你的消息将首先路由到这里。你可以随时在机器人中通过 /agents 或在「市场 → 应用」中切换。",+ "verify.confirm.defaultAgentMarketplaceHint": "你的消息将首先路由到这里。你可以随时在机器人中通过 /agents 或在「插件 → 应用」中切换。","verify.confirm.defaultAgentPlaceholder": "请选择 Agent","verify.confirm.fields.lobeHubAccount": "LobeHub 账号","verify.confirm.fields.platformAccount": "{{platform}} 账号","verify.confirm.fields.workspace": "工作区","verify.confirm.noAgents": "你还没有 Agent。请先在 LobeHub 中创建一个,再回来完成绑定。",- "verify.confirm.relink.disconnectInMarketplace": "此 LobeHub 账户已链接到 {{platform}} 账户 {{account}}。若要链接其他 {{platform}} 账户,请先在「市场 → 应用」中断开当前账户。",+ "verify.confirm.relink.disconnectInMarketplace": "此 LobeHub 账户已链接到 {{platform}} 账户 {{account}}。若要链接其他 {{platform}} 账户,请先在「插件 → 应用」中断开当前账户。","verify.confirm.relink.openApp": "打开应用","verify.confirm.relink.title": "已链接到其他 {{platform}} 账户","verify.confirm.title": "确认绑定",@@ -220,7 +220,7 @@"verify.error.generic": "出错了。请重试。","verify.error.missingToken": "无效链接。请从机器人中打开此页面。","verify.error.title": "无法确认绑定",- "verify.error.unlinkBeforeRelink": "此 LobeHub 账户已链接到当前平台上的另一个账户。请先在「市场 → 应用」中断开后再链接新账户。",+ "verify.error.unlinkBeforeRelink": "此 LobeHub 账户已链接到当前平台上的另一个账户。请先在「插件 → 应用」中断开后再链接新账户。","verify.signInCta": "登录以继续","verify.signInRequired": "请登录 LobeHub 以确认绑定。","verify.success.backToLobeHub": "回到 LobeHub",diff --git a/locales/zh-CN/metadata.json b/locales/zh-CN/metadata.jsonindex 06fe1cd5d76..b003c454593 100644--- a/locales/zh-CN/metadata.json+++ b/locales/zh-CN/metadata.json@@ -15,7 +15,7 @@"discover.providers.description": "探索领先的模型提供商:OpenAI / 通义千问 / Ollama / Anthropic / DeepSeek / Google Gemini / OpenRouter","discover.providers.title": "提供商市场","discover.search": "搜索",- "discover.title": "市场",+ "discover.title": "插件","image.description": "{{appName}} 携手 GPT Image、Flux、Midjourney 和 Stable Diffusion,为您带来卓越的体验","image.title": "AI 艺术","plugins.description": "搜索、图表、学术工具、图像/视频/语音生成、工作流——为您的智能体添加技能。",diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.jsonindex 79df17855c9..192d72dddae 100644--- a/locales/zh-CN/setting.json+++ b/locales/zh-CN/setting.json@@ -4209,9 +4209,9 @@"workspace.onboarding.step3.subtitle": "选择几个开始——随时发现更多。","workspace.onboarding.step4.cta": "进入工作区","workspace.onboarding.step4.heading": "{{name}} 准备就绪!",- "workspace.onboarding.step4.marketProfileAdjust": "你的工作区已自动创建社区档案。<cta>前往市场调整</cta>。",- "workspace.onboarding.step4.marketProfileCreate": "我们没能自动为你创建社区档案。<cta>前往市场创建</cta>,工作区代理才能被分享。",- "workspace.onboarding.step4.marketProfileNudge": "已为 <strong>{{name}}</strong> 自动创建社区档案,工作区代理才能正常安装。<cta>前往市场自定义</cta>。",+ "workspace.onboarding.step4.marketProfileAdjust": "你的工作区已自动创建社区档案。<cta>前往插件调整</cta>。",+ "workspace.onboarding.step4.marketProfileCreate": "我们没能自动为你创建社区档案。<cta>前往插件创建</cta>,工作区代理才能被分享。",+ "workspace.onboarding.step4.marketProfileNudge": "已为 <strong>{{name}}</strong> 自动创建社区档案,工作区代理才能正常安装。<cta>前往插件自定义</cta>。","workspace.onboarding.step4.subtitle": "工作区已经搭建完成,立刻进入和团队一起开始协作吧。","workspace.onboarding.step4.subtitleWithAgents": "已有 {{count}} 位智能体准备就绪,立刻进入和团队一起开始协作吧。","workspace.onboarding.step4Invite.addMore": "添加另一个邮箱",diff --git a/packages/locales/src/default/common.ts b/packages/locales/src/default/common.tsindex d3fb862dd1e..c5a779e61c1 100644--- a/packages/locales/src/default/common.ts+++ b/packages/locales/src/default/common.ts@@ -85,7 +85,7 @@ export default {'cmdk.communitySupport': 'Community Support','cmdk.contactUs': 'Contact Us','cmdk.context.agent': 'Agent',- 'cmdk.context.community': 'Marketplace',+ 'cmdk.context.community': 'Plugins','cmdk.context.general': 'General','cmdk.context.group': 'Group','cmdk.context.memory': 'Memory',@@ -107,7 +107,7 @@ export default {'cmdk.keywords.billing': 'billing payment invoice transaction','cmdk.keywords.marketplace':- 'marketplace market community discover agent skill connector model provider mcp',+ 'plugin plugins marketplace market community discover agent skill connector model provider mcp',// CMDK search keywords (space-separated for i18n)'cmdk.keywords.contactUs': 'feedback issue bug problem',@@ -211,7 +211,7 @@ export default {'cmdk.search.loading': 'Searching...',- 'cmdk.search.market': 'Marketplace',+ 'cmdk.search.market': 'Plugins','cmdk.search.mcp': 'MCP Server',@@ -457,7 +457,6 @@ export default {'navPanel.showMoreTeamPinned': 'Show {{count}} more','navPanel.teamPinned': 'Pinned for team','navPanel.teamPinnedHint': 'Pinned by admins for everyone in this workspace',- 'navPanel.bottomDivider': 'Items below anchor to bottom','navPanel.customizeSidebar': 'Customize Sidebar','navPanel.openMenu': 'Open menu','navPanel.shortcuts': 'Shortcuts',@@ -635,7 +634,7 @@ export default {'tab.goals': 'Goals','tab.home': 'Home','tab.knowledgeBase': 'Library',- 'tab.marketplace': 'Marketplace',+ 'tab.marketplace': 'Plugins','tab.me': 'Me','tab.memory': 'Memory','tab.music': 'Music',diff --git a/packages/locales/src/default/discover.ts b/packages/locales/src/default/discover.tsindex 24d79d41185..0d5a5096442 100644--- a/packages/locales/src/default/discover.ts+++ b/packages/locales/src/default/discover.ts@@ -291,7 +291,7 @@ export default {'fork.forksCount_other': '{{count}} forks','fork.orgSetupRequired.memberContent':- "This workspace has not yet set up a Community profile, so forks from the marketplace can't be saved here. Please ask the workspace owner to set it up under Marketplace → Workspace.",+ "This workspace has not yet set up a Community profile, so forks from the marketplace can't be saved here. Please ask the workspace owner to set it up under Plugins → Workspace.",'fork.orgSetupRequired.ownerContent':'This workspace has not yet set up a Community profile. Set one up to fork agents from the marketplace into your workspace.','fork.orgSetupRequired.ownerOk': 'Go to setup',diff --git a/packages/locales/src/default/electron.ts b/packages/locales/src/default/electron.tsindex 1d79a2b6788..8eb1b1f6438 100644--- a/packages/locales/src/default/electron.ts+++ b/packages/locales/src/default/electron.ts@@ -15,12 +15,12 @@ export default {'navigation.channels': 'IM Bots','navigation.chat': 'Chat','navigation.dashboard': 'Dashboards',- 'navigation.marketplace': 'Marketplace',- 'navigation.marketplaceAgents': 'Marketplace · Agents',- 'navigation.marketplaceMcp': 'Marketplace · MCP Servers',- 'navigation.marketplaceModels': 'Marketplace · Models',- 'navigation.marketplaceProviders': 'Marketplace · Providers',- 'navigation.marketplaceSkills': 'Marketplace · Skills',+ 'navigation.marketplace': 'Plugins',+ 'navigation.marketplaceAgents': 'Plugins · Agents',+ 'navigation.marketplaceMcp': 'Plugins · MCP Servers',+ 'navigation.marketplaceModels': 'Plugins · Models',+ 'navigation.marketplaceProviders': 'Plugins · Providers',+ 'navigation.marketplaceSkills': 'Plugins · Skills','navigation.marketplaceApps': 'Apps','navigation.marketplaceConnectors': 'Connectors','navigation.marketplaceInstalledSkills': 'Installed Skills',diff --git a/packages/locales/src/default/memory.ts b/packages/locales/src/default/memory.tsindex 35207d057ef..805f2e994f1 100644--- a/packages/locales/src/default/memory.ts+++ b/packages/locales/src/default/memory.ts@@ -373,6 +373,7 @@ export default {'tab.contexts': 'Contexts','tab.home': 'Home','tab.identities': 'Identities',+ 'tab.overview': 'Overview','tab.preferences': 'Preferences','tab.rules': 'Self-evolving','tab.search': 'Search',diff --git a/packages/locales/src/default/messenger.ts b/packages/locales/src/default/messenger.tsindex 79b8142ec25..5c10eafa128 100644--- a/packages/locales/src/default/messenger.ts+++ b/packages/locales/src/default/messenger.ts@@ -89,7 +89,7 @@ export default {'messenger.discord.connections.disconnectTitle': 'Remove server','messenger.discord.installBlocked.dismiss': 'Got it','messenger.discord.installBlocked.nextSteps':- "DM the LobeHub bot on Discord to link your personal account — you don't need to add the bot again. Or ask the original installer to remove this server in LobeHub Marketplace → Apps before re-adding it.",+ "DM the LobeHub bot on Discord to link your personal account — you don't need to add the bot again. Or ask the original installer to remove this server in LobeHub Plugins → Apps before re-adding it.",'messenger.discord.installBlocked.title': 'Server already connected','messenger.discord.installBlocked.withName':'"{{workspace}}" is already connected to LobeHub by another user.',@@ -247,7 +247,7 @@ export default {'verify.confirm.cta': 'Confirm linking','verify.confirm.defaultAgent': 'Default agent','verify.confirm.defaultAgentMarketplaceHint':- 'Your messages will be routed here first. You can switch any time via /agents in the bot or from Marketplace → Apps.',+ 'Your messages will be routed here first. You can switch any time via /agents in the bot or from Plugins → Apps.','verify.confirm.defaultAgentPlaceholder': 'Select an agent','verify.confirm.fields.lobeHubAccount': 'LobeHub account','verify.confirm.fields.platformAccount': '{{platform}} account',@@ -255,7 +255,7 @@ export default {'verify.confirm.noAgents':"You don't have any agents yet. Create one in LobeHub, then come back to finish linking.",'verify.confirm.relink.disconnectInMarketplace':- 'This LobeHub account is already linked to {{platform}} account {{account}}. To link a different {{platform}} account, disconnect the current one first in Marketplace → Apps.',+ 'This LobeHub account is already linked to {{platform}} account {{account}}. To link a different {{platform}} account, disconnect the current one first in Plugins → Apps.','verify.confirm.relink.openApp': 'Open app','verify.confirm.relink.title': 'Another {{platform}} account is already linked','verify.confirm.title': 'Confirm linking',@@ -270,7 +270,7 @@ export default {'verify.error.missingToken': 'Invalid link. Open this page from the bot.','verify.error.title': 'Unable to confirm link','verify.error.unlinkBeforeRelink':- 'This LobeHub account is already linked to another account on this platform. Disconnect it in Marketplace → Apps before linking a new one.',+ 'This LobeHub account is already linked to another account on this platform. Disconnect it in Plugins → Apps before linking a new one.','verify.signInCta': 'Sign in to continue','verify.signInRequired': 'Please sign in to LobeHub to confirm the link.','verify.success.backToLobeHub': 'Back to LobeHub',diff --git a/packages/locales/src/default/metadata.ts b/packages/locales/src/default/metadata.tsindex f9a8b54eadd..80db44863bf 100644--- a/packages/locales/src/default/metadata.ts+++ b/packages/locales/src/default/metadata.ts@@ -21,7 +21,7 @@ export default {'Explore leading model providers OpenAI / Qwen / Ollama / Anthropic / DeepSeek / Google Gemini / OpenRouter','discover.providers.title': 'Provider Marketplace','discover.search': 'Search',- 'discover.title': 'Marketplace',+ 'discover.title': 'Plugins','image.description':'{{appName}} brings you the best experience with GPT Image, Flux, Midjourney, and Stable Diffusion','image.title': 'AI Art',diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.tsindex 8cac09305f4..2687a0d53b8 100644--- a/packages/locales/src/default/setting.ts+++ b/packages/locales/src/default/setting.ts@@ -4270,11 +4270,11 @@ When I am ___, I need ___'workspace.onboarding.step4.subtitleWithAgents':'{{count}} agent(s) ready to help. Jump in and start collaborating with your team.','workspace.onboarding.step4.marketProfileNudge':- "We've set up a Community profile for <strong>{{name}}</strong> so workspace agents can be installed. <cta>Customize it in the Marketplace</cta>.",+ "We've set up a Community profile for <strong>{{name}}</strong> so workspace agents can be installed. <cta>Customize it in Plugins</cta>.",'workspace.onboarding.step4.marketProfileAdjust':- "We've automatically created a Community profile for your workspace. <cta>Adjust it in the Marketplace</cta>.",+ "We've automatically created a Community profile for your workspace. <cta>Adjust it in Plugins</cta>.",'workspace.onboarding.step4.marketProfileCreate':- "We couldn't set up your Community profile automatically. <cta>Create one in the Marketplace</cta> so workspace agents can be shared.",+ "We couldn't set up your Community profile automatically. <cta>Create one in Plugins</cta> so workspace agents can be shared.",'workspace.onboarding.step4.cta': 'Enter workspace','workspaceSetting.breadcrumb.settings': 'Settings','workspaceSetting.devices.connectTitlePrivate': 'Add private device',diff --git a/src/features/AgentGoals/AgentGoalsPage.tsx b/src/features/AgentGoals/AgentGoalsPage.tsxindex 23cc3102d4f..9a1d556900f 100644--- a/src/features/AgentGoals/AgentGoalsPage.tsx+++ b/src/features/AgentGoals/AgentGoalsPage.tsx@@ -297,8 +297,12 @@ const AgentGoalsPage = memo<AgentGoalsPageProps>(({ agentId, projectId }) => {<Flexbox flex={1} height={'100%'}><NavHeaderleft={- agentId || (isGlobal && !activeWorkspaceId) ? (- <AgentGoalsAndTasksTabs agentId={agentId} view={'goals'} />+ agentId || isGlobal ? (+ <AgentGoalsAndTasksTabs+ agentId={agentId}+ showMine={isGlobal && !!activeWorkspaceId}+ view={'goals'}+ />) : (<Text weight={600}>{t('goalList.title')}</Text>)diff --git a/src/features/AgentTasks/AgentGoalsAndTasksTabs.test.ts b/src/features/AgentTasks/AgentGoalsAndTasksTabs.test.tsindex 8d96bb6b460..27af2c6373a 100644--- a/src/features/AgentTasks/AgentGoalsAndTasksTabs.test.ts+++ b/src/features/AgentTasks/AgentGoalsAndTasksTabs.test.ts@@ -9,6 +9,13 @@ describe('goalsAndTasksTabPath', () => {expect(goalsAndTasksTabPath('goals')).toBe('/goals');});+ it('addresses the full list by param where My tasks owns the bare URL', () => {+ expect(goalsAndTasksTabPath('mine', undefined, { showMine: true })).toBe('/tasks');+ expect(goalsAndTasksTabPath('tasks', undefined, { showMine: true })).toBe(+ '/tasks?collection=all',+ );+ });+it('scopes every tab to the agent', () => {expect(goalsAndTasksTabPath('tasks', 'agt_1')).toBe('/agent/agt_1/tasks');expect(goalsAndTasksTabPath('scheduled', 'agt_1')).toBe(diff --git a/src/features/AgentTasks/AgentGoalsAndTasksTabs.tsx b/src/features/AgentTasks/AgentGoalsAndTasksTabs.tsxindex 32c0ff75a2a..e548c7835b8 100644--- a/src/features/AgentTasks/AgentGoalsAndTasksTabs.tsx+++ b/src/features/AgentTasks/AgentGoalsAndTasksTabs.tsx@@ -5,14 +5,20 @@ import { useTranslation } from 'react-i18next';import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';/** The two task collections this strip switches between, beside goals. */-export type GoalsAndTasksCollection = 'scheduled' | 'tasks';+export type GoalsAndTasksCollection = 'mine' | 'scheduled' | 'tasks';export type GoalsAndTasksView = 'goals' | GoalsAndTasksCollection;/** Tab order: the two existing tabs keep their place, scheduled tasks join after them. */const GOALS_AND_TASKS_TABS: readonly GoalsAndTasksView[] = ['tasks', 'goals', 'scheduled'];+/** A workspace's global page leads with "My tasks", its landing tab. */+const GOALS_AND_TASKS_TABS_WITH_MINE: readonly GoalsAndTasksView[] = [+ 'mine',+ ...GOALS_AND_TASKS_TABS,+];const TAB_LABEL_KEYS = {goals: 'goalList.title',+ mine: 'taskList.mine.title',scheduled: 'tab.scheduled',tasks: 'tab.tasks',} as const satisfies Record<GoalsAndTasksView, string>;@@ -22,10 +28,16 @@ const TAB_LABEL_KEYS = {* collection of the tasks route, so that tab keeps its `collection=scheduled`* address and every existing link to it still resolves.*/-export const goalsAndTasksTabPath = (view: GoalsAndTasksView, agentId?: string): string => {+export const goalsAndTasksTabPath = (+ view: GoalsAndTasksView,+ agentId?: string,+ options: { showMine?: boolean } = {},+): string => {const base = agentId ? `/agent/${agentId}` : '';if (view === 'goals') return `${base}/goals`;- return view === 'scheduled' ? `${base}/tasks?collection=scheduled` : `${base}/tasks`;+ if (view === 'scheduled') return `${base}/tasks?collection=scheduled`;+ // Where "My tasks" is offered it owns the bare URL, so the full list needs a param.+ return view === 'tasks' && options.showMine ? `${base}/tasks?collection=all` : `${base}/tasks`;};export type GoalsAndTasksTabAction =@@ -39,27 +51,33 @@ export type GoalsAndTasksTabAction =*/export const resolveGoalsAndTasksTabAction = (next: GoalsAndTasksView,- options: { agentId?: string; switchesCollectionInPlace?: boolean } = {},+ options: { agentId?: string; showMine?: boolean; switchesCollectionInPlace?: boolean } = {},): GoalsAndTasksTabAction =>next !== 'goals' && options.switchesCollectionInPlace? { collection: next, type: 'collection' }- : { path: goalsAndTasksTabPath(next, options.agentId), type: 'navigate' };+ : {+ path: goalsAndTasksTabPath(next, options.agentId, { showMine: options.showMine }),+ type: 'navigate',+ };interface AgentGoalsAndTasksTabsProps {agentId?: string;/** Passed by the tasks page to switch between its collections in place. */onTaskCollectionChange?: (collection: GoalsAndTasksCollection) => void;+ /** Offers "My tasks" and names the ordinary list "All tasks" (workspace global page). */+ showMine?: boolean;view: GoalsAndTasksView;}export const AgentGoalsAndTasksTabs = memo<AgentGoalsAndTasksTabsProps>(- ({ agentId, onTaskCollectionChange, view }) => {+ ({ agentId, onTaskCollectionChange, showMine, view }) => {const { t } = useTranslation('chat');const navigate = useWorkspaceAwareNavigate();const handleChange = (value: string) => {const action = resolveGoalsAndTasksTabAction(value as GoalsAndTasksView, {agentId,+ showMine,switchesCollectionInPlace: !!onTaskCollectionChange,});if (action.type === 'collection') {@@ -73,9 +91,9 @@ export const AgentGoalsAndTasksTabs = memo<AgentGoalsAndTasksTabsProps>(<TabsRoot size={'small'} value={view} variant={'square'} onValueChange={handleChange}><TabsList aria-label={t('tab.goalsAndTasks')}><TabsIndicator />- {GOALS_AND_TASKS_TABS.map((tab) => (+ {(showMine ? GOALS_AND_TASKS_TABS_WITH_MINE : GOALS_AND_TASKS_TABS).map((tab) => (<TabsTab key={tab} value={tab}>- {t(TAB_LABEL_KEYS[tab])}+ {t(showMine && tab === 'tasks' ? 'taskList.all' : TAB_LABEL_KEYS[tab])}</TabsTab>))}</TabsList>diff --git a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsxindex 3abfed65c91..07b62e5dc23 100644--- a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx+++ b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx@@ -588,28 +588,16 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, headerActions, proj// "Content contains" for the same condition.const showFind = !isMobile && (headerVisibility.showViewOptions || hasFilter);- const showGoalsAndTasksTabs = !!agentId || (!projectId && !activeWorkspaceId);+ // Only a project's task list stays on its own: it has no goals tab to switch to.+ const showGoalsAndTasksTabs = !!agentId || !projectId;const headerLeft = showGoalsAndTasksTabs ? (- <AgentGoalsAndTasksTabs- agentId={agentId}- view={isScheduledCollection ? 'scheduled' : 'tasks'}- onTaskCollectionChange={handleCollectionChange}- />- ) : (<Flexbox horizontal align={'center'} gap={8}>- {headerVisibility.showBreadcrumb && <Breadcrumb />}- <TabsRoot size={'small'} value={collection} onValueChange={handleCollectionChange}>- <TabsList>- <TabsIndicator />- {/* The landing tab leads; beside "My tasks" the ordinary list needs a- scope in its name, or it reads as the page title. */}- {showMineCollection && <TabsTab value={'mine'}>{t('taskList.mine.title')}</TabsTab>}- <TabsTab value={'tasks'}>- {showMineCollection ? t('taskList.all') : t('taskList.title')}- </TabsTab>- <TabsTab value={'scheduled'}>{t('taskList.scheduled.title')}</TabsTab>- </TabsList>- </TabsRoot>+ <AgentGoalsAndTasksTabs+ agentId={agentId}+ showMine={showMineCollection}+ view={collection}+ onTaskCollectionChange={handleCollectionChange}+ />{isMineCollection && (<TabsRoot size={'small'} value={myTaskScope} onValueChange={handleMyTaskScopeChange}><TabsList>@@ -620,6 +608,17 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, headerActions, proj</TabsRoot>)}</Flexbox>+ ) : (+ <Flexbox horizontal align={'center'} gap={8}>+ {headerVisibility.showBreadcrumb && <Breadcrumb />}+ <TabsRoot size={'small'} value={collection} onValueChange={handleCollectionChange}>+ <TabsList>+ <TabsIndicator />+ <TabsTab value={'tasks'}>{t('taskList.title')}</TabsTab>+ <TabsTab value={'scheduled'}>{t('taskList.scheduled.title')}</TabsTab>+ </TabsList>+ </TabsRoot>+ </Flexbox>);return (diff --git a/src/features/HomeSidebar/Body/CustomizeSidebarModal.test.ts b/src/features/HomeSidebar/Body/CustomizeSidebarModal.test.tsindex 5d7487e61f0..9983b1fb33a 100644--- a/src/features/HomeSidebar/Body/CustomizeSidebarModal.test.ts+++ b/src/features/HomeSidebar/Body/CustomizeSidebarModal.test.ts@@ -1,37 +1,13 @@import { describe, expect, it } from 'vitest';-import { SIDEBAR_SPACER_ID } from '@/store/global/selectors/systemStatus';-import { getAvailableSidebarItems, getSortableSidebarItemIds } from './CustomizeSidebarModal';describe('CustomizeSidebarModal', () => {- it('keeps Memory available in personal mode', () => {- const items = getAvailableSidebarItems(false);-- expect(items.some((item) => item.id === 'memory')).toBe(true);- });-it('allows Projects to be reordered and hidden', () => {expect(getAvailableSidebarItems(false).some((item) => item.id === 'project')).toBe(true);expect(getSortableSidebarItemIds(false).has('project')).toBe(true);});- it('removes Memory from workspace mode customization', () => {- const items = getAvailableSidebarItems(true);-- expect(items.some((item) => item.id === 'memory')).toBe(false);- });-- it('keeps the spacer in the sortable item set', () => {- expect(getSortableSidebarItemIds(false).has(SIDEBAR_SPACER_ID)).toBe(true);- expect(getSortableSidebarItemIds(true).has(SIDEBAR_SPACER_ID)).toBe(true);- });-- it('keeps workspace-only exclusions in the sortable item set', () => {- expect(getSortableSidebarItemIds(false).has('memory')).toBe(true);- expect(getSortableSidebarItemIds(true).has('memory')).toBe(false);- });-it('offers Dashboards only while the dashboard flag is on, and never in workspace mode', () => {expect(getSortableSidebarItemIds(false).has('dashboard')).toBe(false);expect(getSortableSidebarItemIds(false, { dashboardEnabled: true }).has('dashboard')).toBe(@@ -42,13 +18,13 @@ describe('CustomizeSidebarModal', () => {);});- it.each([false, true])(- 'shows the separate Goals option only in workspace mode (%s)',- (workspace) => {- expect(getSortableSidebarItemIds(workspace).has('goals')).toBe(workspace);- expect(getSortableSidebarItemIds(workspace).has('tasks')).toBe(true);- },- );+ it.each([false, true])('offers one combined Tasks entry (workspace: %s)', (workspace) => {+ expect(getSortableSidebarItemIds(workspace).has('goals')).toBe(false);+ expect(getAvailableSidebarItems(workspace).find((item) => item.id === 'tasks')).toMatchObject({+ labelKey: 'tab.goalsAndTasks',+ labelNs: 'chat',+ });+ });it('offers Channels, hideable, only while Channels are enabled', () => {expect(getSortableSidebarItemIds(false).has('channels')).toBe(false);diff --git a/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx b/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsxindex 1cfeb1413cb..406a9ca6723 100644--- a/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx+++ b/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx@@ -34,7 +34,7 @@ import {import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';import * as stylex from '@stylexjs/stylex';import { t } from 'i18next';-import { ArrowDownToLine, Eye, EyeOff, GripVertical, PinIcon, RotateCcw } from 'lucide-react';+import { Eye, EyeOff, GripVertical, PinIcon, RotateCcw } from 'lucide-react';import { memo, useCallback, useMemo, useState } from 'react';import { createPortal } from 'react-dom';import { useTranslation } from 'react-i18next';@@ -51,7 +51,6 @@ import {getDefaultHiddenSections,setSidebarSectionHidden,SIDEBAR_ACCORDION_KEYS,- SIDEBAR_SPACER_ID,} from '@/store/global/selectors/systemStatus';import { serverConfigSelectors, useServerConfigStore } from '@/store/serverConfig';import { densityTokens } from '@/styles/density.stylex';@@ -72,8 +71,7 @@ export interface SidebarItemConfig {}const ALL_SIDEBAR_ITEMS: SidebarItemConfig[] = [- { id: 'tasks', labelKey: 'tab.tasks', routeId: 'tasks' },- { id: 'goals', labelKey: 'tab.goals', routeId: 'goals' },+ { id: 'tasks', labelKey: 'tab.goalsAndTasks', labelNs: 'chat', routeId: 'tasks' },{ id: 'dashboard', labelKey: 'tab.dashboard', routeId: 'dashboard' },{ id: 'favorites', labelKey: 'favorite.section' },{ id: 'recents', labelKey: 'recents' },@@ -83,7 +81,6 @@ const ALL_SIDEBAR_ITEMS: SidebarItemConfig[] = [{ id: 'image', labelKey: 'tab.generation', routeId: 'image' },{ id: 'community', labelKey: 'tab.marketplace', routeId: 'community' },{ id: 'resource', labelKey: 'tab.resource', routeId: 'resource' },- { id: 'memory', labelKey: 'tab.memory', routeId: 'memory' },];interface SidebarItemAvailability {@@ -97,9 +94,7 @@ export const getAvailableSidebarItems = (): SidebarItemConfig[] =>ALL_SIDEBAR_ITEMS.filter((item) => {if (item.id === 'channels' && !channelsEnabled) return false;- if (!isWorkspaceMode && item.id === 'goals') return false;- if (item.id === 'dashboard' && !dashboardEnabled) return false;- if (isWorkspaceMode && (item.id === 'memory' || item.id === 'dashboard')) return false;+ if (item.id === 'dashboard' && (!dashboardEnabled || isWorkspaceMode)) return false;return true;});@@ -107,15 +102,11 @@ export const getSortableSidebarItemIds = (isWorkspaceMode: boolean,options?: SidebarItemAvailability,): Set<string> =>- new Set([- ...getAvailableSidebarItems(isWorkspaceMode, options).map((item) => item.id),- SIDEBAR_SPACER_ID,- ]);+ new Set(getAvailableSidebarItems(isWorkspaceMode, options).map((item) => item.id));const ITEM_MAP = new Map(ALL_SIDEBAR_ITEMS.map((item) => [item.id, item]));const isAccordionKey = (id: string) => SIDEBAR_ACCORDION_KEYS.has(id);-const isSpacer = (id: string) => id === SIDEBAR_SPACER_ID;const mergeAvailableSidebarItems = (currentItems: string[],@@ -162,12 +153,6 @@ const styles = stylex.create({backgroundImage: 'none',boxShadow: cssVar.boxShadowSecondary,},- spacerLine: {- flex: '1',- blockSize: '1px',- backgroundColor: cssVar.colorBorderSecondary,- backgroundImage: 'none',- },footer: {display: 'grid',gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',@@ -182,10 +167,9 @@ const styles = stylex.create({const SortableItem = memo<{hiddenSections: string[];- personal: boolean;id: string;onToggle: (key: string) => void;-}>(({ id, hiddenSections, onToggle, personal }) => {+}>(({ id, hiddenSections, onToggle }) => {const { t } = useTranslation(['common', 'channel', 'chat']);const item = ITEM_MAP.get(id);const labelKey = item?.labelKey;@@ -232,11 +216,7 @@ const SortableItem = memo<{<Icon icon={GripVertical} size={14} style={{ color: cssVar.colorTextQuaternary }} /></Flexbox>{route?.icon && <Icon icon={route.icon} size={18} />}- <Text>- {personal && id === 'tasks'- ? t('tab.goalsAndTasks', { ns: 'chat' })- : t(labelKey as any, { ns: item.labelNs ?? 'common' })}- </Text>+ <Text>{t(labelKey as any, { ns: item.labelNs ?? 'common' })}</Text></Flexbox>{item.alwaysVisible ? (<Tooltip title={t('navPanel.pinned' as any)}>@@ -251,72 +231,6 @@ const SortableItem = memo<{);});-// ----------------------------------------------------------------------------// SpacerSortableItem — represents the flex spacer slot when it is not bound to-// the accordion group; draggable like any other item.-// -----------------------------------------------------------------------------const SpacerSortableItem = memo(() => {- const { t } = useTranslation('common');- const {- attributes,- isDragging,- listeners,- setActivatorNodeRef,- setNodeRef,- transform,- transition,- } = useSortable({ id: SIDEBAR_SPACER_ID });-- return (- <Flexbox- horizontal- align={'center'}- gap={8}- ref={setNodeRef}- className={- isDragging- ? stylex.props(styles.item, styles.itemDragging).className- : stylex.props(styles.item).className- }- style={{- transform: CSS.Translate.toString(transform),- transition,- }}- {...attributes}- >- <Flexbox- ref={setActivatorNodeRef}- style={{ cursor: isDragging ? 'grabbing' : 'grab', flexShrink: 0, touchAction: 'none' }}- {...listeners}- >- <Icon icon={GripVertical} size={14} style={{ color: cssVar.colorTextQuaternary }} />- </Flexbox>- <Icon icon={ArrowDownToLine} size={14} style={{ color: cssVar.colorTextQuaternary }} />- <div {...stylex.props(styles.spacerLine)} />- <Text style={{ fontSize: 12 }} type={'secondary'}>- {t('navPanel.bottomDivider' as any)}- </Text>- <div {...stylex.props(styles.spacerLine)} />- </Flexbox>- );-});--const BoundSpacerItem = memo(() => {- const { t } = useTranslation('common');-- return (- <Flexbox horizontal align={'center'} className={stylex.props(styles.item).className} gap={8}>- <Icon icon={ArrowDownToLine} size={14} style={{ color: cssVar.colorTextQuaternary }} />- <div {...stylex.props(styles.spacerLine)} />- <Text style={{ fontSize: 12 }} type={'secondary'}>- {t('navPanel.bottomDivider' as any)}- </Text>- <div {...stylex.props(styles.spacerLine)} />- </Flexbox>- );-});-// ---------------------------------------------------------------------------// AccordionGroup — a non-draggable slot at the outer level that wraps a nested// SortableContext for accordion items. Registers with useSortable so other outer@@ -344,7 +258,7 @@ const AccordionGroup = memo<{ children: React.ReactNode }>(({ children }) => {// Drag overlay item (static, no sortable hooks)// ----------------------------------------------------------------------------const OverlayItem = memo<{ id: string; personal: boolean }>(({ id, personal }) => {+const OverlayItem = memo<{ id: string }>(({ id }) => {const { t } = useTranslation(['common', 'channel', 'chat']);const agentLabelKey = 'navPanel.agent';@@ -364,23 +278,6 @@ const OverlayItem = memo<{ id: string; personal: boolean }>(({ id, personal }) =);}- if (isSpacer(id)) {- return (- <Flexbox- horizontal- align={'center'}- className={stylex.props(styles.overlay).className}- gap={8}- >- <Icon icon={GripVertical} size={14} style={{ color: cssVar.colorTextQuaternary }} />- <Icon icon={ArrowDownToLine} size={14} style={{ color: cssVar.colorTextQuaternary }} />- <Text style={{ fontSize: 12 }} type={'secondary'}>- {t('navPanel.bottomDivider' as any)}- </Text>- </Flexbox>- );- }-const item = ITEM_MAP.get(id);if (!item) return null;const route = item.routeId ? getRouteById(item.routeId) : undefined;@@ -391,11 +288,7 @@ const OverlayItem = memo<{ id: string; personal: boolean }>(({ id, personal }) =<Flexbox horizontal align={'center'} className={stylex.props(styles.overlay).className} gap={8}><Icon icon={GripVertical} size={14} style={{ color: cssVar.colorTextQuaternary }} />{route?.icon && <Icon icon={route.icon} size={18} />}- <Text>- {personal && id === 'tasks'- ? t('tab.goalsAndTasks', { ns: 'chat' })- : t(labelKey as any, { ns: labelNs })}- </Text>+ <Text>{t(labelKey as any, { ns: labelNs })}</Text></Flexbox>);});@@ -405,12 +298,8 @@ const OverlayItem = memo<{ id: string; personal: boolean }>(({ id, personal }) =// ---------------------------------------------------------------------------/** Flatten outer list (with ACCORDION_GROUP_ID placeholder) + inner accordion items → full list. */-const flattenItems = (outer: string[], inner: string[], bindSpacerToAccordion: boolean): string[] =>- outer.flatMap((id) =>- id === ACCORDION_GROUP_ID- ? [...inner, ...(bindSpacerToAccordion ? [SIDEBAR_SPACER_ID] : [])]- : [id],- );+const flattenItems = (outer: string[], inner: string[]): string[] =>+ outer.flatMap((id) => (id === ACCORDION_GROUP_ID ? inner : [id]));const CustomizeSidebarContent = memo(() => {const { close } = useModalContext();@@ -444,9 +333,7 @@ const CustomizeSidebarContent = memo(() => {const [activeId, setActiveId] = useState<string | null>(null);// Derive outer (with group placeholder) and inner (accordion items)- const { bindSpacerToAccordion, innerItems, outerItems } = useMemo(() => {- const hasAccordion = items.some(isAccordionKey);- const shouldBindSpacer = hasAccordion && items.includes(SIDEBAR_SPACER_ID);+ const { innerItems, outerItems } = useMemo(() => {const outer: string[] = [];const inner: string[] = [];let insertedGroup = false;@@ -458,14 +345,12 @@ const CustomizeSidebarContent = memo(() => {outer.push(ACCORDION_GROUP_ID);insertedGroup = true;}- } else if (isSpacer(id) && shouldBindSpacer) {- continue;} else {outer.push(id);}}- return { bindSpacerToAccordion: shouldBindSpacer, innerItems: inner, outerItems: outer };+ return { innerItems: inner, outerItems: outer };}, [items]);const sensors = useSensors(@@ -476,10 +361,10 @@ const CustomizeSidebarContent = memo(() => {const toggleSection = useCallback((key: string) => {const isHidden = hiddenSections.includes(key);- const newHidden = setSidebarSectionHidden(hiddenSections, key, !isHidden, isWorkspaceMode);+ const newHidden = setSidebarSectionHidden(hiddenSections, key, !isHidden);setHiddenSections(newHidden);},- [hiddenSections, isWorkspaceMode],+ [hiddenSections],);const handleResetDefault = useCallback(() => {@@ -545,44 +430,27 @@ const CustomizeSidebarContent = memo(() => {const oldIdx = innerItems.indexOf(activeKey);const newIdx = innerItems.indexOf(overKey);if (oldIdx === -1 || newIdx === -1) return;- next = flattenItems(- outerItems,- arrayMove(innerItems, oldIdx, newIdx),- bindSpacerToAccordion,- );+ next = flattenItems(outerItems, arrayMove(innerItems, oldIdx, newIdx));} else {// Outer reorder (pages/community/... or the whole accordion group)const oldIdx = outerItems.indexOf(activeKey);const newIdx = outerItems.indexOf(overKey);if (oldIdx === -1 || newIdx === -1) return;- next = flattenItems(- arrayMove(outerItems, oldIdx, newIdx),- innerItems,- bindSpacerToAccordion,- );+ next = flattenItems(arrayMove(outerItems, oldIdx, newIdx), innerItems);}setItems(next);},- [bindSpacerToAccordion, innerItems, outerItems],+ [innerItems, outerItems],);const handleDragCancel = useCallback(() => {setActiveId(null);}, []);- const renderItem = (id: string) =>- isSpacer(id) ? (- <SpacerSortableItem key={id} />- ) : (- <SortableItem- hiddenSections={hiddenSections}- id={id}- key={id}- personal={!isWorkspaceMode}- onToggle={toggleSection}- />- );+ const renderItem = (id: string) => (+ <SortableItem hiddenSections={hiddenSections} id={id} key={id} onToggle={toggleSection} />+ );return (<>@@ -601,7 +469,6 @@ const CustomizeSidebarContent = memo(() => {<SortableContext items={innerItems} strategy={verticalListSortingStrategy}>{innerItems.map(renderItem)}</SortableContext>- {bindSpacerToAccordion && <BoundSpacerItem />}</AccordionGroup>) : (renderItem(id)@@ -612,7 +479,7 @@ const CustomizeSidebarContent = memo(() => {{createPortal(<DragOverlay dropAnimation={{ sideEffects: defaultDropAnimationSideEffects({}) }}>- {activeId ? <OverlayItem id={activeId} personal={!isWorkspaceMode} /> : null}+ {activeId ? <OverlayItem id={activeId} /> : null}</DragOverlay>,document.body,)}diff --git a/src/features/HomeSidebar/Body/index.test.tsx b/src/features/HomeSidebar/Body/index.test.tsxindex d7770142244..a5c2ed5665c 100644--- a/src/features/HomeSidebar/Body/index.test.tsx+++ b/src/features/HomeSidebar/Body/index.test.tsx@@ -34,8 +34,16 @@ vi.mock('@lobehub/ui', async (importOriginal) => {const factories: ((original: typeof importOriginal) => unknown)[] = [async (importOriginal) => ({...(await importOriginal<object>()),- Flexbox: ({ children, flex }: { children: React.ReactNode; flex?: number }) => (- <div data-testid={flex ? 'sidebar-body' : 'sidebar-sections'}>{children}</div>+ Flexbox: ({+ children,+ paddingInline,+ }: {+ children: React.ReactNode;+ paddingInline?: number;+ }) => (+ <div data-testid={paddingInline === undefined ? 'sidebar-sections' : 'sidebar-body'}>+ {children}+ </div>),}),async (importOriginal) => ({@@ -154,7 +162,7 @@ describe('Home sidebar body', () => {expect(mocks.updateSystemStatus).toHaveBeenCalledWith({ sidebarExpandedKeys: ['agent'] });});- it('renders items strictly in sidebarItems order with the spacer at its stored position', () => {+ it('renders items strictly in sidebarItems order as one continuous list', () => {mocks.navLayout = {bottomMenuItems: [{ key: 'image', title: 'Image', url: '/image' },@@ -178,20 +186,17 @@ describe('Home sidebar body', () => {render(<Body />);const children = Array.from(screen.getByTestId('sidebar-body').children);- const spacerIndex = children.findIndex((child) =>- child.hasAttribute('data-sidebar-bottom-spacer'),- );-- expect(spacerIndex).toBe(2);+ // A saved `__spacer__` no longer pushes the links after it to the bottom.+ expect(children).toHaveLength(5);expect(children[0]).toHaveTextContent('Pages');expect(children[1]).toContainElement(screen.getByTestId('sidebar-item-agent'));expect(children[1]).toContainElement(screen.getByTestId('sidebar-channels'));- expect(children[3]).toHaveTextContent('Image');- expect(children[4]).toHaveTextContent('Tasks');- expect(children[5]).toHaveTextContent('Resource');+ expect(children[2]).toHaveTextContent('Image');+ expect(children[3]).toHaveTextContent('Tasks');+ expect(children[4]).toHaveTextContent('Resource');});- it('keeps a top item that was dragged past the spacer in its new position', () => {+ it('keeps a top item dragged below the sections in its new position', () => {mocks.navLayout = {bottomMenuItems: [{ key: 'image', title: 'Image', url: '/image' }],topNavItems: [{ key: 'tasks', title: 'Tasks', url: '/tasks' }],@@ -205,9 +210,8 @@ describe('Home sidebar body', () => {expect(children[0]).toContainElement(screen.getByTestId('sidebar-item-agent'));expect(children[0]).toContainElement(screen.getByTestId('sidebar-channels'));- expect(children[1]).toHaveAttribute('data-sidebar-bottom-spacer');- expect(children[2]).toHaveTextContent('Image');- expect(children[3]).toHaveTextContent('Tasks');+ expect(children[1]).toHaveTextContent('Image');+ expect(children[2]).toHaveTextContent('Tasks');});it('keeps Channels between adjacent sections in the same spacing group with its own accordion', () => {diff --git a/src/features/HomeSidebar/Body/index.tsx b/src/features/HomeSidebar/Body/index.tsxindex c16709976d7..cb8aebf9b61 100644--- a/src/features/HomeSidebar/Body/index.tsx+++ b/src/features/HomeSidebar/Body/index.tsx@@ -98,15 +98,10 @@ const Body = memo(() => {const hideSection = useCallback((key: string) => {updateSystemStatus({- hiddenSidebarSections: setSidebarSectionHidden(- hiddenSections,- key,- true,- !!activeWorkspaceId,- ),+ hiddenSidebarSections: setSidebarSectionHidden(hiddenSections, key, true),});},- [activeWorkspaceId, hiddenSections, updateSystemStatus],+ [hiddenSections, updateSystemStatus],);const getContextMenuItems = useCallback(@@ -144,13 +139,15 @@ const Body = memo(() => {// Items that must always be visible regardless of hiddenSectionsconst isVisible = useCallback((k: string) => {- return k === GroupKey.Agent || k === SIDEBAR_SPACER_ID || !hiddenSections.includes(k);+ return k === GroupKey.Agent || !hiddenSections.includes(k);},[hiddenSections],);const visibleKeys = useMemo(- () => sidebarItems.filter((k) => !HEADER_KEYS.has(k) && isVisible(k)),+ // The saved order may still hold the retired bottom spacer; the list is continuous now.+ () =>+ sidebarItems.filter((k) => !HEADER_KEYS.has(k) && k !== SIDEBAR_SPACER_ID && isVisible(k)),[sidebarItems, isVisible],);@@ -201,7 +198,7 @@ const Body = memo(() => {);// Consecutive sections share one spacing group, including Channels' independent- // accordion. Nav links and the spacer keep their positions and compact spacing.+ // accordion. Nav links keep their positions and compact spacing.const content = useMemo(() => {const elements: ReactElement[] = [];let accGroup: { element: ReactElement; key: string }[] = [];@@ -239,17 +236,7 @@ const Body = memo(() => {};for (const key of visibleKeys) {- if (key === SIDEBAR_SPACER_ID) {- flushSections();- elements.push(- <div- aria-hidden- data-sidebar-bottom-spacer- key={`spacer-${elements.length}`}- style={{ flex: '1 1 0', minHeight: 0 }}- />,- );- } else if (key === GroupKey.Channels) {+ if (key === GroupKey.Channels) {// Channels keep their own accordion (and its unsaved expanded state)// but take their place in the section order like the others.flushAccordion();@@ -271,7 +258,7 @@ const Body = memo(() => {}, [visibleKeys, renderNavLink, sidebarExpandedKeys, handleAccordionExpandedChange, sectionGap]);return (- <Flexbox flex={1} gap={1} paddingInline={panelPaddingInline} style={{ minHeight: '100%' }}>+ <Flexbox gap={1} paddingInline={panelPaddingInline}>{content}</Flexbox>);diff --git a/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.test.ts b/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.test.tsindex f3e70b4a5ed..775b6461e28 100644--- a/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.test.ts+++ b/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.test.ts@@ -120,7 +120,14 @@ describe('useSidebarSectionMenuItems', () => {expect(find(itemsFor('tasks'), 'moveUp').disabled).toBe(true);expect(find(itemsFor('tasks'), 'moveDown').disabled).toBe(false);- // The spacer stays flush below the section block, so its last section cannot move down.+ mocks.status.sidebarItems = [+ 'tasks',+ 'favorites',+ 'recents',+ 'agent',+ 'channels',+ '__spacer__',+ ];expect(find(itemsFor('channels'), 'moveDown').disabled).toBe(true);expect(find(itemsFor('agent'), 'moveDown').disabled).toBe(false);@@ -128,6 +135,24 @@ describe('useSidebarSectionMenuItems', () => {expect(find(itemsFor('agent'), 'moveDown').disabled).toBe(true);});+ it('moves the section block below a link saved under it', () => {+ const moveDown = find(itemsFor('channels'), 'moveDown');+ expect(moveDown.disabled).toBe(false);+ act(() => moveDown.onClick!());++ const { sidebarItems } = mocks.updateSystemStatus.mock.calls[0][0] as {+ sidebarItems: string[];+ };+ const imageIndex = sidebarItems.indexOf('image');+ expect(sidebarItems.slice(imageIndex, imageIndex + 5)).toEqual([+ 'image',+ 'favorites',+ 'recents',+ 'agent',+ 'channels',+ ]);+ });+it('steps over hidden sections and Channels while they are off', () => {mocks.channelsEnabled = false;mocks.status = {@@ -155,6 +180,7 @@ describe('useSidebarSectionMenuItems', () => {'favorites','agent','__spacer__',+ 'image',];const moveUp = find(itemsFor('channels'), 'moveUp');diff --git a/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.tsx b/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.tsxindex 5b999076dd7..8486e67f9e7 100644--- a/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.tsx+++ b/src/features/HomeSidebar/Body/useSidebarSectionMenuItems.tsx@@ -10,11 +10,7 @@ import { useFetchFavorites } from '@/features/Favorites';import { useNavLayout } from '@/hooks/useNavLayout';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';-import {- reorderSidebarItems,- SIDEBAR_ACCORDION_KEYS,- SIDEBAR_SPACER_ID,-} from '@/store/global/selectors/systemStatus';+import { reorderSidebarItems, SIDEBAR_SPACER_ID } from '@/store/global/selectors/systemStatus';import { useHomeStore } from '@/store/home';import { favoriteSelectors, homeRecentSelectors } from '@/store/home/selectors';import { createRecentQueryKey } from '@/store/home/slices/recent/initialState';@@ -43,7 +39,6 @@ const useSectionRenders = (): ((key: string) => boolean) => {return (key: string) => {switch (key) {- case SIDEBAR_SPACER_ID:case 'agent': {return true;}@@ -109,20 +104,15 @@ export const useSidebarSectionMenuItems = (sectionKey: string): DropdownItem[] =);const visibleIndex = visibleItems.indexOf(sectionKey);const isFirst = visibleIndex <= 0;- // The spacer stays flush below the section block, so the block's last- // section has nowhere further down to go.- const nextVisible = visibleItems[visibleIndex + 1];- const isLast =- visibleIndex === -1 ||- !nextVisible ||- (nextVisible === SIDEBAR_SPACER_ID && SIDEBAR_ACCORDION_KEYS.has(sectionKey));+ const isLast = visibleIndex === -1 || !visibleItems[visibleIndex + 1];const moveSection = useCallback((direction: 'up' | 'down') => {const neighbor = visibleItems[visibleIndex + (direction === 'up' ? -1 : 1)];if (visibleIndex === -1 || !neighbor) return;// Step one slot at a time so the block rules of `reorderSidebarItems`- // (sections stay together, the spacer stays below them) apply on the way.+ // (sections stay together) apply on the way. The saved spacer renders+ // nothing and re-anchors below the block, so a step jumps over it.const step = direction === 'up' ? -1 : 1;const passed = (items: string[]) =>direction === 'up'@@ -131,7 +121,8 @@ export const useSidebarSectionMenuItems = (sectionKey: string): DropdownItem[] =let next = sidebarItems;for (let guard = 0; guard < sidebarItems.length && !passed(next); guard++) {const idx = next.indexOf(sectionKey);- const moved = reorderSidebarItems(next, idx, idx + step);+ const slot = next[idx + step] === SIDEBAR_SPACER_ID ? idx + step * 2 : idx + step;+ const moved = reorderSidebarItems(next, idx, slot);if (moved === next) break;next = moved;}diff --git a/src/features/HomeSidebar/Content.tsx b/src/features/HomeSidebar/Content.tsxindex dc8e506eb03..ae8334b85e4 100644--- a/src/features/HomeSidebar/Content.tsx+++ b/src/features/HomeSidebar/Content.tsx@@ -11,13 +11,7 @@ const HomeSidebarContent = () => {body={<Body />}header={<Header />}// Let ScrollArea observe accordion height changes and update its overflow fade.- // The minimum height and flex layout keep the bottom spacer working.- contentStyle={{- display: 'flex',- flexDirection: 'column',- height: 'auto',- minHeight: '100%',- }}+ contentStyle={{ height: 'auto' }}/></AgentModalProvider>);diff --git a/src/features/Marketplace/marketplaceCopy.test.ts b/src/features/Marketplace/marketplaceCopy.test.tsindex f31ebff9c62..225130dff60 100644--- a/src/features/Marketplace/marketplaceCopy.test.ts+++ b/src/features/Marketplace/marketplaceCopy.test.ts@@ -63,8 +63,11 @@ describe('Marketplace page copy', () => {it('names the Marketplace as the place an agent is published before social sharing', () => {const hint = (locale: string) => readNs(locale, 'chat')['shareModal.social.agent.disabledHint'];- expect(hint('en-US')).toContain(readNs('en-US', 'common')['tab.marketplace']);- expect(hint('zh-CN')).toContain(readNs('zh-CN', 'common')['tab.marketplace']);+ // The entry is named Plugins, but publishing still targets the public Marketplace.+ expect(readNs('en-US', 'common')['tab.marketplace']).toBe('Plugins');+ expect(readNs('zh-CN', 'common')['tab.marketplace']).toBe('插件');+ expect(hint('en-US')).toContain('Marketplace');+ expect(hint('zh-CN')).toContain('市场');for (const locale of locales) {const value = hint(locale);if (value) expect(value, locale).not.toMatch(/Community|社区|社群/);diff --git a/src/features/Settings/Layout/Body/index.tsx b/src/features/Settings/Layout/Body/index.tsxindex f71f7c67d81..5a9c105c141 100644--- a/src/features/Settings/Layout/Body/index.tsx+++ b/src/features/Settings/Layout/Body/index.tsx@@ -1,7 +1,7 @@'use client';import { Accordion, Flexbox, Text } from '@lobehub/ui';-import { memo, useMemo } from 'react';+import { Fragment, memo, useMemo } from 'react';import { Link } from 'react-router';import NavItem from '@/features/NavPanel/components/NavItem';@@ -15,6 +15,7 @@ import { isModifierClick } from '@/utils/navigation';import { SettingsGroupKey, useCategory } from '../../hooks/useCategory';import { useExpandedSettingsGroups } from '../../hooks/useExpandedSettingsGroups';import { usePersonalSettingsSearchScope } from '../../hooks/useSettingsSearchScope';+import MemorySubNav from '../../memory/MemorySubNav';const Body = memo(() => {const sectionTriggerStyle = useSectionTriggerStyle();@@ -33,6 +34,10 @@ const Body = memo(() => {return SettingsTabs.Profile;}, [location.pathname]);+ // Only Memory lists its sub-pages here; other tabs keep their row active on `:sub`.+ const activeSubSection =+ activeTab === SettingsTabs.Memory ? location.pathname.split('/')[3] : undefined;+const { expandedGroups, onExpandedGroupsChange } = useExpandedSettingsGroups(categoryGroups,activeTab,@@ -55,21 +60,25 @@ const Body = memo(() => {{group.items.map((item) => {const url = item.href ?? getTabUrl(item.key);return (- <Link- key={item.key}- to={url}- onClick={(e) => {- if (isModifierClick(e)) return;- e.preventDefault();- navigate(url);- }}- >- <NavItem- active={activeTab === item.key}- icon={item.icon}- title={item.label}- />- </Link>+ <Fragment key={item.key}>+ <Link+ to={url}+ onClick={(e) => {+ if (isModifierClick(e)) return;+ e.preventDefault();+ navigate(url);+ }}+ >+ <NavItem+ active={activeTab === item.key && !activeSubSection}+ icon={item.icon}+ title={item.label}+ />+ </Link>+ {item.key === SettingsTabs.Memory && activeTab === item.key && (+ <MemorySubNav activeSection={activeSubSection} />+ )}+ </Fragment>);})}</Flexbox>diff --git a/src/features/Settings/features/SettingsContent.tsx b/src/features/Settings/features/SettingsContent.tsxindex 9a1d11249d9..b80f9d48827 100644--- a/src/features/Settings/features/SettingsContent.tsx+++ b/src/features/Settings/features/SettingsContent.tsx@@ -10,7 +10,6 @@ import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwarimport { SettingsTabs } from '@/store/global/initialState';import { serverConfigSelectors, useServerConfigStore } from '@/store/serverConfig';-import { ManageMemoryButton } from '../memory/features/ManageMemoryButton';import { componentMap } from './componentMap';import { getSettingsContainerMaxWidth, OWN_FRAME_TABS } from './ownFrameTabs';import { SettingsPageActionsContext, SettingsPageActionsRow } from './SettingsPageActions';@@ -89,7 +88,6 @@ const SettingsContent = ({ mobile, activeTab }: SettingsContentProps) => {if (activeTab !== tabKey) return null;const content = renderComponent(tabKey);if (OWN_FRAME_TABS.has(tabKey)) return <Fragment key={tabKey}>{content}</Fragment>;- const headerExtra = tabKey === SettingsTabs.Memory ? <ManageMemoryButton /> : undefined;return (<Fragment key={tabKey}><NavHeader styles={{ center: { alignItems: 'center' } }}>@@ -102,7 +100,7 @@ const SettingsContent = ({ mobile, activeTab }: SettingsContentProps) => {paddingInline={24}>{/* Page actions sit in the content column so they align with the body. */}- <SettingsPageActionsRow ref={setPageActions}>{headerExtra}</SettingsPageActionsRow>+ <SettingsPageActionsRow ref={setPageActions} />{content}</SettingContainer></SettingsPageActionsContext>diff --git a/src/features/Settings/memory/MemorySectionLayout.tsx b/src/features/Settings/memory/MemorySectionLayout.tsxnew file mode 100644index 00000000000..906e8fb3b1e--- /dev/null+++ b/src/features/Settings/memory/MemorySectionLayout.tsx@@ -0,0 +1,17 @@+'use client';++import { Flexbox } from '@lobehub/ui';+import { Outlet } from 'react-router';++import { RouteSkeletonChromeProvider } from '@/spa/router/routeSkeletonChrome';++/** Frame of the memory pages inside Settings; each page draws its own header and scroll. */+const MemorySectionLayout = () => (+ <Flexbox flex={1} height={'100%'} style={{ overflow: 'hidden', position: 'relative' }}>+ <RouteSkeletonChromeProvider>+ <Outlet />+ </RouteSkeletonChromeProvider>+ </Flexbox>+);++export default MemorySectionLayout;diff --git a/src/features/Settings/memory/MemorySubNav.tsx b/src/features/Settings/memory/MemorySubNav.tsxnew file mode 100644index 00000000000..6bcb7a17e34--- /dev/null+++ b/src/features/Settings/memory/MemorySubNav.tsx@@ -0,0 +1,79 @@+'use client';++import { Flexbox } from '@lobehub/ui';+import {+ BrainCircuitIcon,+ BubblesIcon,+ CalendarClockIcon,+ HeartPulseIcon,+ ScaleIcon,+ SignatureIcon,+} from 'lucide-react';+import { useTranslation } from 'react-i18next';+import { Link } from 'react-router';++import NavItem, { type NavItemProps } from '@/features/NavPanel/components/NavItem';+import { useSelfLearningSurface } from '@/features/SelfLearning/SurfaceGate/useSelfLearningSurface';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';+import { isModifierClick } from '@/utils/navigation';++interface MemorySection {+ icon: NavItemProps['icon'];+ key: string;+ titleKey:+ | 'tab.activities'+ | 'tab.contexts'+ | 'tab.identities'+ | 'tab.overview'+ | 'tab.preferences'+ | 'tab.rules';+}++const OVERVIEW: MemorySection = {+ icon: BrainCircuitIcon,+ key: 'overview',+ titleKey: 'tab.overview',+};+const RULES: MemorySection = { icon: ScaleIcon, key: 'rules', titleKey: 'tab.rules' };+const RECORDS: MemorySection[] = [+ { icon: SignatureIcon, key: 'identities', titleKey: 'tab.identities' },+ { icon: HeartPulseIcon, key: 'preferences', titleKey: 'tab.preferences' },+ { icon: BubblesIcon, key: 'contexts', titleKey: 'tab.contexts' },+ { icon: CalendarClockIcon, key: 'activities', titleKey: 'tab.activities' },+];++interface MemorySubNavProps {+ activeSection?: string;+}++/** The memory pages, listed under the Memory row of the settings sidebar while it is open. */+const MemorySubNav = ({ activeSection }: MemorySubNavProps) => {+ const { t } = useTranslation('memory');+ const navigate = useWorkspaceAwareNavigate();+ // Rules are limited to the self-iteration rollout and Labs opt-ins.+ const { enabled: enableSelfLearning } = useSelfLearningSurface();+ const sections = [OVERVIEW, ...(enableSelfLearning ? [RULES] : []), ...RECORDS];++ return (+ <Flexbox gap={1} style={{ paddingInlineStart: 16 }}>+ {sections.map(({ icon, key, titleKey }) => {+ const url = `/settings/memory/${key}`;+ return (+ <Link+ key={key}+ to={url}+ onClick={(e) => {+ if (isModifierClick(e)) return;+ e.preventDefault();+ navigate(url);+ }}+ >+ <NavItem active={activeSection === key} icon={icon} title={t(titleKey)} />+ </Link>+ );+ })}+ </Flexbox>+ );+};++export default MemorySubNav;diff --git a/src/features/Settings/memory/features/ManageMemoryButton.tsx b/src/features/Settings/memory/features/ManageMemoryButton.tsxindex cb7ab7a46fb..5a11dc755e2 100644--- a/src/features/Settings/memory/features/ManageMemoryButton.tsx+++ b/src/features/Settings/memory/features/ManageMemoryButton.tsx@@ -1,19 +1,16 @@'use client';-import { isDesktop } from '@lobechat/const';import { Button, Icon } from '@lobehub/ui';import { BrainCircuit } from 'lucide-react';import { useTranslation } from 'react-i18next';import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';+/** Mobile's way into the memory pages; desktop lists them in the settings sidebar. */export const ManageMemoryButton = () => {const { t } = useTranslation('setting');const navigate = useWorkspaceAwareNavigate();- // The `/memory` manager route is registered in the desktop router only.- if (!isDesktop) return null;-return (<Buttonicon={<Icon icon={BrainCircuit} />}diff --git a/src/features/Settings/memory/index.tsx b/src/features/Settings/memory/index.tsxindex acf190d584d..ce58fdb8985 100644--- a/src/features/Settings/memory/index.tsx+++ b/src/features/Settings/memory/index.tsx@@ -1,8 +1,10 @@'use client';+import { Flexbox } from '@lobehub/ui';import { useTranslation } from 'react-i18next';import SettingHeader from '@/features/Settings/features/SettingHeader';+import { isMobileSurface } from '@/utils/mobileSurface';import { ManageMemoryButton } from './features/ManageMemoryButton';import Memory from './features/Memory';@@ -15,8 +17,11 @@ const Page = ({ showSettingHeader = true }: PageProps) => {const { t } = useTranslation('setting');return (<>- {showSettingHeader && (- <SettingHeader extra={<ManageMemoryButton />} title={t('tab.memory')} />+ {showSettingHeader && <SettingHeader title={t('tab.memory')} />}+ {isMobileSurface() && (+ <Flexbox horizontal justify={'flex-end'} paddingBlock={8} paddingInline={16}>+ <ManageMemoryButton />+ </Flexbox>)}<Memory /></>diff --git a/src/hooks/useNavLayout.test.tsx b/src/hooks/useNavLayout.test.tsxindex cee2ba958e7..9f529aeae56 100644--- a/src/hooks/useNavLayout.test.tsx+++ b/src/hooks/useNavLayout.test.tsx@@ -75,17 +75,14 @@ describe('useNavLayout', () => {return result.current.topNavItems.find((item) => item.key === 'goals');};- it('merges Goals into Tasks in personal mode and keeps both workspace destinations', async () => {+ it.each([null, 'acme'])('merges Goals into Tasks (workspace: %s)', async (slug) => {+ mocks.activeWorkspaceSlug = slug as typeof mocks.activeWorkspaceSlug;expect(await goalsItem()).toBeUndefined();- mocks.activeWorkspaceSlug = 'acme';- const item = await goalsItem();- expect(item?.hidden).not.toBe(true);- expect(item?.url).toBe('/goals');const { useNavLayout } = await import('./useNavLayout');const { result } = renderHook(() => useNavLayout());- const keys = result.current.topNavItems.map((navItem) => navItem.key);- expect(keys.indexOf('goals')).toBe(keys.indexOf('tasks') + 1);+ const tasks = result.current.topNavItems.find((item) => item.key === 'tasks');+ expect(tasks?.additionalActiveTabs).toEqual(['goals', 'goal', 'task']);});it('keeps Memory visible in personal mode', async () => {diff --git a/src/hooks/useNavLayout.ts b/src/hooks/useNavLayout.tsindex bc8d5987230..95979058284 100644--- a/src/hooks/useNavLayout.ts+++ b/src/hooks/useNavLayout.ts@@ -68,21 +68,11 @@ export const useNavLayout = (): NavLayout => {},{icon: getRouteById('tasks')!.icon,- additionalActiveTabs: activeWorkspaceSlug ? undefined : ['goals', 'goal', 'task'],+ additionalActiveTabs: ['goals', 'goal', 'task'],key: SidebarTabKey.Tasks,- title: activeWorkspaceSlug ? t('tab.tasks') : t('tab.goalsAndTasks', { ns: 'chat' }),+ title: t('tab.goalsAndTasks', { ns: 'chat' }),url: '/tasks',},- ...(activeWorkspaceSlug- ? [- {- icon: getRouteById('goals')!.icon,- key: SidebarTabKey.Goals,- title: t('tab.goals'),- url: '/goals',- },- ]- : []),{// Keyed `project` to match the sidebar layout id; the page is `/projects`.activeTab: 'projects',@@ -129,6 +119,8 @@ export const useNavLayout = (): NavLayout => {title: t('tab.marketplace'),url: getMarketplaceEntryPath(showMarket),},+ // Not a desktop sidebar section (it lives under Settings there): this+ // entry feeds the mobile home shortcuts.{hidden: !!activeWorkspaceSlug,icon: getRouteById('memory')!.icon,@@ -153,8 +145,8 @@ export const useNavLayout = (): NavLayout => {const userPanel = useMemo(() => ({showDataImporter: false,- // Memory now appears in the sidebar by default; drop the duplicate entry- // from the user dropdown to keep that menu focused on account / settings.+ // Memory is reached through Settings; keep the user dropdown focused on+ // account / settings.showMemory: false,}),[],diff --git a/src/routes/(main)/settings/memory/_layout/index.tsx b/src/routes/(main)/settings/memory/_layout/index.tsxnew file mode 100644index 00000000000..8c7fef374a9--- /dev/null+++ b/src/routes/(main)/settings/memory/_layout/index.tsx@@ -0,0 +1 @@+export { default } from '@/features/Settings/memory/MemorySectionLayout';diff --git a/src/spa/router/activityListLoader.wiring.test.ts b/src/spa/router/activityListLoader.wiring.test.tsindex 8c10dd47ee7..5c5cb9217ae 100644--- a/src/spa/router/activityListLoader.wiring.test.ts+++ b/src/spa/router/activityListLoader.wiring.test.ts@@ -4,6 +4,7 @@ import { describe, expect, it, vi } from 'vitest';import { activityListLoader } from './activityListLoader';import { desktopRoutes } from './desktopRouter.config';+import { LegacyMemoryRedirect } from './legacyPathRedirect';const loaderModule = vi.hoisted(() => ({ evaluated: false }));@@ -23,7 +24,12 @@ describe('activity list loader wiring', () => {});it('pre-hydrates the activity list on the desktop activities route', () => {- const routes = flatten(desktopRoutes).filter((r) => r.path === 'activities');+ const routes = flatten(desktopRoutes).filter(+ (r) =>+ r.path === 'activities' &&+ // The old `/memory/activities` URLs only forward to Settings.+ (r.element as { type?: unknown } | undefined)?.type !== LegacyMemoryRedirect,+ );expect(routes.length).toBeGreaterThan(0);diff --git a/src/spa/router/desktopRouter.shared.tsx b/src/spa/router/desktopRouter.shared.tsxindex 5f46d990f70..d5ddd303f28 100644--- a/src/spa/router/desktopRouter.shared.tsx+++ b/src/spa/router/desktopRouter.shared.tsx@@ -46,7 +46,7 @@ import {legacySettingsMarketplaceRedirects,marketplaceRoute,} from '@/spa/router/marketplaceRoutes';-import { memoryChildren } from '@/spa/router/memoryRoutes';+import { legacyMemoryRedirects, settingsMemoryChildren } from '@/spa/router/memoryRoutes';import { onboardingRoute } from '@/spa/router/onboardingRoute';import { pageListLoader } from '@/spa/router/pageListLoader';import { projectWorkspaceRoute } from '@/spa/router/projectWorkspaceRoutes';@@ -198,14 +198,9 @@ export const sharedMainAreaChildren: RouteObject[] = [resourceRoute,- // Memory routes+ // Memory moved under Settings; these forward its old URLs.{- children: memoryChildren,- element: dynamicLayout(- () => import('@/routes/(main)/memory/_layout'),- 'Desktop > Memory > Layout',- { preloadId: 'memory' },- ),+ children: legacyMemoryRedirects,errorElement: <ErrorBoundary />,handle: { meta: routeMeta({ Skeleton: createSurfaceSkeleton('list') }) },path: 'memory',@@ -383,11 +378,26 @@ const createMainAreaChildrenDefinition = (options: MainAreaRouteOptions = {}): Rpath: 'provider',},{- element: dynamicElement(- () => import('@/routes/(main)/settings'),- 'Desktop > Settings > Memory',- ),- handle: { meta: settingsRouteMeta, settingsTab: SettingsTabs.Memory },+ children: [+ {+ element: dynamicElement(+ () => import('@/routes/(main)/settings'),+ 'Desktop > Settings > Memory',+ ),+ handle: { meta: settingsRouteMeta, settingsTab: SettingsTabs.Memory },+ index: true,+ },+ // The memory pages draw their own header, so they skip the settings frame.+ {+ children: settingsMemoryChildren,+ element: dynamicLayout(+ () => import('@/routes/(main)/settings/memory/_layout'),+ 'Desktop > Settings > Memory > Layout',+ { preloadId: 'memory' },+ ),+ handle: { meta: routeMeta({ Skeleton: createSurfaceSkeleton('list') }) },+ },+ ],path: 'memory',},// The personal vault is a tab of the Environments & Vault page; olddiff --git a/src/spa/router/desktopRouter.sync.test.tsx b/src/spa/router/desktopRouter.sync.test.tsxindex b6e9c280301..6dc30937f61 100644--- a/src/spa/router/desktopRouter.sync.test.tsx+++ b/src/spa/router/desktopRouter.sync.test.tsx@@ -328,11 +328,20 @@ describe('desktop router shared definition', () => {expect(paths).toContain('settings');expect(paths).not.toContain(':workspaceSlug');- expect(paths?.at(-1)).toBe('memory');+ expect(paths).toContain('memory');+ expect(matches?.at(-1)?.route.index).toBe(true);expect(matches?.at(-1)?.route.handle).toMatchObject({ settingsTab: 'memory' });},);+ it.each(mainAreaVariants)('%s mounts the memory pages under settings', (_, factory) => {+ for (const section of ['overview', 'identities', 'preferences', 'contexts', 'activities']) {+ const matches = matchRoutes(createMainAreaRoutes(factory), `/settings/memory/${section}`);+ expect(matches?.map((match) => match.route.path)).toContain('settings');+ expect(matches?.at(-1)?.route.path).toBe(section);+ }+ });+it.each(mainAreaVariants)('%s personal devices list and detail resolve the devices tab skeleton',(_, factory) => {diff --git a/src/spa/router/identitiesListLoader.wiring.test.ts b/src/spa/router/identitiesListLoader.wiring.test.tsindex 8ae651d3f21..fa92d2af5f7 100644--- a/src/spa/router/identitiesListLoader.wiring.test.ts+++ b/src/spa/router/identitiesListLoader.wiring.test.ts@@ -4,6 +4,7 @@ import { describe, expect, it, vi } from 'vitest';import { desktopRoutes } from './desktopRouter.config';import { identitiesListLoader } from './identitiesListLoader';+import { LegacyMemoryRedirect } from './legacyPathRedirect';const loaderModule = vi.hoisted(() => ({ evaluated: false }));@@ -23,7 +24,12 @@ describe('identities list loader wiring', () => {});it('pre-hydrates the identity list on the desktop identities route', () => {- const routes = flatten(desktopRoutes).filter((r) => r.path === 'identities');+ const routes = flatten(desktopRoutes).filter(+ (r) =>+ r.path === 'identities' &&+ // The old `/memory/identities` URLs only forward to Settings.+ (r.element as { type?: unknown } | undefined)?.type !== LegacyMemoryRedirect,+ );expect(routes.length).toBeGreaterThan(0);diff --git a/src/spa/router/legacyPathRedirect.test.ts b/src/spa/router/legacyPathRedirect.test.tsindex 201ec13f1f1..d596d256e80 100644--- a/src/spa/router/legacyPathRedirect.test.ts+++ b/src/spa/router/legacyPathRedirect.test.ts@@ -12,6 +12,7 @@ import {legacySettingsMarketplaceRedirects,marketplaceIndexRoute,} from './marketplaceRoutes';+import { legacyMemoryRedirects, settingsMemoryChildren } from './memoryRoutes';const CurrentUrl = () => {const { hash, pathname, search } = useLocation();@@ -160,3 +161,42 @@ describe('legacy URL redirects', () => {expect(screen.getByTestId('url').textContent).toBe(to);});});++describe('legacyMemoryRedirects', () => {+ const renderMemoryAt = (url: string) => {+ const memory = { children: legacyMemoryRedirects, path: 'memory' };+ const router = createMemoryRouter(+ [+ {+ children: [+ memory,+ {+ // Static like the real sections, so they outrank `:workspaceSlug/memory/*`.+ children: settingsMemoryChildren.map(({ path }) => ({ element: currentUrl, path })),+ path: 'settings/memory',+ },+ { children: [memory], path: ':workspaceSlug' },+ ],+ path: '/',+ },+ ],+ { initialEntries: [url] },+ );+ render(createElement(RouterProvider, { router }));+ };++ it.each([+ ['/memory', '/settings/memory/overview'],+ ['/memory/identities', '/settings/memory/identities'],+ ['/memory/contexts', '/settings/memory/contexts'],+ ['/memory/activities', '/settings/memory/activities'],+ ['/memory/rules', '/settings/memory/rules'],+ // A deep link keeps the detail it opens.+ ['/memory/preferences?preferenceId=p1#top', '/settings/memory/preferences?preferenceId=p1#top'],+ // Memory is personal, so a workspace-prefixed link drops the prefix.+ ['/acme/memory/identities', '/settings/memory/identities'],+ ])('%s → %s', (from, to) => {+ renderMemoryAt(from);+ expect(screen.getByTestId('url').textContent).toBe(to);+ });+});diff --git a/src/spa/router/legacyPathRedirect.tsx b/src/spa/router/legacyPathRedirect.tsxindex e8d7d6b61d9..fdc1ff53787 100644--- a/src/spa/router/legacyPathRedirect.tsx+++ b/src/spa/router/legacyPathRedirect.tsx@@ -53,6 +53,18 @@ export const LegacyPathRedirect = memo<{ to: string }>(({ to }) => {LegacyPathRedirect.displayName = 'LegacyPathRedirect';+/**+ * The standalone `/memory` pages moved under personal Settings. Memory has no+ * workspace scope, so a `/:workspaceSlug/memory` link drops the prefix.+ */+export const LegacyMemoryRedirect = memo<{ to: string }>(({ to }) => {+ const { hash, search } = useLocation();++ return <Navigate replace to={buildLegacyRedirectPath(to, { hash, search })} />;+});++LegacyMemoryRedirect.displayName = 'LegacyMemoryRedirect';+/*** The retired Integrations settings. GitHub and Linear moved onto their* Marketplace connectors; their install callbacks still return to these paths.diff --git a/src/spa/router/memoryRoutes.tsx b/src/spa/router/memoryRoutes.tsxindex 3faee39d933..c5fa9019e34 100644--- a/src/spa/router/memoryRoutes.tsx+++ b/src/spa/router/memoryRoutes.tsx@@ -5,13 +5,15 @@ import MemorySkeleton from '@/components/Skeleton/Memory';import { activityListLoader } from '@/spa/router/activityListLoader';import { memoryRulesLoader } from '@/spa/router/expertiseLoaders';import { identitiesListLoader } from '@/spa/router/identitiesListLoader';+import { LegacyMemoryRedirect } from '@/spa/router/legacyPathRedirect';import { preferenceListLoader } from '@/spa/router/preferenceListLoader';import { routeMeta } from '@/spa/router/routeMeta';import { dynamicElement } from '@/utils/router';/**- * `/memory` sections. Mounted by the desktop router under the memory layout- * and reused by the mobile router (`mobileWorkspaceRoutes.tsx`).+ * Memory sections. Desktop mounts them under `/settings/memory`+ * ({@link settingsMemoryChildren}); mobile keeps them at `/memory`+ * (`mobileWorkspaceRoutes.tsx`), where they open full screen.*/export const memoryChildren: RouteObject[] = [{@@ -88,3 +90,34 @@ export const memoryChildren: RouteObject[] = [path: 'activities',},];++/** The memory home's segment under Settings, whose bare URL is the memory settings form. */+const MEMORY_OVERVIEW_SEGMENT = 'overview';++const settingsMemorySegment = (route: RouteObject) =>+ route.index ? MEMORY_OVERVIEW_SEGMENT : route.path!;++const settingsMemoryPath = (route: RouteObject) =>+ `/settings/memory/${settingsMemorySegment(route)}`;++/** The sections as desktop mounts them, under `/settings/memory/<section>`. */+export const settingsMemoryChildren: RouteObject[] = memoryChildren.map((route) =>+ route.index+ ? { element: route.element, handle: route.handle, path: MEMORY_OVERVIEW_SEGMENT }+ : route,+);++/** Desktop `/memory/*`: old links and bookmarks forward to the Settings sections. */+export const legacyMemoryRedirects: RouteObject[] = memoryChildren.map((route) => {+ const element = <LegacyMemoryRedirect to={settingsMemoryPath(route)} />;+ return route.index+ ? { element, handle: route.handle, index: true }+ : { element, handle: route.handle, path: route.path };+});++/** Mobile `/settings/memory/<section>`: a shared link opens the mobile page. */+export const mobileSettingsMemoryRedirects: RouteObject[] = memoryChildren.map((route) => ({+ element: <LegacyMemoryRedirect to={route.index ? '/memory' : `/memory/${route.path}`} />,+ handle: route.handle,+ path: `memory/${settingsMemorySegment(route)}`,+}));diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsxindex 0bfff83abb5..93b71120b97 100644--- a/src/spa/router/mobileRouter.config.tsx+++ b/src/spa/router/mobileRouter.config.tsx@@ -28,6 +28,7 @@ import {marketplaceIndexRoute,marketplaceManageRoutes,} from '@/spa/router/marketplaceRoutes';+import { mobileSettingsMemoryRedirects } from '@/spa/router/memoryRoutes';import { mobileAgentRoute, mobileGroupRoute } from '@/spa/router/mobileAgentRoutes';import { mobileUnsupportedRoutes, mobileWorkspaceRoutes } from '@/spa/router/mobileWorkspaceRoutes';import { mobileWorkspaceSettingsChildren } from '@/spa/router/mobileWorkspaceSettingsRoutes';@@ -392,6 +393,7 @@ export const mobileRoutes: RouteObject[] = [},{ element: <LegacySandboxStorageRedirect />, path: 'drive' },...legacySettingsMarketplaceRedirects,+ ...mobileSettingsMemoryRedirects,// Every known tab gets a static segment: `/settings/memory` and// `/:workspaceSlug/memory` (or `/agent`, `/image`, …) tie on route// score, and the workspace tree would read `settings` as a slug.diff --git a/src/spa/router/preferenceListLoader.wiring.test.ts b/src/spa/router/preferenceListLoader.wiring.test.tsindex 0c6ec74360e..3f7dfb3e16c 100644--- a/src/spa/router/preferenceListLoader.wiring.test.ts+++ b/src/spa/router/preferenceListLoader.wiring.test.ts@@ -3,6 +3,7 @@ import type { LoaderFunctionArgs, RouteObject } from 'react-router';import { describe, expect, it, vi } from 'vitest';import { desktopRoutes } from './desktopRouter.config';+import { LegacyMemoryRedirect } from './legacyPathRedirect';import { preferenceListLoader } from './preferenceListLoader';const loaderModule = vi.hoisted(() => ({ evaluated: false }));@@ -23,7 +24,12 @@ describe('preference list loader wiring', () => {});it('pre-hydrates the preference list on the desktop preferences route', () => {- const routes = flatten(desktopRoutes).filter((r) => r.path === 'preferences');+ const routes = flatten(desktopRoutes).filter(+ (r) =>+ r.path === 'preferences' &&+ // The old `/memory/preferences` URLs only forward to Settings.+ (r.element as { type?: unknown } | undefined)?.type !== LegacyMemoryRedirect,+ );expect(routes.length).toBeGreaterThan(0);diff --git a/src/store/global/selectors/systemStatus.test.ts b/src/store/global/selectors/systemStatus.test.tsindex 899ef8ee7e0..a34b6e438c5 100644--- a/src/store/global/selectors/systemStatus.test.ts+++ b/src/store/global/selectors/systemStatus.test.ts@@ -292,7 +292,6 @@ describe('systemStatusSelectors', () => {'image','community','resource',- 'memory',]);});@@ -320,7 +319,7 @@ describe('systemStatusSelectors', () => {// before they joined the layout, keep their spot right below Agents.expect(systemStatusSelectors.sidebarItems(null)(s)).toEqual(stored- .filter((key) => key !== 'private')+ .filter((key) => key !== 'private' && key !== 'memory').flatMap((key) => (key === 'agent' ? ['agent', 'channels'] : [key])),);});@@ -357,7 +356,6 @@ describe('systemStatusSelectors', () => {'image','community','resource',- 'memory',]);});@@ -386,17 +384,37 @@ describe('systemStatusSelectors', () => {'project','dashboard','resource',+ // Untouched former bottom links move above the accordion.+ 'image',+ 'community','favorites','recents','agent','channels',SIDEBAR_SPACER_ID,- 'image',- 'community',- 'memory',]);});+ it('should keep Generation and Plugins pinned at the bottom once saved that way', () => {+ // A layout saved after the move no longer lists `memory`.+ const stored = ['tasks', 'recents', 'agent', SIDEBAR_SPACER_ID, 'image', 'community'];+ const items = systemStatusSelectors.sidebarItems(null)(+ merge(initialState, { status: { sidebarItems: stored } }),+ );+ const spacerIdx = items.indexOf(SIDEBAR_SPACER_ID);+ expect(items.slice(spacerIdx + 1)).toEqual(['image', 'community']);+ });++ it('should leave a hand-arranged bottom group in place and only drop Memory', () => {+ const stored = ['recents', 'agent', SIDEBAR_SPACER_ID, 'resource', 'image', 'memory'];+ const items = systemStatusSelectors.sidebarItems(null)(+ merge(initialState, { status: { sidebarItems: stored } }),+ );+ const spacerIdx = items.indexOf(SIDEBAR_SPACER_ID);+ expect(items.slice(spacerIdx + 1)).toEqual(['resource', 'image']);+ expect(items).not.toContain('memory');+ });+it('should lift projects above the accordion when tasks sit below the spacer', () => {const stored = ['goals',@@ -438,7 +456,7 @@ describe('systemStatusSelectors', () => {// before they joined the layout, keep their spot right below Agents.expect(systemStatusSelectors.sidebarItems(null)(s)).toEqual(stored- .filter((key) => key !== 'private')+ .filter((key) => key !== 'private' && key !== 'memory').flatMap((key) => (key === 'agent' ? ['agent', 'channels'] : [key])),);});@@ -453,7 +471,7 @@ describe('systemStatusSelectors', () => {expect(items).toContain('tasks');expect(items).toContain('community');expect(items).toContain('resource');- expect(items).toContain('memory');+ expect(items).not.toContain('memory');// accordion block is flush against the spacer, in stored order, with// Channels kept right below Agentsexpect(items.slice(spacerIdx - 3, spacerIdx)).toEqual(['agent', 'channels', 'recents']);@@ -461,8 +479,7 @@ describe('systemStatusSelectors', () => {expect(items.indexOf('tasks')).toBeLessThan(spacerIdx - 3);expect(items.indexOf('project')).toBe(items.indexOf('goals') + 1);expect(items.indexOf('resource')).toBeLessThan(spacerIdx - 3);- // missing bottom-group defaults sit after the spacer- expect(items.indexOf('image')).toBeGreaterThan(spacerIdx);+ expect(items.indexOf('image')).toBeLessThan(spacerIdx - 3);// Pages live in Docs now; the retired entry is not backfilledexpect(items).not.toContain('pages');});@@ -495,14 +512,13 @@ describe('systemStatusSelectors', () => {'project','dashboard','resource',+ 'image',+ 'community','favorites','agent','channels','recents',SIDEBAR_SPACER_ID,- 'image',- 'community',- 'memory',]);});@@ -518,14 +534,13 @@ describe('systemStatusSelectors', () => {'project','dashboard','resource',+ 'image',+ 'community','favorites','recents','agent','channels',SIDEBAR_SPACER_ID,- 'image',- 'community',- 'memory',]);});@@ -734,6 +749,15 @@ describe('systemStatusSelectors', () => {]);});+ it('keeps the merged entry visible in a workspace if either old entry was visible', () => {+ const workspaceHidden = (keys: string[]) =>+ systemStatusSelectors.hiddenSidebarSections('ws-1')(+ merge(initialState, { status: { workspace: { hiddenSidebarSections: keys } } }),+ );+ expect(workspaceHidden(['tasks'])).not.toContain('tasks');+ expect(workspaceHidden(['tasks', 'goals'])).toContain('tasks');+ });+it('keeps the merged personal entry visible if either old entry was visible', () => {const personalHidden = (keys: string[]) =>systemStatusSelectors.hiddenSidebarSections(null)(@@ -743,10 +767,9 @@ describe('systemStatusSelectors', () => {);expect(personalHidden(['tasks'])).not.toContain('tasks');expect(personalHidden(['goals'])).not.toContain('tasks');- const hidden = setSidebarSectionHidden(['recents'], 'tasks', true, false);+ const hidden = setSidebarSectionHidden(['recents'], 'tasks', true);expect(personalHidden(hidden)).toContain('tasks');- expect(setSidebarSectionHidden(hidden, 'tasks', false, false)).toEqual(['recents']);- expect(setSidebarSectionHidden([], 'tasks', true, true)).toEqual(['tasks']);+ expect(setSidebarSectionHidden(hidden, 'tasks', false)).toEqual(['recents']);});it('hiddenSidebarSections prefers overlay in workspace mode', () => {diff --git a/src/store/global/selectors/systemStatus.ts b/src/store/global/selectors/systemStatus.tsindex 81f42e0d7c0..f79c7bb95b2 100644--- a/src/store/global/selectors/systemStatus.ts+++ b/src/store/global/selectors/systemStatus.ts@@ -199,18 +199,19 @@ export const WORKSPACE_DEFAULT_HIDDEN_SECTIONS: string[] = ['recents'];export const getDefaultHiddenSections = (isWorkspaceMode: boolean): string[] =>isWorkspaceMode ? [...WORKSPACE_DEFAULT_HIDDEN_SECTIONS] : DEFAULT_HIDDEN_SECTIONS;-/** A personal sidebar has one control for the two previously independent entries. */-export const setSidebarSectionHidden = (- hidden: string[],- key: string,- hide: boolean,- workspace: boolean,-): string[] => {- const keys = !workspace && key === 'tasks' ? ['tasks', 'goals'] : [key];+/** Tasks and Goals share one sidebar entry, so one control hides both. */+export const setSidebarSectionHidden = (hidden: string[], key: string, hide: boolean): string[] => {+ const keys = key === 'tasks' ? ['tasks', 'goals'] : [key];const remaining = hidden.filter((item) => !keys.includes(item));return hide ? [...remaining, ...keys] : remaining;};+// Keep the combined entry reachable if either destination was visible before the merge.+const keepCombinedTasksEntry = (hidden: string[]): string[] =>+ hidden.includes('tasks') && !hidden.includes('goals')+ ? hidden.filter((key) => key !== 'tasks')+ : hidden;+const hiddenSidebarSections =(workspaceId: string | null) =>(s: GlobalState): string[] => {@@ -218,7 +219,8 @@ const hiddenSidebarSections =const overlay = s.status.workspace?.hiddenSidebarSections;// Once the user touches sidebar visibility in this workspace the overlay// owns the list — including an explicit empty array meaning "show all".- if (overlay !== undefined) return normalizeLegacyHiddenSections(overlay);+ if (overlay !== undefined)+ return keepCombinedTasksEntry(normalizeLegacyHiddenSections(overlay));// Untouched workspace: inherit any personal-mode hides and layer the// workspace defaults on top so `recents` starts collapsed.const personal = s.status.hiddenSidebarSections ?? DEFAULT_HIDDEN_SECTIONS;@@ -226,15 +228,11 @@ const hiddenSidebarSections =for (const k of WORKSPACE_DEFAULT_HIDDEN_SECTIONS) {if (!merged.includes(k)) merged.push(k);}- return merged;+ return keepCombinedTasksEntry(merged);}- const hidden = normalizeLegacyHiddenSections(- s.status.hiddenSidebarSections ?? DEFAULT_HIDDEN_SECTIONS,+ return keepCombinedTasksEntry(+ normalizeLegacyHiddenSections(s.status.hiddenSidebarSections ?? DEFAULT_HIDDEN_SECTIONS),);- // Keep the combined entry reachable if either destination was visible before the merge.- return hidden.includes('tasks') && !hidden.includes('goals')- ? hidden.filter((key) => key !== 'tasks')- : hidden;};const sidebarExpandedKeys =@@ -255,14 +253,13 @@ export const DEFAULT_SIDEBAR_ITEMS: string[] = ['project','dashboard','resource',+ 'image',+ 'community','favorites','recents','agent','channels',SIDEBAR_SPACER_ID,- 'image',- 'community',- 'memory',];/** Items that must stay contiguous in the sidebar list (accordion block). */@@ -314,9 +311,10 @@ export const normalizeLegacyExpandedKeys = (keys: string[]): string[] => {: [...withoutPrivate, AGENT_SECTION_KEY];};-const DEFAULT_BOTTOM_KEYS = new Set(- DEFAULT_SIDEBAR_ITEMS.slice(DEFAULT_SIDEBAR_ITEMS.indexOf(SIDEBAR_SPACER_ID) + 1),-);+/** Links that used to sit below the spacer by default. */+const FORMER_BOTTOM_LINKS = new Set(['image', 'community']);+/** Memory left the sidebar for Settings; only layouts saved before that still list it. */+const RETIRED_MEMORY_KEY = 'memory';const arraysEqual = (a: string[], b: string[]): boolean => {if (a === b) return true;@@ -340,13 +338,31 @@ const normalizeSpacerPosition = (order: string[]): string[] => {}}if (insertAt === -1) {- const bottomIdx = withoutSpacer.findIndex((k) => DEFAULT_BOTTOM_KEYS.has(k));+ const bottomIdx = withoutSpacer.findIndex((k) => FORMER_BOTTOM_LINKS.has(k));insertAt = bottomIdx === -1 ? withoutSpacer.length : bottomIdx;}return [...withoutSpacer.slice(0, insertAt), SIDEBAR_SPACER_ID, ...withoutSpacer.slice(insertAt)];};+// Generation and Plugins moved above the accordion. A layout saved before that+// still lists `memory`, which no saved layout contains afterwards, so the move+// runs once per layout and never undoes a later choice to pin them at the bottom.+// A bottom group holding anything else was arranged by hand and stays.+const migrateFormerBottomLinks = (order: string[]): string[] => {+ if (!order.includes(RETIRED_MEMORY_KEY)) return order;++ const without = order.filter((k) => k !== RETIRED_MEMORY_KEY);+ const spacerIndex = without.indexOf(SIDEBAR_SPACER_ID);+ const bottom = without.slice(spacerIndex + 1);+ if (bottom.length === 0 || !bottom.every((k) => FORMER_BOTTOM_LINKS.has(k))) return without;++ const top = without.slice(0, spacerIndex + 1);+ const accordionStart = top.findIndex((k) => SIDEBAR_ACCORDION_KEYS.has(k));+ const insertAt = accordionStart === -1 ? spacerIndex : accordionStart;+ return [...top.slice(0, insertAt), ...bottom, ...top.slice(insertAt)];+};+// Projects used to be an accordion listing every project; it is now a single// link to the project list. Saved orders still hold `project` inside the// accordion block, where a link would split the block in two, so move it up to@@ -377,11 +393,8 @@ const liftProjectOutOfAccordion = (order: string[]): string[] => {return [...without.slice(0, insertAt), 'project', ...without.slice(insertAt)];};-// Backfill missing default keys into their canonical group — top-group defaults-// slot in just before the accordion (keeping accordion flush with the spacer),-// bottom-group defaults go after the spacer. Without this split a new top-group-// default added in a future version would silently appear in the bottom group-// for existing users.+// Backfill missing default keys just before the accordion, keeping the accordion+// flush with the spacer.// Channels used to render right below Agents outside the saved order; a saved// order without them keeps them in that spot instead of the top of the block.const CHANNELS_SECTION_KEY = 'channels';@@ -395,15 +408,10 @@ const withChannelsAfterAgent = (order: string[]): string[] => {const withAllKnownKeys = (order: string[]): string[] => {const nextOrder = withChannelsAfterAgent(liftProjectOutOfAccordion(order));const present = new Set(nextOrder);- const missingTop: string[] = [];- const missingBottom: string[] = [];- for (const k of DEFAULT_SIDEBAR_ITEMS) {- if (k === SIDEBAR_SPACER_ID || present.has(k)) continue;- (DEFAULT_BOTTOM_KEYS.has(k) ? missingBottom : missingTop).push(k);- }+ const missing = DEFAULT_SIDEBAR_ITEMS.filter((k) => k !== SIDEBAR_SPACER_ID && !present.has(k));- const withSpacer = normalizeSpacerPosition(nextOrder);- if (missingTop.length === 0 && missingBottom.length === 0) return withSpacer;+ const withSpacer = migrateFormerBottomLinks(normalizeSpacerPosition(nextOrder));+ if (missing.length === 0) return withSpacer;const spacerIdx = withSpacer.indexOf(SIDEBAR_SPACER_ID);let accordionStartIdx = spacerIdx;@@ -416,10 +424,8 @@ const withAllKnownKeys = (order: string[]): string[] => {return [...withSpacer.slice(0, accordionStartIdx),- ...missingTop,- ...withSpacer.slice(accordionStartIdx, spacerIdx + 1),- ...missingBottom,- ...withSpacer.slice(spacerIdx + 1),+ ...missing,+ ...withSpacer.slice(accordionStartIdx),];};