lsz-asd/dsh-plugin-session-delete 预览 preview

lsz-asd/dsh-plugin-session-delete

从界面删除DeepSeek Harness会话:头部危险按钮 + 侧边栏会话行菜单项(无对话跳转),带会话名称/ID的风险确认对话框,先停止运行中的代理,原地刷新列表无需重新加载页面。适用于网页版和桌面客户端。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness that enables permanent deletion of unwanted sessions directly from the DSH user interface. It adds a visible trash button to the header of any open session, and injects a “Delete Session” entry into the three-dot context menu of each session row in the sidebar. Clicking either option opens a mandatory risk confirmation dialog that requires users to check a box acknowledging they understand the consequences of deletion before proceeding. It also exposes an agent tool called workbench_session_delete that lets AI agents delete sessions automatically.

This plugin solves a common pain point for DeepSeek Harness web users, who are normally unable to fully delete sessions from the default interface. If you have corrupted, out-of-sync, or unwanted sessions cluttering your sidebar that you want to remove permanently, this plugin will handle the full end-to-end deletion workflow. When you confirm deletion, it cleans up the session log, projection cache, and workspace accounting entries consistently across both in-memory state and on-disk storage. Running active sessions will show a clear warning before deletion, and will be stopped cleanly before the deletion process completes.

To install the plugin, you use the official DSH command line interface, running the install command with the full file path to your local clone of this repository. After the installation command completes, you need to restart your DSH profile for all plugin changes to take full effect. The latest version, v0.3.1, includes full internationalization for both Chinese and English, switching all UI text automatically to match your DSH interface language. It also fixes an existing bug that left partially deleted sessions stranded in the “Ungrouped” category after incomplete deletion.

这是一款专为 DeepSeek Harness 开发的原生插件,帮助用户在 DSH 界面中彻底删除不需要的会话。它会在打开的会话顶部添加垃圾桶删除按钮,同时在侧边栏会话行的三点菜单中注入“删除会话”选项,点击后弹出需要用户勾选确认的风险提示弹窗。此外,它还提供了 workbench_session_delete 代理工具,支持代理自动删除会话。

如果你困扰于 DeepSeek Harness 的网页端无法删除对话,或是损坏、出错的会话无法清除,这个插件可以解决问题。删除会话时,它会同时清理会话日志、投影缓存和工作区记账信息,正在运行中的会话会先提示风险,确认后才会停止运行并完成删除。它支持网页端使用,理论上兼容所有网页套壳的 DSH 客户端。

安装方式是通过 DSH 的 CLI 工具执行安装命令,指定本地仓库路径后,重启对应的配置文件就能生效。最新版本支持中英文国际化,会跟随界面语言自动切换文案,适配不同用户的使用习惯。更新日志修复了删除后会话残留到未分组的问题,保证删除流程完整可靠。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • 35 stars - an early-stage project星标 35,属于早期项目
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:lsz-asd/dsh-plugin-session-delete

把 lsz-asd/dsh-plugin-session-delete 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-session-delete

你是否困扰于 web 端无法删除对话?是否觉得归档对话键只是隐藏对话,删除得不够彻底?是否在尝试编辑 harness 时遇到对话话历史无法同步,而损坏的对话又无法删除?这个插件可以帮你!

在 DeepSeek Harness 界面里安全地彻底删除会话。 在会话顶部添加垃圾桶按钮,侧栏会话行 "..." 菜单内添加"删除会话"项,点击后出现风险确认弹窗(需勾选);确认后会删除会话日志、投影缓存与工作区记账;运行中的会话会有提示,若仍选择删除会停止运行并删除。可在web中使用,并且理论上兼容一切web套壳的客户端。 添加agent工具让agent可以删除会话。 工具名workbench_session_delete

安装

dsh plugin --profile <profile> add file:C:/path/to/dsh-plugin-session-delete

重启 profile 生效。

功能

  • 会话头部垃圾桶按钮
  • 侧栏会话行 "..." 菜单注入"删除会话"项
  • RiskConfirmation 风险确认:勾选"我已了解后果"后确认可用
  • 删除链路:会话目录 + 投影缓存 + 工作区记账(经活动 storageDomain,内存/磁盘一致)
  • workbench_session_delete 工具:agent 可直接删除会话

后续开发计划

  • 添加更多针对会话的操作工具和选项
  • 将已有的针对会话的选项做成工具提供给agent
image

更新日志

  • v0.3.1(2026-08-14):修复删除会话后残留日志导致会话跑到「未分组」的问题。删除时同时清理原始 id 与 session- 前缀两种 id 形式;先删除磁盘日志并确认成功后再解除工作区记账,避免半删除会话脱离原分组;删除前先 flush 活动会话,防止 dispose 阶段回写/重建日志目录。
  • v0.3.0(2026-08-14):新增英文适配(i18n)。删除对话框、头部垃圾桶按钮与侧栏「删除会话」菜单项的全部文案接入客户端 zh/en 字典,跟随界面语言(设置中的语言或浏览器语言)自动切换并即时生效;未加载 locale 服务的环境会按浏览器语言回退到内置中英文字典。

dsh-plugin-session-delete

Frustrated that sessions can't be deleted from the web client? Bothered by abandoned or mistyped conversations cluttering your sidebar? Ever tried editing your harness only to find the session history out of sync — with a corrupted session that just won't go away? This plugin has your back!

Safely delete sessions from the DeepSeek Harness UI. Adds a trash button at the top of the conversation and a "Delete session" item to the sidebar session-row "..." menu; clicking either opens a risk-consent dialog (checkbox required). On confirm, the session log, projection cache and workspace accounting are removed. Running sessions show a warning — if you still choose to delete, the session is stopped and then deleted. Works in the web, and is theoretically compatible with any web-shell-based client. Also adds an agent tool so agents can delete sessions. Tool name: workbench_session_delete

Installation

dsh plugin --profile <profile> add file:C:/path/to/dsh-plugin-session-delete

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-tui 下一个 Next dsh-uiskin-theme →