[Bug]: Plugin-details views appear as workspace tabs alongside projects and pile up as identical "插件详情" entries

Author: hu-kujikuCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbuggood first issuehelp wanted

EN summary: In the workspace top bar, the tab dropdown next to the project name lists plugin-details views as siblings of project tabs. Every run that applies a plugin opens another tab titled with the generic string “插件详情” (plugin details) — no plugin name, no dedupe, no way to close them — so the dropdown fills up with indistinguishable entries. Design expectation: this entry point should only show concrete projects; plugin-details should not be a workspace-level tab at all.

环境

  • Open Design 0.24.1(stable),macOS 27.0 (26A428),Apple Silicon;web bundle 为 open-design-web-standalone(Next.js)
  • 项目内多次运行(run)后出现,持续累积、重启不清除

现象

项目名旁的下拉菜单(workspace tabs dropdown)里出现 5 个一模一样的「插件详情」(grid 图标),与当前项目并列展示,无法区分、无法清理:

  • 数据库证据完全对应:该项目的 applied_plugin_snapshots 表正好 5 行 —— example-web-prototype ×1、od-next-strategy ×2(09-21 两次 run)、design-system-ant ×2(09-24 两次 run)。每次 run 应用插件都会新开一个插件详情标签,5 次 → 5 个标签。

代码层根因(0.24.1 发货 chunk,标识符经压缩)

  1. 大一统标签模型:marketplace 类标签(含带 pluginId 的插件详情)与 project 标签存放在同一个 tabs 数组;下拉菜单渲染 tabs.filter(kind !== "entry") 并按最近使用排序——插件详情视图被当成与项目同级的标签列出;
  2. 标题写死:标签标题映射为 t(pluginId ? "workspaceTabs.pluginDetails" : "workspaceTabs.marketplace"),从不显示插件名,N 个标签全部显示为「插件详情」;
  3. 不去重、不可关闭:每次打开都生成全新 id(`marketplace:${pluginId ?? "index"}:${uid}`),代码中唯一的去重逻辑只针对 "entry" 类标签,插件类标签只增不减。

设计期望(本 issue 的核心反馈)

这个入口应该只是具体项目的展示与切换(project-only)。 插件详情是从插件市场 / 运行流程派生的临时视图,不是工作区实体,不应作为 workspace 级标签与项目并列展示。

若产品上确实需要保留插件详情标签,至少应同时满足:

  1. 标题带上具体插件名(而非统一的「插件详情」);
  2. 按 pluginId 去重复用同一标签;
  3. 支持手动关闭,不随 run 自动无限新增。
数据核对命令
bash
# 项目插件应用快照(与本地下拉中「插件详情」标签一一对应)
sqlite3 "$HOME/Library/Application Support/Open Design/namespaces/release-stable/data/app.sqlite" \
  "SELECT plugin_id, plugin_version, task_kind, datetime(applied_at/1000,'unixepoch','localtime') \
   FROM applied_plugin_snapshots ORDER BY applied_at;"