Skip to content

Releases: Ansellwan/DeepSeekHarness-Session-Delete

v1.6.2 — 删除会话 + 清理分组 / Delete session + workspace cleanup

Choose a tag to compare

@Ansellwan Ansellwan released this 21 Oct 09:21

v1.6.2 — 「删除会话」+「清理分组」

给 DSH 侧栏补上官方缺失的会话删除能力,并提供一个能整组清理的面板。这是 1.1.2 之后第一个正式版,累积了删除正确性、导航、批量清理的全部改动。

删除会话(会话菜单 ⋯ → 删除会话)

  • 运行中一定点不动:该会话有任务在跑时整项置灰(铁律,宿主侧同样返回 409 拒绝)
  • 二次确认:写清会删什么、不可撤销
  • 真删除:侧栏列表 + 会话注册表 + 磁盘负载 + 投影缓存一并清除,刷新页面不回来
  • 删的是当前打开的会话:自动跳到同分组的新会话,不留空壳
  • 做不到就明说:卸载原语不可用时降级为「已隐藏」并返回 unloaded:false,不假装删成功
  • 已归档会话同样可删 —— 清掉归档正是很多人装它的原因

清理分组(侧栏底部扫帚按钮)

  • 选一个分组 → 批量清空该组全部会话;「未分组」单列一行
  • 批里只要有 1 个在跑,整批拒绝,不跳过、不部分执行
  • 显示「N 个会话 · M 个不在列表」——分组记录包含已归档会话,计数必须拆开报
  • 「清空并移除分组」= 先清会话再注销分组

与官方「删除工作区」的边界(故意分开)

  • 官方分组行的「删除工作区」是原生功能,语义是只注销分组、会话下沉到「未分组」;插件完全不拦截、不改变它
  • 想让会话也一起消失,用面板里的「清空并移除分组」

升级

dsh plugin --profile desktop add dsh-session-clean@1.6.2

装完重启 DSH(软件形态没有热刷新)。

兼容性

  • 桌面版:已实测、正式支持
  • 浏览器形态 profile(dsh web):只用 Web 面 API,无桌面端专属调用,按设计可用;但未单独实测,请自行尝试并反馈

English — Adds the missing per-session Delete action to the DSH sidebar, plus a workspace cleanup panel. First stable release after 1.1.2.

  • Delete session in the session ⋯ menu, greyed out and unclickable while the session has running work (the host also rejects with 409). Confirmation dialog states exactly what will be removed and that it cannot be undone. True removal from the sidebar list, the session registry, the on-disk payload and the projection cache — it does not come back after a refresh. Deleting the session you currently have open navigates to a fresh session in the same workspace. When the framework's unload primitive is unavailable the plugin degrades honestly to "hidden" (unloaded:false) instead of faking success. Archived sessions are deletable too.
  • Clean a whole workspace from the sidebar footer: pick a workspace and delete all of its sessions in one batch ("Ungrouped" is listed separately). If any session in the batch is running, the entire batch is refused — no skipping, no partial deletes. Counts are reported as "N sessions · M not in the list" because workspace records include archived sessions. "Clean and remove workspace" deletes the sessions first, then unregisters the workspace.
  • Deliberately separate from the shipped "Delete workspace", which only unregisters the group and leaves its sessions under Ungrouped. The plugin never intercepts or changes that native action.
  • Desktop is tested and supported; browser-form dsh web profiles are expected to work (web-surface APIs only) but were not separately tested.