A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Remove classic Agent mode switch from account menu
Fei2411264793642a5d
diff --git a/docs/plans/2026-10-26-windows-onboarding.md b/docs/plans/2026-10-26-windows-onboarding.mdindex 3e888ac2..ab081b15 100644--- a/docs/plans/2026-10-26-windows-onboarding.md+++ b/docs/plans/2026-10-26-windows-onboarding.md@@ -260,7 +260,7 @@ Windows 是桌面应用的主要平台:0.2.0 到 0.2.2 三个版本的安装- 验证 `NODE_USE_SYSTEM_CA` 在 `ELECTRON_RUN_AS_NODE` 下有效后,才在引擎的启动环境里设它;验证不了就不设。- 冷启动时 Bot 列表不会是空的(#559):第一次挂载后检查团队侧栏是否真的出来了,没有就重新挂载一次;「回到 Main Bot」的逻辑移出 `TeamSidebar`。- Bot 还在干活时关窗口,先问「有 2 个 Bot 还在工作,关闭窗口会让它们停下。」〔仍然关闭〕〔取消〕(#500)。-- 鲸鱼菜单增加「模型和 API Key」,以及未登录时的「登录 DeepSeek 账号」。桌面应用里「切换经典 Agent 模式」只放在 设置 → 通用。+- 鲸鱼菜单增加「模型和 API Key」,以及未登录时的「登录 DeepSeek 账号」。「经典 Agent 模式」只放在 设置 → 通用。### 8. 以后的启动和回头入口@@ -502,3 +502,4 @@ Windows 是桌面应用的主要平台:0.2.0 到 0.2.2 三个版本的安装- 2026-11-01 不写字,加道具:用户要求启动窗口「轻易不写文字,除非出现空间不足或者报错,后者并提供一键复制/下载日志的选项」,加载时鲸鱼面前要有在做事的道具(翻动的文件夹、脉冲转动的齿轮)。§3 的字表跟着改:45 秒没有字,180 秒的卡和恢复页、团队界面没加载出来的页上是〔复制详细信息〕〔保存日志…〕,没有〔打开日志文件夹〕;位置行首次启动也只在盘不够时有,推翻 2026-10-31 的「首次启动照旧显示」;圆环那一条加上道具;验收和「改动的已定设计」跟着改。细节和依据见 [启动窗口](2026-10-26-start-window.md) 同一天的变更。这次改的是已定的设计,要维护者确认。- 2026-11-01(待维护者确认):导入卡接上主进程(`app/src/import-flow.mjs`)。首次启动不再弹找到团队、DSH 正在用、更新版本的对话、选模型设置、复制失败这五种系统对话框:卡片一出现,引擎在新数据位置预热,同时检查对话;〔复制过来〕以后依次是空间不够、DSH 正在用(每 2 秒重查)、复制中的三步(检查对话 a/b → 复制 Bot 和对话 a / b,带整分钟的剩余时间和任务栏进度 → 启动团队)、就地确认的〔停止复制〕、复制失败的〔重试〕;〔先不复制〕直接用预热好的引擎。模型设置按 desktop、web、行数最多的顺序自动选,可以更换;可重新生成的文件夹合计 200 MB 以上时默认不复制。没做的:有能读这些对话的新版本时的「正在下载」卡(只给「先不带团队开始」)、对话只复制一次、工作文件的后台第二段和 设置 → 位置 里的进度,见「改动的已定设计」最后两行。- 2026-11-02:导入卡只剩一行和两个按钮,「详细」里是大小、模型设置、勾选框和脚注;复制时没有「正在搬过来」的卡,卡片跳进启动页的圆环,变成第四段「复制以前的团队」(§4,[启动窗口](2026-10-26-start-window.md) 同一天的变更)。依据:用户「尽可能减少,导入改为一个进度条点击后向上跳转变形将(3段圆环改为四段圆环」。+- 2026-11-05:左下角齿轮菜单移除「切换经典 Agent 模式」入口,只保留在 设置 → 通用 → 模式(§7)。diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 99aaf237..847e83c5 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -186,7 +186,6 @@ var ZH = {"No such connector": "没有这个连接器","Classic Agent mode": "经典 Agent 模式","Switch": "切换",- "Switch to classic Agent mode": "切换经典 Agent 模式","{model} is not available anymore. Pick another model for me.": "{model} 已经不可用了。给我换一个模型吧。","Hi, I'm {name}. I don't have a model yet. How do you want to set one up?": "你好,我是 {name}。我还没有可用的模型。你想怎么配置?","Hi, I'm {name}. Pick a model for me first. You can change it later in my details.": "你好,我是 {name}。先给我选一个模型吧,以后可以在我的详情里换。",@@ -4143,7 +4142,6 @@ var GaugeIcon = lineIcon(["M3.5 13.5a6.5 6.5 0 1 1 13 0", "M10 13.5l3-4", "M10 1var PlugIcon = lineIcon(["M7 3v4M13 3v4", "M5 7h10v2.5a5 5 0 0 1-10 0z", "M10 14.5V17"]);var CalendarIcon = lineIcon(["M5.5 5h9A1.5 1.5 0 0 1 16 6.5v8a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-8A1.5 1.5 0 0 1 5.5 5z", "M4 8.75h12", "M7.25 3.5v3M12.75 3.5v3"]);var ConnectorIcon = lineIcon(["M7 10a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z", "M18 10a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z", "M7 10h6"]);-var SwitchIcon = lineIcon(["M4 7h9.5M10.5 3.5L14 7l-3.5 3.5", "M16 13H6.5M9.5 9.5L6 13l3.5 3.5"]);var SignOutIcon = lineIcon(["M8.5 17H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5", "M10 10h6.5", "M13.5 7l3 3-3 3"]);var SignInIcon = lineIcon(["M11.5 3H14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2.5", "M3.5 10H10", "M7 7l3 3-3 3"]);var PaperclipIcon = lineIcon(["M15.5 9.5l-5.6 5.6a3.4 3.4 0 0 1-4.8-4.8l6.1-6.1a2.25 2.25 0 0 1 3.2 3.2l-6 6a1.1 1.1 0 0 1-1.6-1.6l5.5-5.5"]);@@ -11237,10 +11235,7 @@ function AccountLauncher({ seat = true, settingsOpen, openSettings, openOnboardi[t("Connectors"), ConnectorIcon, () => actions.openConnectors()],[t("Automation tasks"), ClockIcon, () => actions.selectPanel("schedules")],[t("Bot settings"), GearIcon, () => actions.openSettings("general")]- ].filter(Boolean),- [- [t("Switch to classic Agent mode"), SwitchIcon, () => actions.setSurface("agent")]- ]+ ].filter(Boolean)];if (signedIn) groups.push([[accountT("signOut"), SignOutIcon, askSignOut, void 0, true]]);else if (signedOut) groups.push([[t("Sign in to DeepSeek"), SignInIcon, () => actions.signIn()]]);diff --git a/ds-bot/src/client/i18n.js b/ds-bot/src/client/i18n.jsindex d87e7a37..a1268447 100644--- a/ds-bot/src/client/i18n.js+++ b/ds-bot/src/client/i18n.js@@ -150,7 +150,6 @@ const ZH = {'No such connector': '没有这个连接器','Classic Agent mode': '经典 Agent 模式','Switch': '切换',- 'Switch to classic Agent mode': '切换经典 Agent 模式','{model} is not available anymore. Pick another model for me.': '{model} 已经不可用了。给我换一个模型吧。',"Hi, I'm {name}. I don't have a model yet. How do you want to set one up?": '你好,我是 {name}。我还没有可用的模型。你想怎么配置?',"Hi, I'm {name}. Pick a model for me first. You can change it later in my details.": '你好,我是 {name}。先给我选一个模型吧,以后可以在我的详情里换。',diff --git a/ds-bot/src/client/icons.js b/ds-bot/src/client/icons.jsindex b6d45d56..d530b866 100644--- a/ds-bot/src/client/icons.js+++ b/ds-bot/src/client/icons.js@@ -66,7 +66,6 @@ export const GaugeIcon = lineIcon(['M3.5 13.5a6.5 6.5 0 1 1 13 0', 'M10 13.5l3-4export const PlugIcon = lineIcon(['M7 3v4M13 3v4', 'M5 7h10v2.5a5 5 0 0 1-10 0z', 'M10 14.5V17'])export const CalendarIcon = lineIcon(['M5.5 5h9A1.5 1.5 0 0 1 16 6.5v8a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-8A1.5 1.5 0 0 1 5.5 5z', 'M4 8.75h12', 'M7.25 3.5v3M12.75 3.5v3'])export const ConnectorIcon = lineIcon(['M7 10a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z', 'M18 10a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z', 'M7 10h6'])-export const SwitchIcon = lineIcon(['M4 7h9.5M10.5 3.5L14 7l-3.5 3.5', 'M16 13H6.5M9.5 9.5L6 13l3.5 3.5'])export const SignOutIcon = lineIcon(['M8.5 17H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5', 'M10 10h6.5', 'M13.5 7l3 3-3 3'])export const SignInIcon = lineIcon(['M11.5 3H14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2.5', 'M3.5 10H10', 'M7 7l3 3-3 3'])export const PaperclipIcon = lineIcon(['M15.5 9.5l-5.6 5.6a3.4 3.4 0 0 1-4.8-4.8l6.1-6.1a2.25 2.25 0 0 1 3.2 3.2l-6 6a1.1 1.1 0 0 1-1.6-1.6l5.5-5.5'])diff --git a/ds-bot/src/client/sidebar.js b/ds-bot/src/client/sidebar.jsindex 82ebb382..6d2553f9 100644--- a/ds-bot/src/client/sidebar.js+++ b/ds-bot/src/client/sidebar.js@@ -3,7 +3,7 @@ import { createPortal } from 'react-dom'import { FishLogo } from './dsh-primitives.js'import { isMainOf } from './sources.js'import { currentPart, previewOf, relativeShort } from './text.js'-import { PlusIcon, SearchIcon, SidebarIcon, GaugeIcon, ClockIcon, GearIcon, PinMarkIcon, ConnectorIcon, SwitchIcon, CloudDownloadIcon, SignInIcon, SignOutIcon, SlidersIcon } from './icons.js'+import { PlusIcon, SearchIcon, SidebarIcon, GaugeIcon, ClockIcon, GearIcon, PinMarkIcon, ConnectorIcon, CloudDownloadIcon, SignInIcon, SignOutIcon, SlidersIcon } from './icons.js'import { lookOf, MAIN_LOOK } from './characters.js'import { botState, BotMark, BotAvatar, RoomAvatar } from './mark.js'import { reducedMotion } from './activity-row.js'@@ -883,9 +883,6 @@ export function AccountLauncher({ seat = true, settingsOpen, openSettings, openO[t('Automation tasks'), ClockIcon, () => actions.selectPanel('schedules')],[t('Bot settings'), GearIcon, () => actions.openSettings('general')],].filter(Boolean),- [- [t('Switch to classic Agent mode'), SwitchIcon, () => actions.setSurface('agent')],- ],]if (signedIn) groups.push([[accountT('signOut'), SignOutIcon, askSignOut, undefined, true]])else if (signedOut) groups.push([[t('Sign in to DeepSeek'), SignInIcon, () => actions.signIn()]])diff --git a/ds-bot/test/account-sign-out.test.js b/ds-bot/test/account-sign-out.test.jsindex d214138f..39fb7dd6 100644--- a/ds-bot/test/account-sign-out.test.js+++ b/ds-bot/test/account-sign-out.test.js@@ -192,10 +192,11 @@ test('Sign in to DeepSeek shows only while the account plugin says signed out',// #452: the Connect plugins button left the Bot footer; the account menu that// stays keeps the way into the connectors and the automation panel.-test('the account menu opens the connectors and the automation panel', () => {+test('the account menu opens the connectors and the automation panel, without a classic Agent mode switch', () => {const calls = []- const side = launcher({ actions: { openConnectors: () => calls.push('connectors'), selectPanel: id => calls.push(id) } })+ const side = launcher({ actions: { openConnectors: () => calls.push('connectors'), selectPanel: id => calls.push(id), setSurface: mode => calls.push(mode) } })const menu = side.open()+ assert.equal(side.item(menu, 'Switch to classic Agent mode'), undefined)side.item(menu, 'Connectors').props.onClick()side.item(menu, 'Automation tasks').props.onClick()assert.deepEqual(calls, ['connectors', 'schedules'])diff --git a/ds-bot/test/models-step.test.js b/ds-bot/test/models-step.test.jsindex 10cff4c8..c0ca31fd 100644--- a/ds-bot/test/models-step.test.js+++ b/ds-bot/test/models-step.test.js@@ -117,3 +117,18 @@ test('Harness settings opens DSH settings', () => {plain.button.props.onClick()assert.deepEqual(plain.calls, ['close', 'settings'])})++test('General settings keeps the Classic Agent mode switch', () => {+ const calls = []+ const roster = { byId: {}, roomsById: {}, bots: [], rooms: [], models: [], prefs: {} }+ const tree = SettingsDialog({+ page: 'general', id: null, roster, useUpdate: pick => pick({}),+ actions: { closeSettings() {}, openSettings() {}, setSurface: mode => calls.push(mode) },+ })+ const [general] = walk(tree, node => typeof node.type === 'function' && node.type.name === 'GeneralPage')+ const [row] = walk(general.type(general.props), node => node.props?.label === 'Classic Agent mode')+ assert.ok(row !== undefined)+ const [button] = walk(row, node => node.type === 'button' && textOf(node) === 'Switch')+ button.props.onClick()+ assert.deepEqual(calls, ['agent'])+})