DeepSeek Harness 插件

lsz-asd/dsh-plugin-session-delete

Star 数 ★ 3 分类 会话与消息 收录于 2026-08-14

在 Web UI 与桌面客户端中删除 DSH 会话:头部危险按钮 + 会话行菜单项,风险确认弹窗,宿主端点与 agent 工具同步清理会话日志、投影缓存与工作区记账。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

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

GitHub 来源的插件在安装时会在你的机器上执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

你是否困扰于 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

更新日志

  • 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

Restart the profile to apply.

Features

  • Trash button at the top of the conversation
  • "Delete session" item injected into the sidebar session-row "..." menu
  • RiskConfirmation risk-consent dialog: confirm is only enabled after ticking "I understand the consequences"
  • Delete chain: session log + projection cache + workspace accounting (through the active storageDomain, so in-memory state and on-disk units stay consistent)
  • workbench_session_delete tool: agents can delete sessions directly

Roadmap

  • Add more session-operation tools and options
  • Expose the existing session options to agents as tools

Changelog

  • v0.3.0 (2026-08-14): Added English adaptation (i18n). All copy of the delete dialog, the header trash button and the sidebar "Delete session" menu item now lives in client zh/en dictionaries and follows the UI language (the language setting or the browser language), updating live on switch; environments without the locale service fall back to the built-in dictionaries by browser language.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →