Просмотр исходного кода

fix(desktop): 统一产品名称与历史入口兼容

将技术代号转换为清晰的用户入口名称,保持原执行身份及自定义名称。

- 统一目录、会话、编辑和插件入口的科研与数据助手名称
- 兼容旧编辑草稿及随机 ID 应用的自动路由
- 更新受影响的按钮断言和验收边界说明
- 名称路由 16 项单测、60 项界面回归、类型检查与 Desktop 构建通过
邵勃源 4 часов назад
Родитель
Сommit
df9db1fbaf

+ 7 - 0
BRANCHES.zh-CN.md

@@ -117,3 +117,10 @@ App 类型检查、Desktop 生产构建及相关浏览器检查通过;视觉
 真实 DeepSeek 的问答、文件修改、数据分析、子智能体委派和受控 HTTP MCP 调用完成;科研多轮交付为 partial,保留方案且未误报完成。macOS arm64 的 beta.9 安装、升级、重启与归档校验通过;签名公证、Windows/Linux 原生验收仍未完成。详见 [本轮验收记录](packages/desktop/DESKTOP_RELEASE_AUDIT_2026-12-06.md)。
 
 另统一侧栏、内容区、弹窗与代码工作区的滚动条;7 项浏览器回归及小窗口深浅主题检查通过。该样式在 beta.9 打包后修改,推送源码不替换用户现有应用,也不代表已发布新安装包。
+
+
+## 2026-12-06 常用入口、产品命名与科研执行修复
+
+收敛 Desktop 常用入口,内部角色和实验性流水线不默认推荐;目录与自动路由使用同一范围。统一 λ-Scientist 科研助手、数据分析助手的显示名称并兼容旧会话、编辑草稿及随机 ID 应用。隐藏滚动条但保留滚动操作。配套 PaaS 为 `6dc60119`,包含前瞻方案、定向修订、诊断分离、续跑计量和默认预算修复。
+
+本次更新 main 与 qjh 的源码集成快照,不发布安装包或替换日常应用。已生成的 beta.10 内部候选包尚不含最后的名称调整;复杂科研长流程仍未通过完整真实交付验收,签名公证和跨系统验收边界不变。详见 [发版修复与验收](packages/desktop/DESKTOP_RELEASE_AUDIT_2026-12-06.md)。

+ 3 - 3
packages/app/e2e/paas/desktop-followup.spec.ts

