DSH Plugins
返回列表
🖥️

dsh-session-delete

客户端 更新于 2026.08.24

在终端中运行以下命令:

dsh plugin install Yicijiuhaobala/dsh-session-delete

将以下提示词粘贴到 DeepSeek Harness 对话框中:

执行 dsh plugin install Yicijiuhaobala/dsh-session-delete 即可安装(源码地址:https://github.com/Yicijiuhaobala/dsh-session-delete),随后将 dsh-session-delete 加入 ~/.dsh/profiles/web/package.json 的 bundles 数组并重启 dsh web。

插件介绍

DeepSeek Harness currently offers only three session actions: rename, fork, and archive. In practice, archiving simply hides a session from the sidebar while every log file under ~/.dsh/sessions/ stays on disk indefinitely. As that folder grows over time, truly removing a session means diving into the file system by hand, which is both tedious and a little nerve-wracking.

dsh-session-delete fills that gap by injecting a "Delete Session" entry into the ... menu on each session row, styled in the same red danger look used elsewhere for destructive actions. A two-step confirmation dialog must be completed before anything is removed, and only then are all on-disk records for that session permanently wiped. Multiple safety layers are in place: sessions that are running or currently open are blocked on both the browser and host sides, the target directory is strictly validated to match the session ID to prevent path traversal, and the HTTP endpoint accepts only same-origin POST requests.

This plugin is a good fit for DSH users who have built up a large library of historical sessions and want a clean, deliberate "delete" in contrast to the passive "archive." If you would rather not open a terminal to hand-delete directories each time you clean up, or if you simply prefer archive and delete to be unambiguous, this small addition completes a piece of the workflow that the upstream left open.

使用场景

  • 清理不再需要的历史会话记录
  • 彻底删除磁盘上残留的会话日志目录
  • 替代每次手工进入文件系统 rm 的重复操作

适合人员

  • 积累了大量会话记录的 DSH 日常用户
  • 重视磁盘空间与数据整洁的开发者
  • 希望归档与删除在操作层面有明确区分的用户