Skip to content

lsz-asd/dsh-plugin-session-delete

150Last commit Aug 14, 2026

dsh-plugin-session-delete DSH plugin

This plugin adds a trash button at the top of each conversation and a "Delete session" item in the sidebar session-row "..." menu. It also provides a `workbench_session_delete` tool for agents to delete sessions directly. On deletion, it removes session logs, projection cache, and workspace accounting through the active storage domain.

How to install the dsh-plugin-session-delete DSH plugin

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

This source command needs manual review. Copying does not run it.

dsh-plugin-session-delete DSH plugin data source

dsh-plugin-session-delete DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-plugin-session-delete DSH plugin can do

  • Adds a trash button to the conversation header for one-click delete access.
  • Injects "Delete session" into the sidebar session-row "..." menu.
  • Shows a risk-consent dialog requiring a checkbox confirmation before deletion.
  • Deletes session log, projection cache, and workspace accounting consistently across memory and disk.
  • Provides the `workbench_session_delete` tool for agents to delete sessions.
  • Warns about running sessions and stops them if deletion is confirmed.

Where the dsh-plugin-session-delete DSH plugin fits

  • Remove abandoned or mistyped conversations from the web UI.
  • Clean up corrupted sessions that cause history sync issues when editing the harness.
  • Let an agent automatically delete old sessions as part of a cleanup workflow.
  • Delete sessions that were previously only archived (hidden) to free up space.
  • Bulk-manage sessions by allowing agents to delete them programmatically.

Who the dsh-plugin-session-delete DSH plugin is for

  • DeepSeek Harness users who want a permanent delete option from the web interface.
  • Developers building workflows where agents need to manage session lifecycle.

dsh-plugin-session-delete DSH plugin limitations

  • Requires DeepSeek Harness environment; not a standalone tool.
  • Currently only supports local file-based installation (no published package registry).
  • Plugin version 0.3.1 is early-stage; may have undiscovered edge cases.
  • Theoretically compatible with web-shell clients, but not tested on all platforms.

dsh-plugin-session-delete DSH plugin: from the repository README

Quoted from the lsz-asd/dsh-plugin-session-delete README, the upstream source of the dsh-plugin-session-delete DSH plugin. Copyright remains with the original authors.

你是否困扰于 web 端无法删除对话?是否觉得归档对话键只是隐藏对话,删除得不够彻底?是否在尝试编辑 harness 时遇到对话话历史无法同步,而损坏的对话又无法删除?这个插件可以帮你! **在 DeepSeek Harness 界面里安全地彻底删除会话。** 在会话顶部添加垃圾桶按钮,侧栏会话行 "..." 菜单内添加"删除会话"项,点击后出现风险确认弹窗(需勾选);确认后会删除会话日志、投影缓存与工作区记账;运行中的会话会有提示,若仍选择删除会停止运行并删除。可在web中使用,并且理论上兼容一切web套壳的客户端。 **添加agent工具让agent可以删除会话。** 工具名`workbench_session_delete` ## 安装 ```sh dsh plugin --profile <profile> add file:C:/path/to/dsh-plugin-session-delete ``` 重启 profile 生效。 ## 功能 - 会话头部垃圾桶按钮 - 侧栏会话行 "..." 菜单注入"删除会话"项 - `RiskConfirmation` 风险确认:勾选"我已了解后果"后确认可用 - 删除链路:会话目录 + 投影缓存 + 工作区记账(经活动 storageDomain,内存/磁盘一致) - `workbench_session_delete` 工具:agent 可直接删除会话 ## 后续开发计划 - 添加更多针对会话的操作工具和选项 - 将已有的针对会话的选项做成工具提供给agent - <img width="1800" height="1020" alt="image" src="https://github.com/user-attachments/assets/c66f6185-457d-4261-9e10-1b44b9959896" /> ## 更新日志 - **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

Read the full READMEThe repository declares no license. Check with the authors before using it.

dsh-plugin-session-delete DSH plugin questions

How do I install the session delete plugin?

Run the command `dsh plugin --profile <profile> add file:C:/path/to/dsh-plugin-session-delete` in your terminal. Replace `<profile>` with your profile name and adjust the path to where you cloned or downloaded the plugin. After installation, restart the profile for the changes to take effect.

How does the delete process work?

When you click the trash button or select "Delete session" from the menu, a risk-consent dialog appears. You must check "I understand the consequences" and then confirm. The plugin then removes the session log, projection cache, and workspace accounting. If the session is running, you'll see a warning; if you still confirm, the session is stopped and deleted.

Can I use this plugin with a web-shell client?

Yes, the plugin is designed to work in the DeepSeek Harness web interface and is theoretically compatible with any web-shell-based client. However, it has not been extensively tested on all such clients, so some edge cases may exist.

How do I let an agent delete sessions using this plugin?

The plugin provides a tool named `workbench_session_delete`. You can configure your agent to call this tool. The agent will need appropriate permissions to execute the deletion. Refer to the plugin's README for details on the tool's interface.

What is the difference between the delete button and the archive/soft-delete?

The archive feature in DeepSeek Harness may only hide the conversation from the sidebar without truly removing data. This plugin performs a permanent deletion: it removes the session log, projection cache, and workspace accounting, so the session is completely gone and cannot be recovered.