@@ -74,7 +74,7 @@ test("automatic routing asks which agent to edit and respects a pinned role", as
   await page.goto("/e2e/paas/index.html?ux&agent-groups")
   await connect(page)
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("统计销售表格")
-  await expect(page.getByRole("button", { name: "选择执行角色", exact: true })).toContainText("data67")
+  await expect(page.getByRole("button", { name: "选择执行角色", exact: true })).toContainText("数据分析助手")
   await page.getByRole("button", { name: "研究设置", exact: true }).click()
   const picker = page.getByRole("dialog", { name: "选择要编辑的智能体" })
   await expect(picker).toBeVisible()
@@ -83,9 +83,9 @@ test("automatic routing asks which agent to edit and respects a pinned role", as
   await expect(page.getByLabel("智能体名称", { exact: true })).toHaveValue("工作区助手")
   await page.getByRole("button", { name: "返回工作台", exact: true }).click()
   await page.getByRole("button", { name: "选择执行角色", exact: true }).click()
-  await page.getByRole("option", { name: /^科研助手/ }).click()
+  await page.getByRole("option", { name: /^λ-Scientist 科研助手/ }).click()
   await page.getByRole("button", { name: "研究设置", exact: true }).click()
-  await expect(page.getByLabel("智能体名称", { exact: true })).toHaveValue("科研助手")
+  await expect(page.getByLabel("智能体名称", { exact: true })).toHaveValue("λ-Scientist 科研助手")
 })
 
 test("archive requires confirmation and cancel preserves the current session", async ({ page }) => {

+ 1 - 1
packages/app/e2e/paas/editor-layout.spec.ts

@@ -19,7 +19,7 @@ for (const theme of ["light", "dark"] as const) {
       const agents = page.getByRole("button", { name: "智能体", exact: true })
       if (!(await agents.isVisible())) await page.getByRole("button", { name: "打开导航", exact: true }).click()
       await agents.click()
-      await page.getByRole("button", { name: "编辑 科研助手", exact: true }).click()
+      await page.getByRole("button", { name: "编辑 λ-Scientist 科研助手", exact: true }).click()
       const save = page.getByRole("button", { name: "保存修改", exact: true })
       await expect(save).toBeInViewport()
       await expect(page.getByText("保存后应用于后续任务", { exact: true })).toBeVisible()

+ 1 - 1
packages/app/e2e/paas/hidden-scrollbars.spec.ts

@@ -10,7 +10,7 @@ for (const theme of ["light", "dark"] as const) {
     const agents = page.getByRole("button", { name: "智能体", exact: true })
     if (!(await agents.isVisible())) await page.getByRole("button", { name: "打开导航", exact: true }).click()
     await agents.click()
-    await page.getByRole("button", { name: "编辑 科研助手", exact: true }).click()
+    await page.getByRole("button", { name: "编辑 λ-Scientist 科研助手", exact: true }).click()
     const viewport = page.locator(".paas-edit-scroll")
     await expect(viewport).toBeVisible()
     expect(await viewport.evaluate((element) => getComputedStyle(element).scrollbarWidth)).toBe("none")

+ 1 - 1
packages/app/e2e/paas/product-review.spec.ts

@@ -200,7 +200,7 @@ test("cleanup preview protects active tasks and drafts and only deletes selected
   await expect(page.getByText("1 条可清理记录", { exact: true })).toBeVisible()
   await page.getByRole("button", { name: "确认仅移除这些本机历史", exact: true }).click()
   await expect(page.getByText("已移除 1 条本机历史。平台任务与工作文件未删除。", { exact: true })).toBeVisible()
-  await page.locator(".paas-sidebar").getByRole("button", { name: "科研助手", exact: true }).click()
+  await page.locator(".paas-sidebar").getByRole("button", { name: "λ-Scientist 科研助手", exact: true }).click()
   await expect(page.locator(".paas-sidebar")).toContainText("保留进行中任务")
   await page.getByRole("button", { name: "备份当前项目", exact: true }).click()
   const retained = await page.evaluate(() => window.transferUX.backup?.chats.map((chat) => chat.title))

+ 4 - 4
packages/app/e2e/paas/project-workflow.spec.ts

@@ -6,9 +6,9 @@ test("automatic route selects data analysis and hides internal roles", async ({
   await page.getByRole("button", { name: "连接平台", exact: true }).click()
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("合并 CSV 并画趋势图")
   const route = page.getByRole("button", { name: "选择执行角色", exact: true })
-  await expect(route).toContainText("自动 · data67")
+  await expect(route).toContainText("自动 · 数据分析助手")
   await route.click()
-  await expect(page.getByRole("option", { name: /data67/ })).toBeVisible()
+  await expect(page.getByRole("option", { name: /数据分析助手/ })).toBeVisible()
   await expect(page.getByRole("option", { name: /本体证据补全员/ })).toHaveCount(0)
 })
 
@@ -20,7 +20,7 @@ test("agent directory surfaces complete assistants without internal or experimen
 
   await expect(page.getByRole("heading", { name: "常用助手", exact: true })).toBeVisible()
   await expect(page.getByRole("heading", { name: "工作区助手", exact: true })).toBeVisible()
-  await expect(page.getByRole("heading", { name: "data67", exact: true })).toBeVisible()
+  await expect(page.getByRole("heading", { name: "数据分析助手", exact: true })).toBeVisible()
   await expect(page.getByRole("heading", { name: "顶刊审稿助手", exact: true })).toHaveCount(0)
   await expect(page.getByRole("heading", { name: "Research67 三阶段研究草稿流水线", exact: true })).toHaveCount(0)
   await expect(page.locator(".paas-agent-internal")).toHaveCount(0)
@@ -134,7 +134,7 @@ test("role overrides can return to automatic matching without losing the draft",
   await summary.click()
   await expect(page.getByRole("option", { name: /^工作区助手/ })).toHaveAttribute("aria-selected", "true")
   await page.getByRole("option", { name: /^自动匹配/ }).click()
-  await expect(summary).toContainText("自动 · data67")
+  await expect(summary).toContainText("自动 · 数据分析助手")
   await expect(input).toHaveValue("合并 CSV 并画趋势图")
   await summary.click()
   await page.keyboard.press("Escape")

+ 2 - 2
packages/app/e2e/paas/setup.spec.ts

@@ -81,7 +81,7 @@ test("first-use prepares local service, configures model and starts no task with
   await region.getByLabel("模型服务", { exact: true }).selectOption("deepseek")
   await region.getByLabel("模型名称", { exact: true }).fill("deepseek-chat")
   await region.getByLabel("模型 API Key", { exact: true }).fill("synthetic-ui-key")
-  await region.getByRole("checkbox", { name: "科研助手" }).check()
+  await region.getByRole("checkbox", { name: "λ-Scientist 科研助手" }).check()
   await region.getByRole("button", { name: "保存模型配置", exact: true }).click()
   await expect(region.getByText(/模型已配置,后续新任务生效/)).toBeVisible()
   await expect(region.getByLabel("模型 API Key", { exact: true })).toHaveValue("")
@@ -121,7 +121,7 @@ test("model batch shows partial success and retains only failed applications for
   await region.getByLabel("模型服务", { exact: true }).selectOption("deepseek")
   await region.getByLabel("模型名称", { exact: true }).fill("deepseek-chat")
   await region.getByLabel("模型 API Key", { exact: true }).fill("synthetic-ui-key")
-  await region.getByRole("checkbox", { name: "科研助手", exact: true }).check()
+  await region.getByRole("checkbox", { name: "λ-Scientist 科研助手", exact: true }).check()
   await region.getByRole("checkbox", { name: "未使用智能体", exact: true }).check()
   await region.getByRole("button", { name: "保存模型配置", exact: true }).click()
   await expect(region.getByText(/配置版本已变更/)).toBeVisible()

+ 3 - 3
packages/app/e2e/paas/typography.spec.ts

@@ -17,13 +17,13 @@ test("page, section, field and helper text retain a distinct hierarchy", async (
   await page.getByRole("button", { name: "连接平台", exact: true }).click()
   await page.getByRole("button", { name: "智能体", exact: true }).click()
   const title = await typography(page.getByRole("heading", { name: "智能体", exact: true }))
-  const card = await typography(page.getByRole("heading", { name: "科研助手", exact: true }))
+  const card = await typography(page.getByRole("heading", { name: "λ-Scientist 科研助手", exact: true }))
   const description = await typography(page.locator(".paas-agent-card-description"))
   expect(title.size).toBeGreaterThan(card.size)
   expect(card.size).toBeGreaterThan(description.size)
   expect(card.weight).toBeGreaterThan(description.weight)
 
-  await page.getByRole("button", { name: "编辑 科研助手", exact: true }).click()
+  await page.getByRole("button", { name: "编辑 λ-Scientist 科研助手", exact: true }).click()
   await expect(page.getByRole("button", { name: "保存修改", exact: true })).toBeVisible()
   const section = await typography(page.locator("legend").filter({ hasText: "基本信息" }))
   const field = await typography(page.getByLabel("智能体名称", { exact: true }))
@@ -39,7 +39,7 @@ test("research text has readable body size and descending heading levels", async
   await page.getByLabel("API Key", { exact: true }).fill("test-only")
   await page.getByRole("button", { name: "连接平台", exact: true }).click()
   await page.getByRole("button", { name: "智能体", exact: true }).click()
-  await page.getByRole("button", { name: "与 科研助手 对话", exact: true }).click()
+  await page.getByRole("button", { name: "与 λ-Scientist 科研助手 对话", exact: true }).click()
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("制定研究计划")
   await page.getByRole("textbox", { name: "消息", exact: true }).press("Enter")
   const heading = page.getByRole("heading", { name: "研究计划", exact: true })

+ 2 - 2
packages/app/e2e/paas/unified-workbench.spec.ts

@@ -18,9 +18,9 @@ test("applications use the shared shell and preserve chat and code drafts", asyn
   await page.getByRole("button", { name: "会话", exact: true }).click()
   await expect(page.getByRole("textbox", { name: "消息", exact: true })).toHaveValue("保留当前草稿")
   await page.getByRole("button", { name: "应用与插件", exact: true }).click()
-  await expect(page.getByRole("heading", { name: "λ-Scientist", exact: true })).toBeVisible()
+  await expect(page.getByRole("heading", { name: "λ-Scientist 科研助手", exact: true })).toBeVisible()
   await page.getByRole("button", { name: "开始分析", exact: true }).click()
-  await expect(page.getByRole("button", { name: "选择执行角色", exact: true })).toContainText("data67")
+  await expect(page.getByRole("button", { name: "选择执行角色", exact: true })).toContainText("数据分析助手")
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("分析数据")
   await page.getByRole("textbox", { name: "消息", exact: true }).press("Enter")
   await expect

+ 3 - 3
packages/app/e2e/paas/workbench.spec.ts

@@ -11,7 +11,7 @@ test("independent workbench connects, uploads, confirms and saves without a deve
   await expect(page.locator(".paas-topbar-chat-title")).toBeVisible()
   await expect(page.getByText("任务后台执行 · 会话与草稿自动保存", { exact: true })).toHaveCount(0)
   await page.getByRole("button", { name: "智能体", exact: true }).click()
-  await page.getByRole("button", { name: "与 科研助手 对话", exact: true }).click()
+  await page.getByRole("button", { name: "与 λ-Scientist 科研助手 对话", exact: true }).click()
   await page.getByRole("button", { name: "添加文件", exact: true }).click()
   await expect(page.getByRole("button", { name: "移除材料.pdf", exact: true })).toBeVisible()
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("分析材料并制定研究计划")
@@ -68,7 +68,7 @@ test("pause, resume and stop use the existing task without resubmission", async
   await expect(page.locator(".paas-topbar-chat-title")).toBeVisible()
   await expect(page.getByText("任务后台执行 · 会话与草稿自动保存", { exact: true })).toHaveCount(0)
   await page.getByRole("button", { name: "智能体", exact: true }).click()
-  await page.getByRole("button", { name: "与 科研助手 对话", exact: true }).click()
+  await page.getByRole("button", { name: "与 λ-Scientist 科研助手 对话", exact: true }).click()
   await page.getByRole("textbox", { name: "消息", exact: true }).fill("持续研究")
   await page.getByRole("textbox", { name: "消息", exact: true }).press("Enter")
   await page.getByRole("button", { name: "暂停", exact: true }).click()
@@ -413,7 +413,7 @@ test("managed deployment locks the platform address and model fields", async ({
   await expect(page.locator(".paas-topbar-chat-title")).toBeVisible()
 
   await page.getByRole("button", { name: "智能体", exact: true }).click()
-  await page.getByRole("button", { name: "编辑 科研助手", exact: true }).click()
+  await page.getByRole("button", { name: "编辑 λ-Scientist 科研助手", exact: true }).click()
   await expect(page.getByRole("heading", { name: "编辑智能体", exact: true })).toBeVisible()
   await expect(page.getByText("模型由平台统一提供,不能在客户端修改。", { exact: true })).toBeVisible()
   await expect(page.getByText("模型提供商", { exact: true })).toHaveCount(0)

+ 5 - 4
packages/app/src/pages/paas/agent-edit.tsx

@@ -1,3 +1,4 @@
+import { agentDisplayName } from "./agent-profiles"
 import { For, Show, createMemo, createEffect, onCleanup, onMount } from "solid-js"
 import { createStore, unwrap } from "solid-js/store"
 import { Icon } from "@opencode-ai/ui/icon"
@@ -199,7 +200,7 @@ export function PaasAgentEdit(props: {
           original: record,
           latest: record,
           fields: {
-            name: paasText(record.name),
+            name: agentDisplayName(record),
             description: paasText(record.description),
             source_dir: paasText(record.source_dir),
             work_dir: paasText(record.work_dir),
@@ -213,7 +214,7 @@ export function PaasAgentEdit(props: {
         })
         setState("baseline", JSON.stringify(snapshot()))
         if (restore && draft) {
-          setState({ ...structuredClone(draft), restored: true })
+          setState({ ...structuredClone(draft), fields: { ...draft.fields, name: agentDisplayName(draft.fields) }, restored: true })
           if (draft.original.updated_at !== record.updated_at)
             setState("error", "平台配置已更新,已保留你的草稿。请对照下方最新配置确认差异,避免覆盖其他修改。")
         }
@@ -261,7 +262,7 @@ export function PaasAgentEdit(props: {
         setState("error", "智能体名称不能为空。")
         return
       }
-      if (name !== original.name) {
+      if (name !== agentDisplayName(original)) {
         update.name = name
         update.config.name = name
       }
@@ -301,7 +302,7 @@ export function PaasAgentEdit(props: {
         <Show when={state.original}>
           {(agent) => (
             <p class="paas-muted">
-              {paasText(agent().name)} · v{String(agent().current_version ?? "—")}
+              {agentDisplayName(agent())} · v{String(agent().current_version ?? "—")}
             </p>
           )}
         </Show>

+ 15 - 1
packages/app/src/pages/paas/agent-profiles.test.ts

@@ -1,5 +1,5 @@
 import { expect, test } from "bun:test"
-import { directAgents, groupAgents, resolveAgentProfile } from "./agent-profiles"
+import { agentDisplayName, directAgents, groupAgents, resolveAgentProfile } from "./agent-profiles"
 
 const agent = (name: string, id = name) => ({ id, name })
 
@@ -75,3 +75,17 @@ test("renamed packaged applications retain entry policy independently of names",
   expect(directAgents([workspace, experimental])).toEqual([workspace])
   expect(directAgents([{ ...experimental, tags: ["desktop:entry"] }])).toHaveLength(1)
 })
+
+
+test("product names cover legacy catalogs and histories without changing identities or custom names", () => {
+  for (const name of ["research67", "科研助手", "λ-Scientist", "λ-Scientist 科研助手"])
+    expect(agentDisplayName({ id: "research67", name })).toBe("λ-Scientist 科研助手")
+  expect(agentDisplayName({ id: "data67", name: "data67" })).toBe("数据分析助手")
+  expect(agentDisplayName({ agentID: "data67" })).toBe("数据分析助手")
+  expect(agentDisplayName({ id: "data67", name: "财务专用助手" })).toBe("财务专用助手")
+  expect(agentDisplayName(undefined)).toBe("")
+  const original = { id: "data67", name: "data67" }
+  const display = { ...original, name: agentDisplayName(original) }
+  expect(original.name).toBe("data67")
+  expect(directAgents([display])[0].id).toBe("data67")
+})

+ 14 - 0
packages/app/src/pages/paas/agent-profiles.ts

@@ -15,6 +15,8 @@ export type AgentProfile = {
 const modes: Record<string, AgentEntryMode> = {
   research67: "default",
   科研助手: "default",
+  "λ-Scientist 科研助手": "default",
+  数据分析助手: "default",
   data67: "default",
   "工作区助手": "default",
   "顶刊审稿助手": "professional",
@@ -108,3 +110,15 @@ export function directAgents(agents: Record<string, unknown>[]) {
     return !modes[paasText(agent.id)] && !modes[paasText(agent.name)] && profile.entryMode !== "workflow"
   })
 }
+
+/** Present legacy built-in names consistently without changing persisted IDs or custom names. */
+export function agentDisplayName(agent: Record<string, unknown> | undefined) {
+  const name = paasText(agent?.name).trim()
+  if (["research67", "科研助手", "λ-Scientist"].includes(name)) return "λ-Scientist 科研助手"
+  if (name === "data67") return "数据分析助手"
+  if (name) return name
+  const id = paasText(agent?.id) || paasText(agent?.agentID)
+  if (id === "research67") return "λ-Scientist 科研助手"
+  if (id === "data67") return "数据分析助手"
+  return id
+}

+ 18 - 0
packages/app/src/pages/paas/agent-routing.test.ts

@@ -48,3 +48,21 @@ test("local file work wins over generic data keywords, uploaded analysis stays w
 test("a bound project does not turn literature organization into local file work", () => {
   expect(routeAgent({ goal: "批量整理文献,制定研究计划", workspace: "/project", agents }).agentID).toBe("research67")
 })
+
+
+test("user-facing product names route to the original execution identities", () => {
+  expect(routeAgent({ goal: "请数据分析助手处理项目脚本", workspace: "/project", agents }).agentID).toBe("data67")
+  expect(routeAgent({ goal: "请 λ-Scientist 科研助手分析", agents }).agentID).toBe("research67")
+})
+
+
+test("renamed catalog entries with generated IDs keep data and research routing", () => {
+  const catalog = [
+    { id: "workspace-new", name: "工作区助手" },
+    { id: "data-new", name: "数据分析助手" },
+    { id: "research-new", name: "λ-Scientist 科研助手" },
+  ]
+  expect(routeAgent({ goal: "合并 CSV", agents: catalog }).agentID).toBe("data-new")
+  expect(routeAgent({ goal: "设计验证假设的实验", agents: catalog }).agentID).toBe("research-new")
+  expect(routeAgent({ goal: "统计表格", agents: [{ id: "installed", name: "财务分析", agent_template: "data.analyst" }] }).agentID).toBe("installed")
+})

+ 7 - 6
packages/app/src/pages/paas/agent-routing.ts

@@ -1,4 +1,4 @@
-import { resolveAgentProfile } from "./agent-profiles"
+import { agentDisplayName, resolveAgentProfile } from "./agent-profiles"
 
 type Agent = Record<string, unknown>
 
@@ -16,10 +16,10 @@ export type RouteResult = {
 }
 
 const byID = (agents: Agent[], id: string) => agents.find((agent) => agent.id === id)
-const byName = (agents: Agent[], name: string) => agents.find((agent) => agent.name === name)
+const byName = (agents: Agent[], name: string) => agents.find((agent) => agent.name === name || agentDisplayName(agent) === name)
 const workspaceAgent = (agents: Agent[]) => agents.find((agent) => resolveAgentProfile(agent).requiresWorkspace)
 const nameHit = (goal: string, agents: Agent[]) =>
-  agents.find((agent) => typeof agent.name === "string" && goal.includes(agent.name))
+  agents.find((agent) => typeof agent.name === "string" && (goal.includes(agent.name) || goal.includes(agentDisplayName(agent))))
 
 export function routeAgent(input: RouteInput): RouteResult {
   const named = nameHit(input.goal, input.agents)
@@ -31,7 +31,8 @@ export function routeAgent(input: RouteInput): RouteResult {
     workspace
   )
     return { agentID: String(workspace.id), reason: "检测到当前项目文件夹中的文件操作", confidence: "high" }
-  const data = byID(input.agents, "data67") || byName(input.agents, "data67")
+  const data = byID(input.agents, "data67") || byName(input.agents, "数据分析助手") ||
+    input.agents.find((agent) => agent.agent_template === "data.analyst")
   if (
     (input.files?.some((file) => /\.(csv|tsv|xlsx?)$/i.test(file.name)) ||
       /(csv|表格|趋势图|统计|数据清洗)/i.test(input.goal)) &&
@@ -41,7 +42,7 @@ export function routeAgent(input: RouteInput): RouteResult {
   const reviewer = byName(input.agents, "顶刊审稿助手")
   if (/评审|审稿|审阅意见/i.test(input.goal) && reviewer)
     return { agentID: String(reviewer.id), reason: "检测到论文评审意图", confidence: "medium" }
-  const research = byID(input.agents, "research67") || byName(input.agents, "research67")
-  if (research) return { agentID: String(research.id), reason: "默认交给通用科研助手", confidence: "low" }
+  const research = byID(input.agents, "research67") || byName(input.agents, "λ-Scientist 科研助手")
+  if (research) return { agentID: String(research.id), reason: "默认交给 λ-Scientist 科研助手", confidence: "low" }
   return { agentID: String(input.agents[0]?.id || ""), reason: "已选择可用角色,你也可以手动指定。", confidence: "low" }
 }

+ 5 - 5
packages/app/src/pages/paas/chat.tsx

@@ -12,7 +12,7 @@ import { externalToolPhase, researchToolLabel } from "./tool-label"
 import { Dialog } from "@opencode-ai/ui/dialog"
 import { useDialog } from "@opencode-ai/ui/context/dialog"
 import { ResearchIssue } from "./issue"
-import { directAgents, resolveAgentProfile } from "./agent-profiles"
+import { agentDisplayName, directAgents, resolveAgentProfile } from "./agent-profiles"
 import { routeAgent } from "./agent-routing"
 import { ReportReader } from "./report-reader"
 import { Icon } from "@opencode-ai/ui/icon"
@@ -773,7 +773,7 @@ export function PaasChat(props: {
         !!chat.archived === ui.archived &&
         !hasConversationHistory(chat) &&
         hasResearchContent(chat) &&
-        matches(`${chat.title} ${chat.draft} ${chat.name}`),
+        matches(`${chat.title} ${chat.draft} ${agentDisplayName(chat)}`),
     ),
   )
   const historyLoading = createMemo(() => Object.values(ui.loading).some(Boolean))
@@ -844,7 +844,7 @@ export function PaasChat(props: {
                             ? chat.title
                             : chat.draft.trim().slice(0, 42) || chat.files[0]?.name || "已引用方案"}
                           <small>
-                            {chat.name}
+                            {agentDisplayName(chat)}
                             {chat.files.length ? ` · ${chat.files.length} 个附件` : ""}
                           </small>
                         </button>
@@ -1143,7 +1143,7 @@ export function PaasChat(props: {
                       data-run-status={message.role === "assistant" ? message.status : undefined}
                       tabIndex={message.role === "assistant" ? -1 : undefined}
                     >
-                      <strong>{message.role === "user" ? "你" : current()?.name}</strong>
+                      <strong>{message.role === "user" ? "你" : agentDisplayName(current())}</strong>
                       <Show when={message.text}>
                         <div
                           class="paas-report"
@@ -1341,7 +1341,7 @@ export function PaasChat(props: {
                                 <button
                                   onClick={() => {
                                     const input = message.submitted!
-                                    model.choose({ id: current()!.agentID, name: current()!.name }, true)
+                                    model.choose({ id: current()!.agentID, name: agentDisplayName(current()) }, true)
                                     setState("chats", (c) => c.id === current()?.id, {
                                       draft: input.input,
                                       files: [...input.files],

+ 4 - 2
packages/app/src/pages/paas/controller.ts

@@ -1,7 +1,7 @@
 import { createMemo, onCleanup, onMount } from "solid-js"
 import { createStore, reconcile } from "solid-js/store"
 import { paasRecord, paasRows, paasRun, paasRunDetail, paasStatus, paasText, type PaasPlatform } from "@/paas"
-import { directAgents } from "./agent-profiles"
+import { agentDisplayName, directAgents } from "./agent-profiles"
 import { allowsPermission } from "./deployment"
 
 export function createPaasWorkspace(
@@ -86,7 +86,9 @@ export function createPaasWorkspace(
     const connection = lifecycle.connection
     try {
       const result = await api!.request({ action: "agents" })
-      const agents = paasRows(result, "agents").filter((row) => paasText(row.id) && paasText(row.name))
+      const agents = paasRows(result, "agents")
+        .filter((row) => paasText(row.id) && paasText(row.name))
+        .map((row) => ({ ...row, name: agentDisplayName(row) }))
       if (!lifecycle.active || connection !== lifecycle.connection || revision !== lifecycle.catalog) return
       setState("agents", reconcile(agents))
       setState({

+ 2 - 2
packages/app/src/pages/paas/extensions-center.tsx

@@ -143,7 +143,7 @@ export function PaasExtensions(props: {
                 {(agent) => {
                   const profile = () => resolveAgentProfile(agent)
                   const research = () =>
-                    agent.id === "research67" || /^(科研助手|λ-Scientist)$/i.test(paasText(agent.name))
+                    agent.id === "research67" || /^(科研助手|λ-Scientist(?: 科研助手)?)$/i.test(paasText(agent.name))
                   const data = () => agent.id === "data67"
                   return (
                     <article class="paas-extension-card">
@@ -161,7 +161,7 @@ export function PaasExtensions(props: {
                       <span class="paas-extension-badge">
                         {profile().entryMode === "workflow" ? "多阶段协作" : "已添加"}
                       </span>
-                      <h2>{research() ? "λ-Scientist" : data() ? "数据分析" : paasText(agent.name)}</h2>
+                      <h2>{paasText(agent.name)}</h2>
                       <p>{profile().summary}</p>
                       <Show when={profile().outputs.length}>
                         <small class="paas-muted">产出:{profile().outputs.join("、")}</small>

+ 2 - 1
packages/app/src/pages/paas/packs.tsx

@@ -1,3 +1,4 @@
+import { agentDisplayName } from "./agent-profiles"
 import { For, Show, onCleanup, onMount, createMemo } from "solid-js"
 import { createStore } from "solid-js/store"
 import { paasRecord, paasRows, paasText, type PaasPlatform, type PackOptions } from "@/paas"
@@ -224,7 +225,7 @@ export function PaasPacks(props: {
                 <span>已经添加:</span>
                 <For each={existing()}>
                   {(agent) => (
-                    <button onClick={() => props.onUse?.(paasText(agent.id))}>使用 {paasText(agent.name)}</button>
+                    <button onClick={() => props.onUse?.(paasText(agent.id))}>使用 {agentDisplayName(agent)}</button>
                   )}
                 </For>
               </div>

+ 15 - 1
packages/desktop/DESKTOP_RELEASE_AUDIT_2026-12-06.md

@@ -1,6 +1,20 @@
 # Desktop 发版修复与验收(2026-12-06)
 
-## 当前结论
+## 最新源码与 beta.10 候选包
+
+本轮将用户入口收敛到常用助手,内部角色和实验性流水线不默认展示,自动匹配与目录共用入口规则。显示名称统一为 **λ-Scientist 科研助手、数据分析助手、工作区助手**;保留原执行 ID、用户自定义名称及历史记录。兼容旧编辑草稿和随机 ID 的应用路由。滚动条统一隐藏,保留滚轮、触控板及键盘滚动。
+
+配套 PaaS 固定到干净提交 `6dc60119d3dae8ac5cf8af66463b1c0124a6f697`:补齐前瞻方案语义、定向修订、用户报告与诊断分离、工具计数与累计耗时,以及进程中断恢复。科研包 0.1.1 使用按轮次计算的默认输出额度,仍遵守用户显式限额及实际用量硬上限。旧智能体配置不被静默覆盖。
+
+已生成 beta.10 / macOS arm64 内部候选包并通过原生启动、beta.9 升级、备份恢复和重启检查;ZIP、DMG 的 7091 个文件/链接一致。**该安装包包含入口收敛与滚动条调整,但尚不含随后完成的产品改名;源码推送不替换已安装应用。**
+
+后端科研回归 2216 项通过(`12222431`),后续报告与提示增量 143 项通过(`c118a773`),最终资源、契约、安装与默认预算 173 项通过(`6dc60119`);集合重叠,不相加。真实 DeepSeek 问答、文件、数据、委派及受控 MCP 调用完成。最后科研复测完成三轮并保留假设与方案,仍为 partial;默认额度调整后未重跑完整真实科研长流程,因此不声明科研完整交付已经验收通过。
+
+名称与路由专项 16 项单测、60 项生产界面回归、App 类型检查和 Desktop 生产构建通过。会话基准中位数由 85ms 到 70ms(三次本地采样,不代表普遍性能提升),未观察到退化。测试覆盖改名后的目录、自动匹配、编辑、模型配置、历史恢复、浅深主题及窄窗口。
+
+本机缺正式签名与公证,Windows/Linux 原生发布仍未验收。以下保留 beta.9 历史证据,不能将旧样式、旧提交或旧包结果混作最新源码验收。
+
+## beta.9 历史验收结论
 
 已修复本轮发现的发布流程、凭证回调、数据交付识别、科研提交及冻结资源缺失问题,生成 **0.1.0-beta.9 / macOS arm64 内部候选包**。五类真实 DeepSeek 任务完成;科研任务已运行并保留方案,但修订校验未完全通过。尚不能称为正式发布完成:科研完整交付未通过,开发者签名、公证与 Windows 原生验收仍缺少必要条件。